webcommands: document "filediff" web command

This commit is contained in:
Gregory Szorc 2015-02-06 22:02:14 -08:00
parent d8699a97c0
commit 4543e0b0be

View File

@ -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)