Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 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 | fafd9a1284cf |
comparison
equal
deleted
inserted
replaced
24096:bb8b6d44fe1d | 24097:8e04a73b5502 |
---|---|
1157 staticfile(static, fname, req) | 1157 staticfile(static, fname, req) |
1158 return [] | 1158 return [] |
1159 | 1159 |
1160 @webcommand('graph') | 1160 @webcommand('graph') |
1161 def graph(web, req, tmpl): | 1161 def graph(web, req, tmpl): |
1162 """ | |
1163 /graph[/{revision}] | |
1164 ------------------- | |
1165 | |
1166 Show information about the graphical topology of the repository. | |
1167 | |
1168 Information rendered by this handler can be used to create visual | |
1169 representations of repository topology. | |
1170 | |
1171 The ``revision`` URL parameter controls the starting changeset. | |
1172 | |
1173 The ``revcount`` query string argument can define the number of changesets | |
1174 to show information for. | |
1175 | |
1176 This handler will render the ``graph`` template. | |
1177 """ | |
1162 | 1178 |
1163 ctx = webutil.changectx(web.repo, req) | 1179 ctx = webutil.changectx(web.repo, req) |
1164 rev = ctx.rev() | 1180 rev = ctx.rev() |
1165 | 1181 |
1166 bg_height = 39 | 1182 bg_height = 39 |