Project

General

Profile

Actions

Patch #8934

open

Add support for annotate with subversion when username contain space

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

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

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

Updated by Etienne Massip over 12 years ago

  • Category set to SCM
Actions

Also available in: Atom PDF