[PATCH 17 of 22 hgweb-help] webcommands: document "filediff" web command
Gregory Szorc
gregory.szorc at gmail.com
Sat Feb 7 01:15:55 CST 2015
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1423288934 28800
# Fri Feb 06 22:02:14 2015 -0800
# Node ID e87c340ae85db7a83cf50843162f19dae35276b7
# Parent 466e6f7c2a429eccdf6fb1eb0d1b8dcb50ff881e
webcommands: document "filediff" web command
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:
More information about the Mercurial-devel
mailing list