Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 24094:9c810d46a093
webcommands: document "annotate" web command
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 22:08:30 -0800 |
parents | c8639f90a715 |
children | 1f48b157dccf |
comparison
equal
deleted
inserted
replaced
24093:c8639f90a715 | 24094:9c810d46a093 |
---|---|
923 rightnode=hex(rightnode), | 923 rightnode=hex(rightnode), |
924 comparison=comparison) | 924 comparison=comparison) |
925 | 925 |
926 @webcommand('annotate') | 926 @webcommand('annotate') |
927 def annotate(web, req, tmpl): | 927 def annotate(web, req, tmpl): |
928 """ | |
929 /annotate/{revision}/{path} | |
930 --------------------------- | |
931 | |
932 Show changeset information for each line in a file. | |
933 | |
934 The ``fileannotate`` template is rendered. | |
935 """ | |
928 fctx = webutil.filectx(web.repo, req) | 936 fctx = webutil.filectx(web.repo, req) |
929 f = fctx.path() | 937 f = fctx.path() |
930 parity = paritygen(web.stripecount) | 938 parity = paritygen(web.stripecount) |
931 diffopts = patch.difffeatureopts(web.repo.ui, untrusted=True, | 939 diffopts = patch.difffeatureopts(web.repo.ui, untrusted=True, |
932 section='annotate', whitespace=True) | 940 section='annotate', whitespace=True) |