# HG changeset patch # User Gregory Szorc # Date 2015-02-07 06:06:44 # Node ID c8639f90a715dd84b73b12e82c6e49668c66255e # Parent 55dfea651b7f419ce0ad357799529948671ec76f webcommands: document "comparison" web command diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -851,6 +851,21 @@ diff = webcommand('diff')(filediff) @webcommand('comparison') def comparison(web, req, tmpl): + """ + /comparison/{revision}/{path} + ----------------------------- + + Show a comparison between the old and new versions of a file from changes + made on a particular revision. + + This is similar to the ``diff`` handler. However, this form features + a split or side-by-side diff rather than a unified diff. + + The ``context`` query string argument can be used to control the lines of + context in the diff. + + The ``filecomparison`` template is rendered. + """ ctx = webutil.changectx(web.repo, req) if 'file' not in req.form: raise ErrorResponse(HTTP_NOT_FOUND, 'file not given')