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

RE: Trying to see the history on a deleted directory

From: Andrew Goodnough <Andrew.Goodnough_at_wicourts.gov>
Date: 2006-04-26 17:09:02 CEST

>>> On Wed, Apr 26, 2006 at 10:02 am, in message
<68B5F4BC6852D244BDDAAE69E31B15F908F2BDD2@intrepid.hypertherm.com>,
"Gale,
David" <David.Gale@Hypertherm.com> wrote:
> Andrew Goodnough wrote:
>> I don't understand why I can't list or checkout a deleted directory
>> from a previous revision. The first command shows it's there but
>> subsequent commands can't find the path. How do I see the history
on
>> the CC_nohist directory when I deleted it? Are the results from
>> these commands what is expected?
>>
>>
>> agoodno_at_linux:~/test> svn list - r 32459 http://subversion/svn/ccap
>> ALL/
>> BBE/
>> CC/
>> CC_nohist/
>> FRMWRK/
>> SCCA/
>> TEST/
>> TOOLS/
>> WCCA/
>>
>> agoodno@linux:~/test> svn list - r 32459
>> http://subversion/svn/ccap/CC_nohist
>> svn: REPORT request failed on '/svn/ccap/!svn/bc/46665/CC_nohist'
>> svn: '/svn/ccap/!svn/bc/46665/CC_nohist' path not found
>>
>> agoodno@linux:~/test> svn co - r 32459
>> http://subversion/svn/ccap/CC_nohist
>> svn: REPORT request failed on '/svn/ccap/!svn/bc/46665/CC_nohist'
>> svn: '/svn/ccap/!svn/bc/46665/CC_nohist' path not found
>
> Read up on peg revisions. What you want to do is:
>
> svn list http://subversion/svn/ccap/CC_nohist@32459
>
> svn co http://subversion/svn/ccap/CC_nohist@32459
>
> Basically, the - r syntax asks svn to access a specific file
identified
> by its current name as it existed at a certain revision; the @
syntax
> asks svn to access a specific file identified by the name it had at
a
> previous revision. Since the file has been deleted, it no longer has
a
> current name, so you need to use the peg syntax. The same holds
true
> for file renames-- if you move foo to bar, you can get a revision
before
> the move either with "- r [x] bar" or "foo@[x]".
>
> - David

Thanks, David - that make total sense. This explanation fills in quite
a few gaps.

Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 26 17:10:48 2006

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.