mercurial/hgweb/webcommands.py
changeset 24094 9c810d46a093
parent 24093 c8639f90a715
child 24095 1f48b157dccf
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)