Patchwork [17,of,22,hgweb-help] webcommands: document "filediff" web command

login
register
mail settings
Submitter Gregory Szorc
Date Feb. 7, 2015, 7:15 a.m.
Message ID <e87c340ae85db7a83cf5.1423293355@gps-mbp.local>
Download mbox | patch
Permalink /patch/7755/
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 1423288934 28800
#      Fri Feb 06 22:02:14 2015 -0800
# Node ID e87c340ae85db7a83cf50843162f19dae35276b7
# Parent  466e6f7c2a429eccdf6fb1eb0d1b8dcb50ff881e
webcommands: document "filediff" 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
@@ -799,8 +799,19 @@  def summary(web, req, tmpl):
                 archives=web.archivelist("tip"))
 
 @webcommand('filediff')
 def filediff(web, req, tmpl):
+    """
+    /diff/{revision}/{path}
+    -----------------------
+
+    Show how a file changed in a particular commit.
+
+    The ``filediff`` template is rendered.
+
+    This hander is registered under both the ``/diff`` and ``/filediff``
+    paths. ``/diff`` is used in modern code.
+    """
     fctx, ctx = None, None
     try:
         fctx = webutil.filectx(web.repo, req)
     except LookupError: