[PATCH 14 of 22 hgweb-help] webcommands: document "changelog" web command

Gregory Szorc gregory.szorc at gmail.com
Sat Feb 7 07:15:52 UTC 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1423287555 28800
#      Fri Feb 06 21:39:15 2015 -0800
# Node ID 8d0a3d23b55a681c80501e6a868e6a14c54d573d
# Parent  51d1123555eb61cde3176a228365c7d9aaba87c8
webcommands: document "changelog" web command

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -321,8 +321,31 @@ def _search(web, req, tmpl):
                 showforcekw=showforcekw, showunforcekw=showunforcekw)
 
 @webcommand('changelog')
 def changelog(web, req, tmpl, shortlog=False):
+    """
+    /changelog[/{revision}]
+    -----------------------
+
+    Show information about multiple changesets.
+
+    If the optional ``revision`` URL argument is absent, information about
+    all changesets starting at ``tip`` will be rendered. If the ``revision``
+    argument is present, changesets will be shown starting from the specified
+    revision.
+
+    If ``revision`` is absent, the ``rev`` query string argument may be
+    defined. This will perform a search for changesets.
+
+    The argument for ``rev`` can be a single revision, a revision set,
+    or a literal keyword to search for in changeset data (equivalent to
+    :hg:`log -k`.
+
+    The ``revcount`` query string argument defines the maximum numbers of
+    changesets to render.
+
+    For non-searches, the ``changelog`` template will be rendered.
+    """
 
     query = ''
     if 'node' in req.form:
         ctx = webutil.changectx(web.repo, req)



More information about the Mercurial-devel mailing list