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

Re: Help explain peg revisions

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2006-03-16 20:37:32 CET

On 16-Mar-06, at 12:36 PM, Gale, David wrote:

> Scott Palmer wrote:
>> On 16-Mar-06, at 10:05 AM, David Heppenstall wrote:
>> Do you want to checkout the 5th revision? If so:
>> svn checkout <URL>@5 ... [PATH]

> The syntax given by Mr. Heppenstall (svn checkout
> <URL>@5..." is wrong; it's full equivalent is "svn co -rHEAD <URL>@5",
> which means "checkout the current revision of the file that was at
> this
> URL at revision 5".
> The only time you really need to specify both a -r argument and a peg
> revision is when a file has been (potentially) deleted or moved,
> and you
> know what its name was at some point in the past. Your original
> understanding was correct.

No. Actually Mr. Heppenstall is correct.

I did the experiment. (Actually a slightly modified experiment using
'cat' instead of 'checkout')

svn cat url-to-foo@5

outputs the contents of 'foo' as it existed in revision 5, even
though the head revision is different.

Sadly there seems to be a bug because if foo is renamed to bar in the
head revsion

svn cat -rHEAD url-to-foo@5

FAILS! the Error message is
svn: File not found: revision 10, path '/path/to/foo'

Where 10 is the revision of HEAD.
This is NOT what I expected. I', using Subversion 1.3.0 on Windows XP.
Peg revisions are broken it seems. At least for the 'svn cat' command.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 16 20:38:21 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.