[PATCH 11 of 22 hgweb-help] webcommands: document "shortlog" web command

Gregory Szorc gregory.szorc at gmail.com
Sat Feb 7 01:15:49 CST 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1423284617 28800
#      Fri Feb 06 20:50:17 2015 -0800
# Node ID 8b2a12f65895dfad960ef4f5d301e99c1219d7a4
# Parent  00c7f65b12a5a70e9b515ee3225ab678c88acde5
webcommands: document "shortlog" web command

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -348,8 +348,18 @@ def changelog(web, req, tmpl, shortlog=F
                 morevars=morevars, lessvars=lessvars, query=query)
 
 @webcommand('shortlog')
 def shortlog(web, req, tmpl):
+    """
+    /shortlog
+    ---------
+
+    Show basic information about a set of changesets.
+
+    This accepts the same parameters as the ``changelog`` handler. The only
+    difference is the ``shortlog`` template will be rendered instead of the
+    ``changelog`` template.
+    """
     return changelog(web, req, tmpl, shortlog=True)
 
 @webcommand('changeset')
 def changeset(web, req, tmpl):


More information about the Mercurial-devel mailing list