mercurial/hgweb/webcommands.py
changeset 20193 7d40e706412c
parent 20095 1c46b18b0e1c
child 20194 9985e188d940
equal deleted inserted replaced
20192:38fad5e76ee8 20193:7d40e706412c
   594                    'node': hex(n)}
   594                    'node': hex(n)}
   595 
   595 
   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,
   604                    'node': hex(n),
   605                    'node': hex(n),
   605                    'date': web.repo[n].date()}
   606                    'date': web.repo[n].date()}