[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 21:16:15 CET

On 16-Mar-06, at 3:00 PM, Phillip Susi wrote:

> Scott Palmer wrote:
>> I think you need to re-read the whole thread... your statements
>> effectively boiled done to indicating that :
>>
>> svn checkout url@5
>> svn -r5 url
>> svn -rHEAD url@5
>>
>> all did the same thing. Thus the contradiction.
>>
>
> That is correct, assuming the file names have not changed. Where's
> the contradiction? For there to be a contradiction I would have
> had to have said something that said the above was incorrect.

-rHEAD != -r5

That is the contradiction.

> Ahh, yes... that's what I've been trying to explain; the peg
> revision also has the effect of setting the HEAD revision back to
> the specified peg, so you check out the files ( both names and
> content ) as of the specified peg revision, which is why -r 5 and
> @5 give the same results if the names have not changed.

No. That is not the case. Even when using the peg revision syntax -
HEAD evaluates to the real head revision of the repo.
I did the experiment with 'svn cat' (see other emails in this thread)
and that was quite clear. Is it a bug in 'svn cat' ?

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 16 21:18:09 2006

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