Patchwork [09,of,22,hgweb-help] webcommands: document "tags" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <4e057c4c9c9efc4f5e5b.1423293347@gps-mbp.local>
Download mbox | patch
Permalink /patch/7747/
State Accepted
Headers show

Comments

Gregory Szorc - Feb. 7, 2015, 7:15 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1423284286 28800
#      Fri Feb 06 20:44:46 2015 -0800
# Node ID 4e057c4c9c9efc4f5e5b2858b9056d3e7d5a4cf6
# Parent  383c2c81b9be38c6da8bd8dfb196aa6294583230
webcommands: document "tags" web command

Patch

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -499,8 +499,18 @@  def manifest(web, req, tmpl):
                 branches=webutil.nodebranchdict(web.repo, ctx))
 
 @webcommand('tags')
 def tags(web, req, tmpl):
+    """
+    /tags
+    -----
+
+    Show information about tags.
+
+    No arguments are accepted.
+
+    The ``tags`` template is rendered.
+    """
     i = list(reversed(web.repo.tagslist()))
     parity = paritygen(web.stripecount)
 
     def entries(notip, latestonly, **map):