Mercurial > public > mercurial-scm > hg
diff hgext/highlight/__init__.py @ 36886:563fd95a6efb
hgweb: pass modern request type into various webutil functions (API)
Our march towards killing wsgirequest continues.
.. api::
Various functions in hgweb.webutil now take a modern request
object instead of ``wsgirequest``.
Differential Revision: https://phab.mercurial-scm.org/D2802
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 10 Mar 2018 19:57:08 -0800 |
parents | ece242db5000 |
children | 4daa22071d5d |
line wrap: on
line diff
--- 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)