# HG changeset patch # User Gregory Szorc # Date 2015-02-07 06:25:40 # Node ID 8e04a73b550299affc13f51a59802c03a251cd28 # Parent bb8b6d44fe1da70d258ac2a7773749213c3c5c64 webcommands: document "graph" web command diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1159,6 +1159,22 @@ def static(web, req, tmpl): @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()