From patchwork Sat Feb 7 07:15:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [14,of,22,hgweb-help] webcommands: document "changelog" web command From: Gregory Szorc X-Patchwork-Id: 7752 Message-Id: <8d0a3d23b55a681c8050.1423293352@gps-mbp.local> To: mercurial-devel@selenic.com Date: Fri, 06 Feb 2015 23:15:52 -0800 # HG changeset patch # User Gregory Szorc # 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)