Project

General

Profile

Actions

Defect #27790

closed

mercurial: error of double quotes in branch and tag names

Added by Alexander Ryabinovskiy almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hello.
I have redmine 3.4.3 installation.
Redmine can`t handle mercurial branches with double quotes, it throws an error after parsing with ActiveSupport::XmlMini.parse(xml):

hg: error during getting info: undefined method `[]' for nil:NilClass

because "xml" variable contains string like this:
<branch revision=\"138\" node=\"8a17814e772e4a41b9c2480e047dce7d9181a39e\" name=\"\"TestBranch\"\"/>

My solution is to replace double quotes in branch name with

&quot;
in redminehelper.py, .patch is in attach.


Files

redmine_redminehelper_fix.diff (968 Bytes) redmine_redminehelper_fix.diff Alexander Ryabinovskiy, 2017-12-13 11:55
Actions

Also available in: Atom PDF