# HG changeset patch # User Gregory Szorc # Date 1423287555 28800 # Node ID f17773432782ece09d44dfd4ea1192e769698144 # Parent fe3ee31b039ffb26a38b40d5e9a571015e568d59 webcommands: document "changelog" web command diff -r fe3ee31b039f -r f17773432782 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Fri Feb 06 21:26:53 2015 -0800 +++ b/mercurial/hgweb/webcommands.py Fri Feb 06 21:39:15 2015 -0800 @@ -319,6 +319,29 @@ @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: