equal
deleted
inserted
replaced
359 should be using instances of this class as the WSGI application. |
359 should be using instances of this class as the WSGI application. |
360 """ |
360 """ |
361 with self._obtainrepo() as repo: |
361 with self._obtainrepo() as repo: |
362 profile = repo.ui.configbool(b'profiling', b'enabled') |
362 profile = repo.ui.configbool(b'profiling', b'enabled') |
363 with profiling.profile(repo.ui, enabled=profile): |
363 with profiling.profile(repo.ui, enabled=profile): |
364 for r in self._runwsgi(req, res, repo): |
364 yield from self._runwsgi(req, res, repo) |
365 yield r |
|
366 |
365 |
367 def _runwsgi(self, req, res, repo): |
366 def _runwsgi(self, req, res, repo): |
368 rctx = requestcontext(self, repo, req, res) |
367 rctx = requestcontext(self, repo, req, res) |
369 |
368 |
370 # This state is global across all threads. |
369 # This state is global across all threads. |