mercurial/hgweb/webcommands.py
changeset 36872 89002d07a114
parent 36871 9fc3d814646e
child 36873 98baf8dea553
--- 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)