Project

General

Profile

Defect #29413 » 29413-mercurial-fix.diff

Patch by Frédéric Fondement (#29413#note-5) - Go MAEDA, 2018-08-22 05:47

View differences:

lib/redmine/scm/adapters/mercurial/redminehelper.py (working copy)
</rhmanifest>
"""
import re, time, cgi, urllib
from mercurial import cmdutil, commands, node, error, hg
from mercurial import cmdutil, commands, node, error, hg, registrar
cmdtable = {}
command = cmdutil.command(cmdtable)
command = registrar.command(cmdtable) if hasattr(registrar, 'command') else cmdutil.command(cmdtable)
_x = cgi.escape
_u = lambda s: cgi.escape(urllib.quote(s))
def _changectx(repo, rev):
if isinstance(rev, str):
rev = repo.lookup(rev)
if hasattr(repo, 'changectx'):
return repo.changectx(rev)
else:
    (1-1/1)