Actions
Patch #8934
openAdd support for annotate with subversion when username contain space
Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-07-28
Due date:
% Done:
0%
Estimated time:
Description
When username contains space(s), annotate doesn't work for subversion because it uses the "blame
" subcommand which returns the file given prefixed by the revision number and the author separated by spaces. So any parsing based on that will break if author can contain spaces.
The attached patch uses the same subcommand but with the additional --xml
option in order to obtain a full xml instead of space separated fields.
The drawback is that the lines themselves are not returned by svn when --xml
is used. Consequently, one needs to call both blame --xml
and cat
subcommands to have both the metadata and the content.
The included patch can be used on top on 1.2 and 1.2.1 (at least).
Files
Actions