comparison mercurial/hgweb/webcommands.py @ 24083:5fbb5217a6c8

webcommands: document "bookmarks" web command
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 20:43:54 -0800
parents 32dabf811b39
children ef06e2b1a3d1
comparison
equal deleted inserted replaced
24082:32dabf811b39 24083:5fbb5217a6c8
518 entriesnotip=lambda **x: entries(True, False, **x), 518 entriesnotip=lambda **x: entries(True, False, **x),
519 latestentry=lambda **x: entries(True, True, **x)) 519 latestentry=lambda **x: entries(True, True, **x))
520 520
521 @webcommand('bookmarks') 521 @webcommand('bookmarks')
522 def bookmarks(web, req, tmpl): 522 def bookmarks(web, req, tmpl):
523 """
524 /bookmarks
525 ----------
526
527 Show information about bookmarks.
528
529 No arguments are accepted.
530
531 The ``bookmarks`` template is rendered.
532 """
523 i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo] 533 i = [b for b in web.repo._bookmarks.items() if b[1] in web.repo]
524 parity = paritygen(web.stripecount) 534 parity = paritygen(web.stripecount)
525 535
526 def entries(latestonly, **map): 536 def entries(latestonly, **map):
527 if latestonly: 537 if latestonly: