##// END OF EJS Templates
hgweb: simplify summary with repo.branchmap().iterbranches()
Brodie Rao -
r20193:7d40e706 default
parent child Browse files
Show More
@@ -596,8 +596,9 b' def summary(web, req, tmpl):'
596 def branches(**map):
596 def branches(**map):
597 parity = paritygen(web.stripecount)
597 parity = paritygen(web.stripecount)
598
598
599 b = web.repo.branchtags()
599 b = web.repo.branchmap()
600 l = [(-web.repo.changelog.rev(n), n, t) for t, n in b.iteritems()]
600 l = [(-web.repo.changelog.rev(tip), tip, tag)
601 for tag, heads, tip, closed in b.iterbranches()]
601 for r, n, t in sorted(l):
602 for r, n, t in sorted(l):
602 yield {'parity': parity.next(),
603 yield {'parity': parity.next(),
603 'branch': t,
604 'branch': t,
General Comments 0
You need to be logged in to leave comments. Login now