[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 17:48:26 CET

On 16-Mar-06, at 11:31 AM, Phillip Susi 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]
>> This has come up before and I keep seeing posts that seem to
>> contradict each other.
>> Shouldn't that be:
>> svn checkout -r5 <url>
> That would work as well, assuming path names have not changed since
> rev 5.

So now I see a contradiction or misunderstanding all within the same
post, by someone that was attempting to clarify :)

You imply above that the two operations are equivalent, that they
both get rev 5 of the url so long as the path didn't change.
Then at the end of your response you claim that it will check out the
HEAD revision.
You can see how one might get confused trying to follow this:

>> Do I have to be explicit about specifying the HEAD revision like:
>> svn checkout -rHEAD url-to-foo@5
>> .. if so then I missed the part in the docs that mentions this
>> exception to the rule checking out a url defaults to HEAD.
> No, you don't have to be explicit, HEAD is used by default, so a
> simple svn checkout url-to-foo will check out the HEAD revision.

I will do as Karl said and perform the experiment.. since obviously
nobody else gets it either :)
(please note the smilies.. I realize you may have simply misread the
message the first time)


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