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

RE: How to get a list of path ancestry

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-08-23 15:49:43 CEST

> -----Original Message-----
> From: James Sleeman [mailto:bitsyboffin@gmail.com]
> Sent: Wednesday, August 23, 2006 6:05 AM
> To: users@subversion.tigris.org
> Subject: How to get a list of path ancestry
> Short question that I can't find an answer to. Is there a way to
> obtain a clear list for a given path in a repository at a given
> revision, all the paths that path has in the past decended from (ie
> paths that were copied to form it).
> An example of what I'm looking for (not a real command!)....
> ---cut---
> me_at_myhost:~$ svn list-ancestry -r100 svn://localhost/foo/bar.c
> r100 /foo/bar.c
> r90 /foo/barf.c
> r80 /barf.c
> ---cut---
> Which shows that in r80 /barf.c was created as a new file, then in r90
> /barf.c was copied to /foo/barf.c which was copied in r100 to
> /foo/bar.c

Run 'svn log -v -q' and parse out 'filename (from some/branch:123)'.
The '(from...)' tells you where it came from and the name it was called.
Then continue parsing on that.

Run 'svn log -v -q --stop-on-copy ...' on a known branched file/dir and
look at the last entry to see what I'm talking about.


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. 163

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 23 15:51:30 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.