mercurial/hgweb/hgwebdir_mod.py
changeset 29787 80df04266a16
parent 29786 fc2442492606
child 30559 d83ca854fa21
equal deleted inserted replaced
29786:fc2442492606 29787:80df04266a16
    29 
    29 
    30 from .. import (
    30 from .. import (
    31     encoding,
    31     encoding,
    32     error,
    32     error,
    33     hg,
    33     hg,
       
    34     profiling,
    34     scmutil,
    35     scmutil,
    35     templater,
    36     templater,
    36     ui as uimod,
    37     ui as uimod,
    37     util,
    38     util,
    38 )
    39 )
   215             return True
   216             return True
   216 
   217 
   217         return False
   218         return False
   218 
   219 
   219     def run_wsgi(self, req):
   220     def run_wsgi(self, req):
   220         return self._runwsgi(req)
   221         with profiling.maybeprofile(self.ui):
       
   222             for r in self._runwsgi(req):
       
   223                 yield r
   221 
   224 
   222     def _runwsgi(self, req):
   225     def _runwsgi(self, req):
   223         try:
   226         try:
   224             self.refresh()
   227             self.refresh()
   225 
   228