equal
deleted
inserted
replaced
302 with profiling.profile(repo.ui, enabled=profile): |
302 with profiling.profile(repo.ui, enabled=profile): |
303 for r in self._runwsgi(wsgireq, repo): |
303 for r in self._runwsgi(wsgireq, repo): |
304 yield r |
304 yield r |
305 |
305 |
306 def _runwsgi(self, wsgireq, repo): |
306 def _runwsgi(self, wsgireq, repo): |
307 req = requestmod.parserequestfromenv(wsgireq.env) |
307 req = wsgireq.req |
308 rctx = requestcontext(self, repo) |
308 rctx = requestcontext(self, repo) |
309 |
309 |
310 # This state is global across all threads. |
310 # This state is global across all threads. |
311 encoding.encoding = rctx.config('web', 'encoding') |
311 encoding.encoding = rctx.config('web', 'encoding') |
312 rctx.repo.ui.environ = wsgireq.env |
312 rctx.repo.ui.environ = wsgireq.env |