Patchwork [20,of,22,hgweb-help] webcommands: document "filelog" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <930ebcac556188143428.1423293358@gps-mbp.local>
Download mbox | patch
Permalink /patch/7758/
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 1423289514 28800
#      Fri Feb 06 22:11:54 2015 -0800
# Node ID 930ebcac556188143428bbc0bb1811b5df640c31
# Parent  30b174b9083803b36f8d2f993dbd10f9739d8c60
webcommands: document "filelog" 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
@@ -988,8 +988,19 @@  def annotate(web, req, tmpl):
                 permissions=fctx.manifest().flags(f))
 
 @webcommand('filelog')
 def filelog(web, req, tmpl):
+    """
+    /filelog/{revision}/{path}
+    --------------------------
+
+    Show information about the history of a file in the repository.
+
+    The ``revcount`` query string argument can be defined to control the
+    maximum number of entries to show.
+
+    The ``filelog`` template will be rendered.
+    """
 
     try:
         fctx = webutil.filectx(web.repo, req)
         f = fctx.path()