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

Re: script or tool to walk back thru 1 file's history diffing..

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 9 Sep 2011 09:44:06 +0200

On Fri, Sep 9, 2011 at 2:06 AM, <subversion_at_trodman.com> wrote:
> Would like to write a script to follow the history of a single
> file, backwards, diffing the file w/it's prior version all the way
> back to the 1st version.
>
> By using 'svn info' to get the last chgd rev, and running 'svn
> diff -c $lastchgd_rev ...', this seems simple enough if the URL to
> the file does not change; but if the pathname in svn to the file
> is renamed there is no choice but to look at 'svn log', right?
>
> --
> thanks/regards,
> Tom
>
> --
> Does such a command line tool already exist?

Well, yes, such a command line tool already exists :-). At least, it
does in 1.7.0 RC2:

'svn log --diff' will produce the log with the diffs inline.

Take a look at one of the 1.7.0 pre-release binaries available here:
http://subversion.apache.org/packages.html#pre-release

-- 
Johan
Received on 2011-09-09 09:45:10 CEST

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.