##// 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 def _branches(ui, repo):
79 def _branches(ui, repo):
80 # see mercurial/commands.py:branches
80 # see mercurial/commands.py:branches
81 def iterbranches():
81 def iterbranches():
82 if hasattr(repo, 'branchtags'):
83 # Mercurial < 2.9
82 for t, n in repo.branchtags().iteritems():
84 for t, n in repo.branchtags().iteritems():
83 yield t, n, repo.changelog.rev(n)
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 def branchheads(branch):
89 def branchheads(branch):
85 try:
90 try:
86 return repo.branchheads(branch, closed=False)
91 return repo.branchheads(branch, closed=False)
General Comments 0
You need to be logged in to leave comments. Login now