[PATCH 10 of 22 hgweb-help] webcommands: document "changeset" web command

Gregory Szorc gregory.szorc at gmail.com
Sat Feb 7 01:15:48 CST 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1423284502 28800
#      Fri Feb 06 20:48:22 2015 -0800
# Node ID 00c7f65b12a5a70e9b515ee3225ab678c88acde5
# Parent  4e057c4c9c9efc4f5e5b2858b9056d3e7d5a4cf6
webcommands: document "changeset" web command

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -352,8 +352,22 @@ def shortlog(web, req, tmpl):
     return changelog(web, req, tmpl, shortlog=True)
 
 @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:
         basectx = ctx.p1()


More information about the Mercurial-devel mailing list