changeset 24092:55dfea651b7f

webcommands: document "filediff" web command
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 22:02:14 -0800
parents 6b6ec887c79b
children c8639f90a715
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 06 21:51:52 2015 -0800
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 06 22:02:14 2015 -0800
@@ -797,6 +797,17 @@
 
 @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)