Patchwork [19,of,22,hgweb-help] webcommands: document "annotate" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <30b174b9083803b36f8d.1423293357@gps-mbp.local>
Download mbox | patch
Permalink /patch/7757/
State Accepted
Headers show

Comments

Gregory Szorc - Feb. 7, 2015, 7:15 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1423289310 28800
#      Fri Feb 06 22:08:30 2015 -0800
# Node ID 30b174b9083803b36f8d2f993dbd10f9739d8c60
# Parent  9927627531e8e504fb630294561e3b8bb8b61ce7
webcommands: document "annotate" web command

Patch

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,