[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: Skip Hodgson <shodgson_at_stvincents.com.au>
Date: 2007-01-30 15:11:20 CET

Thank you. Quite right. Very useful.
Skip

>>> Ryan Schmidt <subversion-2007a@ryandesign.com> 01/30/07 7:12 PM >>>

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
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been virus
scanned and although no viruses were detected by the system, St Vincents &
Mater Health Sydney accepts no liability for any consequential damage
resulting from email containing any computer viruses.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 30 15:39:35 2007

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.