3

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 1

6

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
Sign up to request clarification or add additional context in comments.

2 Comments

Good utility however it doesn't concern how to search on which line was edited across revisions.
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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.