Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 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 | c4fc33c477da |
children | 80df04266a16 |
comparison
equal
deleted
inserted
replaced
29785:88d3c1ab03a7 | 29786:fc2442492606 |
---|---|
215 return True | 215 return True |
216 | 216 |
217 return False | 217 return False |
218 | 218 |
219 def run_wsgi(self, req): | 219 def run_wsgi(self, req): |
220 return self._runwsgi(req) | |
221 | |
222 def _runwsgi(self, req): | |
220 try: | 223 try: |
221 self.refresh() | 224 self.refresh() |
222 | 225 |
223 virtual = req.env.get("PATH_INFO", "").strip('/') | 226 virtual = req.env.get("PATH_INFO", "").strip('/') |
224 tmpl = self.templater(req) | 227 tmpl = self.templater(req) |