# HG changeset patch # User Gregory Szorc # Date 2015-02-07 06:02:14 # Node ID 55dfea651b7f419ce0ad357799529948671ec76f # Parent 6b6ec887c79bf36bf2441d6a3e3ac0ebde3f5217 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 @@ -797,6 +797,17 @@ def summary(web, req, tmpl): @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)