Welcome to WebmasterWorld Guest from 107.22.7.35

Forum Moderators: bakedjake

Message Too Old, No Replies

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.

     
11:29 pm on Jul 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?
6:52 pm on Jul 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
8:10 pm on Jul 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I meant
$svn blame filename ¦ less
 

Featured Threads

Hot Threads This Week

Hot Threads This Month