changeset 24097:8e04a73b5502

webcommands: document "graph" web command
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 22:25:40 -0800
parents bb8b6d44fe1d
children 067540702f64
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 06 22:19:59 2015 -0800
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 06 22:25:40 2015 -0800
@@ -1159,6 +1159,22 @@
 
 @webcommand('graph')
 def graph(web, req, tmpl):
+    """
+    /graph[/{revision}]
+    -------------------
+
+    Show information about the graphical topology of the repository.
+
+    Information rendered by this handler can be used to create visual
+    representations of repository topology.
+
+    The ``revision`` URL parameter controls the starting changeset.
+
+    The ``revcount`` query string argument can define the number of changesets
+    to show information for.
+
+    This handler will render the ``graph`` template.
+    """
 
     ctx = webutil.changectx(web.repo, req)
     rev = ctx.rev()