Patch #8934
Add support for annotate with subversion when username contain space
Status: | New | Start date: | 2011-07-28 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | SCM | |||
Target version: | - |
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).
History
#1
Updated by Etienne Massip almost 11 years ago
- Category set to SCM