hgweb: abstract call to hgwebdir wsgi function
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 14 Aug 2016 16:03:30 -0700
changeset 29786 fc2442492606
parent 29785 88d3c1ab03a7
child 29787 80df04266a16
hgweb: abstract call to hgwebdir wsgi function The function names and behavior now matches hgweb. The reason for this will be obvious in the next patch.
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Aug 14 18:28:43 2016 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Aug 14 16:03:30 2016 -0700
@@ -217,6 +217,9 @@
         return False
 
     def run_wsgi(self, req):
+        return self._runwsgi(req)
+
+    def _runwsgi(self, req):
         try:
             self.refresh()