diff -r 9fc3d814646e -r 89002d07a114 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sat Mar 10 20:36:34 2018 -0800 +++ b/mercurial/hgweb/webcommands.py Sat Mar 10 15:37:29 2018 -0800 @@ -186,6 +186,9 @@ If ``path`` is not defined, information about the root directory will be rendered. """ + if web.req.qsparams.get('style') == 'raw': + return rawfile(web, req, tmpl) + path = webutil.cleanpath(web.repo, req.req.qsparams.get('file', '')) if not path: return manifest(web, req, tmpl)