Project

General

Profile

Actions

Defect #29413

closed

Mercurial 4.7 compatibility

Added by Frédéric Fondement over 5 years ago. Updated over 5 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,

Redmine 3.4.6 doesn't work with mercurial 4.7.
Logs say that in redmine/lib/redmine/scm/adapters/mercurial/redminehelper.py, module cmdutil does not have a command method.
Checking mercurial 4.6.1 source, this method is indeed deprecated ; it must have been removed from 4.7.
I got it back to work by following deprecation instruction which was "used registrar.command instead":

import re, time, cgi, urllib
from mercurial import cmdutil, commands, node, error, hg, registrar # added registrar

cmdtable = {}
command = registrar.command(cmdtable) # replaced cmdutil with registrar

Regards.


Files

29413-mercurial-fix.diff (866 Bytes) 29413-mercurial-fix.diff Patch by Frédéric Fondement (#29413#note-5) Go MAEDA, 2018-08-22 05:47
Actions

Also available in: Atom PDF