Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 24084:ef06e2b1a3d1
webcommands: document "tags" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 20:44:46 -0800 |
parents | 5fbb5217a6c8 |
children | 0bf61eae67ab |
comparison
equal
deleted
inserted
replaced
24083:5fbb5217a6c8 | 24084:ef06e2b1a3d1 |
---|---|
495 inbranch=webutil.nodeinbranch(web.repo, ctx), | 495 inbranch=webutil.nodeinbranch(web.repo, ctx), |
496 branches=webutil.nodebranchdict(web.repo, ctx)) | 496 branches=webutil.nodebranchdict(web.repo, ctx)) |
497 | 497 |
498 @webcommand('tags') | 498 @webcommand('tags') |
499 def tags(web, req, tmpl): | 499 def tags(web, req, tmpl): |
500 """ | |
501 /tags | |
502 ----- | |
503 | |
504 Show information about tags. | |
505 | |
506 No arguments are accepted. | |
507 | |
508 The ``tags`` template is rendered. | |
509 """ | |
500 i = list(reversed(web.repo.tagslist())) | 510 i = list(reversed(web.repo.tagslist())) |
501 parity = paritygen(web.stripecount) | 511 parity = paritygen(web.stripecount) |
502 | 512 |
503 def entries(notip, latestonly, **map): | 513 def entries(notip, latestonly, **map): |
504 t = i | 514 t = i |