# HG changeset patch # User Brodie Rao # Date 1379318909 25200 # Node ID 7d40e706412c54811158a4c0cd7826ee252b12b3 # Parent 38fad5e76ee856a3f2bfa31174af58a8b2e0e9f9 hgweb: simplify summary with repo.branchmap().iterbranches() diff -r 38fad5e76ee8 -r 7d40e706412c mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Mon Sep 16 01:08:29 2013 -0700 +++ b/mercurial/hgweb/webcommands.py Mon Sep 16 01:08:29 2013 -0700 @@ -596,8 +596,9 @@ def branches(**map): parity = paritygen(web.stripecount) - b = web.repo.branchtags() - l = [(-web.repo.changelog.rev(n), n, t) for t, n in b.iteritems()] + b = web.repo.branchmap() + l = [(-web.repo.changelog.rev(tip), tip, tag) + for tag, heads, tip, closed in b.iterbranches()] for r, n, t in sorted(l): yield {'parity': parity.next(), 'branch': t,