svn blame — Show author and revision information inline for the specified files or URLs.
Show author and revision information inline for the specified files or URLs. Each line of text is annotated at the beginning with the author (username) and the revision number for the last change to that line.
--revision (-r) ARG --verbose (-v) --incremental --xml --extensions (-x) ARG --force --use-merge-history(-g) --username ARG --password ARG --no-auth-cache --non-interactive --config-dir ARG
如果你希望在测试版本库看到blame标记的readme.txt
源代码:
$ svn blame http://svn.red-bean.com/repos/test/readme.txt 3 sally This is a README file. 5 harry You should read this.
Even if svn blame says that Harry
last modified readme.txt
in revision
5, you'll have to examine exactly what the revision
changed to be sure that Harry changed
the context of the line—he may
have just adjusted the whitespace.
If you use the --xml
option, you can
get xml output describing the blame annotations, but not
the contents of the lines themselves:
$ svn blame --xml http://svn.red-bean.com/repos/test/readme.txt <?xml version="1.0"?> <blame> <target path="sandwich.txt"> <entry line-number="1"> <commit revision="3"> <author>sally</author> <date>2008-05-25T19:12:31.428953Z</date> </commit> </entry> <entry line-number="2"> <commit revision="5"> <author>harry</author> <date>2008-05-29T03:26:12.293121Z</date> </commit> </entry> </target> </blame>