Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 24082:32dabf811b39
webcommands: document "branches" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 20:44:10 -0800 |
parents | ff42de48193c |
children | 5fbb5217a6c8 |
comparison
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 |