Let's say a given set of lines were modified in a file, I want to find the SVN revision at which they were modified. Currently I just have to keep picking through the log and finding where it was last added manually, is there a better way?
1 Answer
svn blame myFile gives you the revision-number and author of each line
edit: Take a look at this document. You can also add some options to the command. For instance:
- --revision (-r)
- --incremental
2 Comments
Zombies
Good utility however it doesn't concern how to search on which line was edited across revisions.
thomas
ok, then try to mix
svn log and svn diff. At first you call log on your file to get all relevant revision-numbers and then call diff on each relevant revision. example for revision-number 5: svn diff -r 4:5 myFile which results in all changes made by the commit in rev5 in myFile. The creation of a shell-script will be a task for homework. Does this answer your question or do I miss sth?