[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: Phillip Susi <psusi_at_cfl.rr.com>
Date: 2006-03-16 21:00:18 CET

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.

> My claim was that I though it made sense that
>
> svn checkout url@5
> and
> svn -rHEAD url@5
>
> would be the same. Since the default is to get the HEAD revision and
> the purpose of the peg revision syntax was simply to refer to a path
> that may not have the same name at the HEAD revision. But the
> original claim that led to my first message was that the peg revision
> syntax does more than specify the revision of the *namespace* to use,
> it also implied that you wanted to checkout that same revision of the
> content. I wanted to know which was true, if this was clearly
> documented somewhere, etc. I find it confusing.
>

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.

---------------------------------------------------------------------
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:03:18 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.