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

Re: diffs for all successive versions of a file?

From: Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Mon, 17 Mar 2008 22:53:28 +0100

On Mar 17, 2008, at 22:00, Robert William Vesterman wrote:
> I have a file, let's say blah.txt, which contains a line that's
> something like:
> xyz=37
> In some previous versions of the file, it had different numbers
> there. Maybe in one version, it was:
> xyz=392384
> And in another:
> xyz=-9932
> I would like to find out all values that it has ever had. Obviously
> I can use "svn log" to find all revisions at which the file was
> changed, and then do "svn diff -r N:M" for each successive pair.
> However, due to the number of revisions, this would be somewhat of a
> pain.
>
> So, what I would like is an easy way to automatically show all
> changes ever on this file. I could then feed it to grep to get
> exactly what I want. So, something like:
> svn diffForEverySuccessiveRevision blah.txt | grep xyz
> I could write a script to do this, based off of the "svn log" / "svn
> diff -r N:M" method mentioned above, but I am hoping that there is
> already an existing easy way to do it.
>
> Thanks in advance for any help.
>

This won't be much help, but maybe it'll jog someone elses memory:

I recall reading (a few months back, somewhere on the internet) about
a python script which did a sort of extended "svn blame", showing each
version of every line back to the first revision of the file. Problem
is, I can't remember what the script was called or where I read about
it. Maybe someone else has better memory than I.

// ben smith-mannschott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-17 22:53:59 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.