Actions
Defect #29413
closedMercurial 4.7 compatibility
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
Actions