mercurial/hgweb/webcommands.py
branchstable
changeset 17261 c0068b058fcd
parent 17202 1ae119269ddc
child 17289 f2d6b4f8e78c
equal deleted inserted replaced
17255:3e856d8abe9c 17261:c0068b058fcd
   392                 bookmarks=webutil.nodebookmarksdict(web.repo, node),
   392                 bookmarks=webutil.nodebookmarksdict(web.repo, node),
   393                 inbranch=webutil.nodeinbranch(web.repo, ctx),
   393                 inbranch=webutil.nodeinbranch(web.repo, ctx),
   394                 branches=webutil.nodebranchdict(web.repo, ctx))
   394                 branches=webutil.nodebranchdict(web.repo, ctx))
   395 
   395 
   396 def tags(web, req, tmpl):
   396 def tags(web, req, tmpl):
   397     i = web.repo.tagslist()
   397     i = reversed(web.repo.tagslist())
   398     i.reverse()
       
   399     parity = paritygen(web.stripecount)
   398     parity = paritygen(web.stripecount)
   400 
   399 
   401     def entries(notip=False, limit=0, **map):
   400     def entries(notip=False, limit=0, **map):
   402         count = 0
   401         count = 0
   403         for k, n in i:
   402         for k, n in i:
   464     return tmpl('branches', node=hex(web.repo.changelog.tip()),
   463     return tmpl('branches', node=hex(web.repo.changelog.tip()),
   465                 entries=lambda **x: entries(0, **x),
   464                 entries=lambda **x: entries(0, **x),
   466                 latestentry=lambda **x: entries(1, **x))
   465                 latestentry=lambda **x: entries(1, **x))
   467 
   466 
   468 def summary(web, req, tmpl):
   467 def summary(web, req, tmpl):
   469     i = web.repo.tagslist()
   468     i = reversed(web.repo.tagslist())
   470     i.reverse()
       
   471 
   469 
   472     def tagentries(**map):
   470     def tagentries(**map):
   473         parity = paritygen(web.stripecount)
   471         parity = paritygen(web.stripecount)
   474         count = 0
   472         count = 0
   475         for k, n in i:
   473         for k, n in i: