Patchwork hgweb: update graph function docstring

login
register
mail settings
Submitter Anton Shestakov
Date Dec. 14, 2017, 1:34 p.m.
Message ID <b24e015797a6d4654369.1513258464@neuro>
Download mbox | patch
Permalink /patch/26277/
State Accepted
Headers show

Comments

Anton Shestakov - Dec. 14, 2017, 1:34 p.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1513258200 -28800
#      Thu Dec 14 21:30:00 2017 +0800
# Node ID b24e015797a6d4654369636987efaf9c8000375e
# Parent  865e71e7184410b60e2dd2912407d3884514e437
hgweb: update graph function docstring
Yuya Nishihara - Dec. 14, 2017, 1:48 p.m.
On Thu, 14 Dec 2017 21:34:24 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1513258200 -28800
> #      Thu Dec 14 21:30:00 2017 +0800
> # Node ID b24e015797a6d4654369636987efaf9c8000375e
> # Parent  865e71e7184410b60e2dd2912407d3884514e437
> hgweb: update graph function docstring

Queued, thanks!

Patch

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.
     """