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

Re: History of a fixed path across all objects

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 10 Nov 2010 13:48:17 -0600

On 11/10/2010 1:22 PM, Klaus Ganser wrote:
> Hello,
>
> I originally asked this question on stackoverflow:
>
> http://stackoverflow.com/questions/4140377/svn-log-of-a-fixed-path-across-copies-and-moves
>
> Nobody seems to have a good solution to getting the history of a
> specific path across all objects that ever lived in that path. I've
> been trying to stitch together the results of multiple queries using
> `svn log --stop-on-copy`, but this is like throwing darts in the dark;
> a particular path may not exist for certain revision spans, and I need
> to hop over these when I issue an `svn log` request with a peg
> revision. This would be slightly more reasonable if when I requested
> a peg revision in which the path did not exist I received an error
> message telling me something like this:
>
> svn: File not found: revision 1234, path '/branches/qa'
> svn: Path does not exist between 1233 and 1235
>
> instead of what I get currently:
>
> svn: File not found: revision 1234, path '/branches/qa'
>
> Ideally, however, there should be a way for me to tell svn that I want
> the history of the *path* and not the object at that path at a
> particular revision. I'm mailing this list now for some advice.

If something is deleted and recreated there is no history connecting
them even if those things have the same name, so what you are asking for
doesn't really exist. Maybe you could 'svn log -v' a parent or the top
level of the repo and parse out the deletes/adds you want to see.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-11-10 20:48:56 CET

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.