Show More
@@ -851,6 +851,21 b" diff = webcommand('diff')(filediff)" | |||
|
851 | 851 | |
|
852 | 852 | @webcommand('comparison') |
|
853 | 853 | def comparison(web, req, tmpl): |
|
854 | """ | |
|
855 | /comparison/{revision}/{path} | |
|
856 | ----------------------------- | |
|
857 | ||
|
858 | Show a comparison between the old and new versions of a file from changes | |
|
859 | made on a particular revision. | |
|
860 | ||
|
861 | This is similar to the ``diff`` handler. However, this form features | |
|
862 | a split or side-by-side diff rather than a unified diff. | |
|
863 | ||
|
864 | The ``context`` query string argument can be used to control the lines of | |
|
865 | context in the diff. | |
|
866 | ||
|
867 | The ``filecomparison`` template is rendered. | |
|
868 | """ | |
|
854 | 869 | ctx = webutil.changectx(web.repo, req) |
|
855 | 870 | if 'file' not in req.form: |
|
856 | 871 | raise ErrorResponse(HTTP_NOT_FOUND, 'file not given') |
General Comments 0
You need to be logged in to leave comments.
Login now