Mercurial > hg
comparison mercurial/hgweb/webcommands.py @ 24091:6b6ec887c79b
webcommands: document "summary" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 21:51:52 -0800 |
parents | a86b2922ea30 |
children | 55dfea651b7f |
comparison
equal
deleted
inserted
replaced
24090:a86b2922ea30 | 24091:6b6ec887c79b |
---|---|
698 entries=lambda **x: entries(0, **x), | 698 entries=lambda **x: entries(0, **x), |
699 latestentry=lambda **x: entries(1, **x)) | 699 latestentry=lambda **x: entries(1, **x)) |
700 | 700 |
701 @webcommand('summary') | 701 @webcommand('summary') |
702 def summary(web, req, tmpl): | 702 def summary(web, req, tmpl): |
703 """ | |
704 /summary | |
705 -------- | |
706 | |
707 Show a summary of repository state. | |
708 | |
709 Information about the latest changesets, bookmarks, tags, and branches | |
710 is captured by this handler. | |
711 | |
712 The ``summary`` template is rendered. | |
713 """ | |
703 i = reversed(web.repo.tagslist()) | 714 i = reversed(web.repo.tagslist()) |
704 | 715 |
705 def tagentries(**map): | 716 def tagentries(**map): |
706 parity = paritygen(web.stripecount) | 717 parity = paritygen(web.stripecount) |
707 count = 0 | 718 count = 0 |