Show More
@@ -209,7 +209,6 b' class hgweb(object):' | |||
|
209 | 209 | # we trust caller to give us a private copy |
|
210 | 210 | r = repo |
|
211 | 211 | |
|
212 | r = getwebview(r) | |
|
213 | 212 | r.ui.setconfig('ui', 'report_untrusted', 'off', 'hgweb') |
|
214 | 213 | r.baseui.setconfig('ui', 'report_untrusted', 'off', 'hgweb') |
|
215 | 214 | r.ui.setconfig('ui', 'nontty', 'true', 'hgweb') |
@@ -218,12 +217,17 b' class hgweb(object):' | |||
|
218 | 217 | # break some wsgi implementation. |
|
219 | 218 | r.ui.setconfig('progress', 'disable', 'true', 'hgweb') |
|
220 | 219 | r.baseui.setconfig('progress', 'disable', 'true', 'hgweb') |
|
221 | self.repo = r | |
|
220 | self.repo = self._webifyrepo(r) | |
|
222 | 221 | hook.redirect(True) |
|
223 | 222 | self.repostate = None |
|
224 | 223 | self.mtime = -1 |
|
225 | 224 | self.reponame = name |
|
226 | 225 | |
|
226 | def _webifyrepo(self, repo): | |
|
227 | repo = getwebview(repo) | |
|
228 | self.websubtable = webutil.getwebsubs(repo) | |
|
229 | return repo | |
|
230 | ||
|
227 | 231 | def refresh(self): |
|
228 | 232 | repostate = [] |
|
229 | 233 | mtime = 0 |
@@ -238,14 +242,12 b' class hgweb(object):' | |||
|
238 | 242 | # changes made less than a second ago |
|
239 | 243 | if repostate != self.repostate: |
|
240 | 244 | r = hg.repository(self.repo.baseui, self.repo.url()) |
|
241 |
self.repo = |
|
|
245 | self.repo = self._webifyrepo(r) | |
|
242 | 246 | # update these last to avoid threads seeing empty settings |
|
243 | 247 | self.repostate = repostate |
|
244 | 248 | # mtime is needed for ETag |
|
245 | 249 | self.mtime = mtime |
|
246 | 250 | |
|
247 | self.websubtable = webutil.getwebsubs(r) | |
|
248 | ||
|
249 | 251 | def run(self): |
|
250 | 252 | """Start a server from CGI environment. |
|
251 | 253 |
General Comments 0
You need to be logged in to leave comments.
Login now