I'd like to determine the last time a specific line was changed in an SVN-versioned file. Does SVN (or TortoiseSVN) have a command to do this?
I could write a script that would svn diff each successive revision backwards from HEAD, and check if the line at a given line number was different. But this simplistic approach will not work if, say, lines were inserted before the desired line, but the text of the line itself didn't change. I'm no expert on merge theory/diffing, so I don't know how this could be done. Any ideas?
Yes, the function you're looking for is called Blame, it's available both through the subversion command line interface and the TortoiseSVN interface.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With