mercurial/hgweb/webcommands.py
changeset 24082 32dabf811b39
parent 24081 ff42de48193c
child 24083 5fbb5217a6c8
equal deleted inserted replaced
24081:ff42de48193c 24082:32dabf811b39
   539                 entries=lambda **x: entries(latestonly=False, **x),
   539                 entries=lambda **x: entries(latestonly=False, **x),
   540                 latestentry=lambda **x: entries(latestonly=True, **x))
   540                 latestentry=lambda **x: entries(latestonly=True, **x))
   541 
   541 
   542 @webcommand('branches')
   542 @webcommand('branches')
   543 def branches(web, req, tmpl):
   543 def branches(web, req, tmpl):
       
   544     """
       
   545     /branches
       
   546     ---------
       
   547 
       
   548     Show information about branches.
       
   549 
       
   550     All known branches are contained in the output, even closed branches.
       
   551 
       
   552     No arguments are accepted.
       
   553 
       
   554     The ``branches`` template is rendered.
       
   555     """
   544     tips = []
   556     tips = []
   545     heads = web.repo.heads()
   557     heads = web.repo.heads()
   546     parity = paritygen(web.stripecount)
   558     parity = paritygen(web.stripecount)
   547     sortkey = lambda item: (not item[1], item[0].rev())
   559     sortkey = lambda item: (not item[1], item[0].rev())
   548 
   560