[PATCH] hgweb: update graph function docstring

Anton Shestakov av6 at dwimlabs.net
Thu Dec 14 13:34:24 UTC 2017


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1513258200 -28800
#      Thu Dec 14 21:30:00 2017 +0800
# Node ID b24e015797a6d4654369636987efaf9c8000375e
# Parent  865e71e7184410b60e2dd2912407d3884514e437
hgweb: update graph function docstring

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1176,11 +1176,16 @@ def graph(web, req, tmpl):
     Information rendered by this handler can be used to create visual
     representations of repository topology.
 
-    The ``revision`` URL parameter controls the starting changeset.
+    The ``revision`` URL parameter controls the starting changeset. If it's
+    absent, the default is ``tip``.
 
     The ``revcount`` query string argument can define the number of changesets
     to show information for.
 
+    The ``graphtop`` query string argument can specify the starting changeset
+    for producing ``jsdata`` variable that is used for rendering graph in
+    JavaScript. By default it has the same value as ``revision``.
+
     This handler will render the ``graph`` template.
     """
 


More information about the Mercurial-devel mailing list