changeset 29786:fc2442492606

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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 14 Aug 2016 16:03:30 -0700
parents 88d3c1ab03a7
children 80df04266a16
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()