homepage Welcome to WebmasterWorld Guest from 54.205.247.203
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

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