Patch #8934

Add support for annotate with subversion when username contain space

Added by Yaacov Akiba Slama over 10 years ago. Updated over 10 years ago.

Status:NewStart date:2011-07-28
Priority:NormalDue 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).

redmine-patch (2.08 KB) Yaacov Akiba Slama, 2011-07-28 13:46

History

#1 Updated by Etienne Massip over 10 years ago

  • Category set to SCM

Also available in: Atom PDF