changeset 24087:6f5b4393590c

webcommands: document "log" web command
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 21:13:03 -0800
parents 2d8e93554822
children fe3ee31b039f
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 06 20:50:17 2015 -0800
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 06 21:13:03 2015 -0800
@@ -44,6 +44,21 @@
 
 @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: