equal
deleted
inserted
replaced
90 self.repos.sort() |
90 self.repos.sort() |
91 self.lastrefresh = time.time() |
91 self.lastrefresh = time.time() |
92 |
92 |
93 def run(self): |
93 def run(self): |
94 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
94 if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
95 raise RuntimeError("This function is only intended to be called while running as a CGI script.") |
95 raise RuntimeError("This function is only intended to be " |
|
96 "called while running as a CGI script.") |
96 import mercurial.hgweb.wsgicgi as wsgicgi |
97 import mercurial.hgweb.wsgicgi as wsgicgi |
97 wsgicgi.launch(self) |
98 wsgicgi.launch(self) |
98 |
99 |
99 def __call__(self, env, respond): |
100 def __call__(self, env, respond): |
100 req = wsgirequest(env, respond) |
101 req = wsgirequest(env, respond) |