Defect #44231 » 0002-Fix-Mercurial-repository-support-failing-with-Mercur.patch
| lib/redmine/scm/adapters/mercurial/redminehelper.py | ||
|---|---|---|
| 88 | 88 |
def _branches(ui, repo): |
| 89 | 89 |
# see mercurial/commands.py:branches |
| 90 | 90 |
def iterbranches(): |
| 91 |
for tag, heads, tip, isclosed in repo.branchmap().iterbranches(): |
|
| 91 |
branchmap = repo.branchmap() |
|
| 92 |
for tag in branchmap: |
|
| 93 |
tip = branchmap.branchtip(tag) |
|
| 92 | 94 |
yield tag, tip, repo.changelog.rev(tip) |
| 93 | 95 |
def branchheads(branch): |
| 94 |
return repo.branchheads(branch, closed=False) |
|
| 96 |
return repo.branchmap().branchheads(branch, closed=False)
|
|
| 95 | 97 |
def lookup(rev, n): |
| 96 | 98 |
try: |
| 97 | 99 |
return repo.lookup(str(rev).encode('utf-8'))
|
- « Previous
- 1
- 2
- Next »