Project

General

Profile

Defect #44231 » 0002-Fix-Mercurial-repository-support-failing-with-Mercur.patch

Go MAEDA, 2026-10-12 11:15

View differences:

lib/redmine/scm/adapters/mercurial/redminehelper.py
def _branches(ui, repo):
# see mercurial/commands.py:branches
def iterbranches():
for tag, heads, tip, isclosed in repo.branchmap().iterbranches():
branchmap = repo.branchmap()
for tag in branchmap:
tip = branchmap.branchtip(tag)
yield tag, tip, repo.changelog.rev(tip)
def branchheads(branch):
return repo.branchheads(branch, closed=False)
return repo.branchmap().branchheads(branch, closed=False)
def lookup(rev, n):
try:
return repo.lookup(str(rev).encode('utf-8'))
(2-2/2)