You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by kf...@collab.net on 2006/03/16 14:04:21 UTC

Re: Help explain peg revisions

Scott Palmer <sc...@2connected.org> writes:
> 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>
> 
> 
> I thought peg revisions were for finding a path that might have a
> different name in HEAD, not to specifiy which revision to actually
> get.  In other words, if I want to check out the HEAD revision of
> something that had the name "foo" in rev 5 but was later renamed (to
> some name that I don't know, otherwise I would use it) would I not do:
> 
> svn checkout url-to-foo@5
> 
> ?
> 
> Yet in some posts, such as the one quoted above it seems to imply
> that the peg revision will be used as if it was also passed with "-r"
> 
> 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.

I think you do have to be explicit like that... but, have you tried
experimenting to find out?  If you do, please post the results.

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org