changeset 24085:0bf61eae67ab

webcommands: document "changeset" web command
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 20:48:22 -0800
parents ef06e2b1a3d1
children 2d8e93554822
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 06 20:44:46 2015 -0800
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 06 20:48:22 2015 -0800
@@ -350,6 +350,20 @@
 
 @webcommand('changeset')
 def changeset(web, req, tmpl):
+    """
+    /changeset[/{revision}]
+    -----------------------
+
+    Show information about a single changeset.
+
+    A URL path argument is the changeset identifier to show. See ``hg help
+    revisions`` for possible values. If not defined, the ``tip`` changeset
+    will be shown.
+
+    The ``changeset`` template is rendered. Contents of the ``changesettag``,
+    ``changesetbookmark``, ``filenodelink``, ``filenolink``, and the many
+    templates related to diffs may all be used to produce the output.
+    """
     ctx = webutil.changectx(web.repo, req)
     basectx = webutil.basechangectx(web.repo, req)
     if basectx is None: