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

Re: Peg Revisions, Was: bug in Subversion, or do I have unreasonable expectations?

From: Phillip Susi <psusi_at_cfl.rr.com>
Date: 2005-09-26 16:26:09 CEST

Wow, nice explanation. That completely cleared things up for me.
Someone should add this to the book ;)

Scott Palmer wrote:
> Let me try to help, and at the same time ask for confirmation from
> others that I 'get' peg revisions...
> Imagine doing something like
> svn log -rZZZ myfile
> Where ZZZ is some older revision and myfile is the name of a file in
> your working copy - NOT a URL.
> As I understand it, if myfile was copied from a different file at
> revision ZZZ+X, it will not exist in the repository with the name
> 'myfile' at revision ZZZ. But the above command is supposed to work.
> It traces the history of myfile back to 'someotherfile' from which it
> was copied.
> The name matching of the file is done based on the revision that you
> had in the WC, not the revision specified with -r.
> Peg-revisions are a way to get the name matching done on a specific
> revision, where names could be different. It is only about finding
> matching names to identify the resource, and has nothing to do with the
> revisions specified with -r, which is used to specify the revision to
> operate on, which can be different from the revision to use for name
> matching.
> Peg revisions become even more important if you actually do have
> overlap in the name space.. e.g. what if there was an unrelated file
> 'myfile' at rev ZZZ that was deleted later and then a new file with the
> same name was put in it's place? Now when you ask for info about
> 'myfile' you need to be able to identify which one. if you want info on
> 'myfile' at rev ZZZ, do you want to trace back the history of the
> current 'myfile'? Or do you want to get the information about the
> myfile that was at that spot in rev ZZZ? They can be two different files.
> Can someone that knows please correct me if I'm wrong about this, or
> confirm that I've got it straight?

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 26 16:29:03 2005

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.