[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Finding the revision of a deleted file.

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Wed, 13 Apr 2011 15:24:59 +0400

If you do not know the path to the file, then I think

svn ls --depth=infinity

together with peg revision set in the past will help you to locate it.

Then you can use svn log on the file to see when it was deleted and
svn cp it from any revision before that.

Best regards,
Konstantin Kolinko

2011/4/13 Gavin "Beau" Baumanis <gavin.baumanis_at_palcare.com.au>:
> It's always the way ....
> I should have been a little more clearer about my requirements.
>
> I have a file; fileName.txt
> This file exists "somewhere" in the repository at a previous revision because it was deleted at sometime in the past.
>
> So, I  am unable to restrict the path that svn.log starts at.
>
> I can't think of a way to do it other than the svn log method...
> And the fact that Mr.Google has only revealed the svn log method, too - I assume there simply isn't a better method...
> It just seems like there "should" be an easier method - so I figured I had better ask as opposed die wondering...
>
> Gavin.
>
>
> On 13/04/2011, at 4:52 PM, Konstantin Kolinko wrote:
>
>> 2011/4/13 Gavin "Beau" Baumanis <gavin.baumanis_at_palcare.com.au>:
>>> I have been doing some work everyone's good friend Mr.Google.
>>> Every blog / article I read all said the same thing;
>>>
>>> Create a file with svn log
>>> (svn log --verbose > svn.log)
>>> Then grep / search the log for the file you're after.
>>>
>>> It takes  about 8 minutes just for the log file to be created - which makes it a slightly painful workflow - just to resurrect an old file.
>>
>> I guess you are "log"'ing a lot more than necessary. Have you looked
>> at the options available for the log command? I use the "--limit" one
>> very often. Are you calling this command for the right path?
>>
>>> Is there not a more convenient way to do this?
>>>
>>> As always thanks in advance.
>>> Gavin "Beau" Baumanis
>
Received on 2011-04-13 13:25:31 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.