Show More
@@ -171,10 +171,6 class hgweb(object): | |||||
171 | return self.repo.ui.config(section, name, default, |
|
171 | return self.repo.ui.config(section, name, default, | |
172 | untrusted=untrusted) |
|
172 | untrusted=untrusted) | |
173 |
|
173 | |||
174 | def configbool(self, section, name, default=False, untrusted=True): |
|
|||
175 | return self.repo.ui.configbool(section, name, default, |
|
|||
176 | untrusted=untrusted) |
|
|||
177 |
|
||||
178 | def _getview(self, repo): |
|
174 | def _getview(self, repo): | |
179 | """The 'web.view' config controls changeset filter to hgweb. Possible |
|
175 | """The 'web.view' config controls changeset filter to hgweb. Possible | |
180 | values are ``served``, ``visible`` and ``all``. Default is ``served``. |
|
176 | values are ``served``, ``visible`` and ``all``. Default is ``served``. | |
@@ -342,7 +338,7 class hgweb(object): | |||||
342 | req.form['cmd'] = [tmpl.cache['default']] |
|
338 | req.form['cmd'] = [tmpl.cache['default']] | |
343 | cmd = req.form['cmd'][0] |
|
339 | cmd = req.form['cmd'][0] | |
344 |
|
340 | |||
345 |
if |
|
341 | if rctx.configbool('web', 'cache', True): | |
346 | caching(self, req) # sets ETag header or raises NOT_MODIFIED |
|
342 | caching(self, req) # sets ETag header or raises NOT_MODIFIED | |
347 | if cmd not in webcommands.__all__: |
|
343 | if cmd not in webcommands.__all__: | |
348 | msg = 'no such method: %s' % cmd |
|
344 | msg = 'no such method: %s' % cmd |
General Comments 0
You need to be logged in to leave comments.
Login now