| Find the last time a specific line was changed with svn diff? Need to find the revision and value of the last change to a line. |
physics

msg:3692740 | 11:29 pm on Jul 7, 2008 (gmt 0) | So I have a file with many revisions and I'd like to find out when a certain line was changed and what it's previous value was. It's not in the past few revisions as I've checked. I don't really want to diff against ALL of the past revisions. It seems like there must be a way to do this, perhaps using two steps (one to find the file revision that the line was last changed in and another to do the actual svn diff). Anyone know how to do this?
|
physics

msg:3694679 | 6:52 pm on Jul 9, 2008 (gmt 0) | Got it. Use
$svn blame ¦ less
And go to the offending line. It'll show you the revision number of the last change and the author. Then svn diff against that revision number.
|
physics

msg:3694777 | 8:10 pm on Jul 9, 2008 (gmt 0) | I meant $svn blame filename ¦ less
|
|
|