Setup: File foo/bar
in my repository got copied (with modifications) to foo/baz
, and the original was deleted, in r123. This copy was performed manually, not with svn cp
. Many revisions have passed since.
I now want to see where some of the lines in foo/baz
came from. After tracking back to foo/bar
, I try this command:
$ svn annotate foo/bar -r 122
svn: warning: W155010: The node '/path/to/checkout/foo/bar' was not found.
svn: E200009: Could not perform blame on all targets because some targets don't exist
... but it doesn't work because the file doesn't exist any more!
Question: How do I svn annotate
a file that has been deleted?
Richard's answer is ok, but you don't need to know full svn url - ^
character always expands to project url:
svn annotate ^/<branch path>/<file path>@rev
e.g.
svn annotate ^/trunk/README.md@123