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

Re: How do I see a list of all changes to a file through successive revisions?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-08 19:43:44 CEST

On Oct 8, 2007, at 08:46, brian@enchanter.net wrote:

> For a given file, I'd like Subversion to give me a list of every
> commit
> which changed that file, and a diff of exactly what changes were
> made in
> each commit. My goal is to be able to look through the list and
> find out
> exactly when a specific line of code was changed. How can I get this,
> other than having to do a 'svn diff -r ...' for every revision?
>
> 'svn log' shows me the commits, but not the changes.

You may also want "svn blame filename". I often use this when trying
to figure out when a line was added or changed. "svn blame filename"
shows, next to each line, the revision in which it was last changed,
and who changed it. So if it says "123 bob theline" then I know bob
changed that line in revision 123, so I look at "svn diff -c 123
filename" to see if that is the change I'm looking for. If not, I
look at "svn blame -r 122 filename" to look at the preceding change
to that file, and again look at the line in question. And so on. This
is quicker than looking through the diffs of all revisions, because
probably not every revision affected the line I care about.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 8 19:46:18 2007

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.