# HG changeset patch # User Gregory Szorc # Date 2015-02-07 05:13:03 # Node ID 6f5b4393590c5726eadfdfd9e45886332a8008b2 # Parent 2d8e935548225690ceeeb53d795858addb4d9798 webcommands: document "log" web command diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -44,6 +44,21 @@ class webcommand(object): @webcommand('log') def log(web, req, tmpl): + """ + /log[/{revision}[/{path}]] + -------------------------- + + Show repository or file history. + + For URLs of the form ``/log/{revision}``, a list of changesets starting at + the specified changeset identifier is shown. If ``{revision}`` is not + defined, the default is ``tip``. This form is equivalent to the + ``changelog`` handler. + + For URLs of the form ``/log/{revision}/{file}``, the history for a specific + file will be shown. This form is equivalent to the ``filelog`` handler. + """ + if 'file' in req.form and req.form['file'][0]: return filelog(web, req, tmpl) else: