[PATCH 19 of 22 hgweb-help] webcommands: document "annotate" web command
Gregory Szorc
gregory.szorc at gmail.com
Sat Feb 7 01:15:57 CST 2015
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1423289310 28800
# Fri Feb 06 22:08:30 2015 -0800
# Node ID 30b174b9083803b36f8d2f993dbd10f9739d8c60
# Parent 9927627531e8e504fb630294561e3b8bb8b61ce7
webcommands: document "annotate" web command
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -927,8 +927,16 @@ def comparison(web, req, tmpl):
comparison=comparison)
@webcommand('annotate')
def annotate(web, req, tmpl):
+ """
+ /annotate/{revision}/{path}
+ ---------------------------
+
+ Show changeset information for each line in a file.
+
+ The ``fileannotate`` template is rendered.
+ """
fctx = webutil.filectx(web.repo, req)
f = fctx.path()
parity = paritygen(web.stripecount)
diffopts = patch.difffeatureopts(web.repo.ui, untrusted=True,
More information about the Mercurial-devel
mailing list