##// END OF EJS Templates
Merged r12930 from trunk to 2.5-stable (#16177)...
Toshi MARUYAMA -
r12657:fcc1f198e783
parent child
Show More
@@ -79,8 +79,13 def _tags(ui, repo):
79 79 def _branches(ui, repo):
80 80 # see mercurial/commands.py:branches
81 81 def iterbranches():
82 for t, n in repo.branchtags().iteritems():
83 yield t, n, repo.changelog.rev(n)
82 if hasattr(repo, 'branchtags'):
83 # Mercurial < 2.9
84 for t, n in repo.branchtags().iteritems():
85 yield t, n, repo.changelog.rev(n)
86 else:
87 for tag, heads, tip, isclosed in repo.branchmap().iterbranches():
88 yield tag, tip, repo.changelog.rev(tip)
84 89 def branchheads(branch):
85 90 try:
86 91 return repo.branchheads(branch, closed=False)
General Comments 0
You need to be logged in to leave comments. Login now