hgext/highlight/__init__.py
changeset 36892 563fd95a6efb
parent 36890 ece242db5000
child 36893 4daa22071d5d
--- a/hgext/highlight/__init__.py	Sat Mar 10 19:46:54 2018 -0800
+++ b/hgext/highlight/__init__.py	Sat Mar 10 19:57:08 2018 -0800
@@ -75,7 +75,7 @@
 def annotate_highlight(orig, web, req, tmpl):
     mt = ''.join(web.tmpl('mimetype', encoding=encoding.encoding))
     if 'html' in mt:
-        fctx = webutil.filectx(web.repo, req)
+        fctx = webutil.filectx(web.repo, web.req)
         pygmentize(web, 'annotateline', fctx, web.tmpl)
 
     return orig(web, req, web.tmpl)