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

Re: What different between ls -rX and ls URL@X ?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-08 16:29:58 CEST

On May 8, 2005, at 9:24 AM, François Beausoleil wrote:
> So, there's a concept I'm missing here, and if someone would be so
> kind as to explain what I don't understand, I would be grateful.
> The book doesn't explain what "peg revisions" are.

If you wait a few more days, it will. :-)

Peg revisions are the mechanism used to trace rename (copy) history.
Nearly every svn command is of the form:

    svn subcommand -r X path@PEGREV

What this means is:

    * go to the coordinates (PEGREV, path)

    * trace the object backwards to revision X, noticing any copies
or renames

    * perform the command on the older object in revision X, even if
it has a different path.

So, for example, if 'foo' was renamed to 'bar' in revision 20, and
then I run

    svn cat -r 10 bar@50

...it will actually end up showing the contents of (r10, foo).

If you don't explicitly give a peg-revision, then it defaults to BASE
on working-copy objects, and HEAD on URL objects.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 8 16:32:57 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.