Welcome to WebmasterWorld Guest from 50.16.24.12

Forum Moderators: bakedjake

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

My Threads

Hot Threads This Week

Hot Threads This Month

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved