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

Re: Data Lifetimes

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-30 09:12:53 CET

On Jan 30, 2007, at 01:25, Skip Hodgson wrote:

> I am having trouble deciding whether I am looking at a bug or a
> personal
> misunderstanding regarding the visibility of deleted branches.
> Here is
> a little test script which reveals my dilemma.
>
> In the Collins-Sussman Book Chapter 4 - Data Lifetimes we read:
>
> "And now your branch is gone. Of course it's not really gone: the
> directory is simply missing from the HEAD revision, no longer
> distracting anyone. If you use svn checkout, svn switch, or svn
> list to
> examine an earlier revision, you'll still be able to see your old
> branch."
>
>
> When I run this script against my Subversion 1.4.2 server (which is
> using Apache 2.2.3) it appears that the statement that svn list will
> reveal the old branch is not correct!
>
> Where am I going wrong?

If you want to see the deleted items, you need to pass the correct
parameters to svn list, in particular, a peg revision in which the
item still existed.

In your example, instead of

svn list -r $latest $base/myjunk/branches/v2

I believe you want

svn list $base/myjunk/branches/v2@$latest

or maybe

svn list -r $latest $base/myjunk/branches/v2@$latest

See the chapter on the difference between peg and operative revisions.

http://svnbook.red-bean.com/en/1.2/svn.advanced.pegrevs.html

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 30 09:13:28 2007

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