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

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <8b2a12f65895dfad960e.1423293349@gps-mbp.local>
Download mbox | patch
Permalink /patch/7749/
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 1423284617 28800
#      Fri Feb 06 20:50:17 2015 -0800
# Node ID 8b2a12f65895dfad960ef4f5d301e99c1219d7a4
# Parent  00c7f65b12a5a70e9b515ee3225ab678c88acde5
webcommands: document "shortlog" 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
@@ -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):