mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
webcommands: document "filediff" web command
This commit is contained in:
parent
d8699a97c0
commit
4543e0b0be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user