##// END OF EJS Templates
hgewb: disable progress when serving (issue4582)...
Pierre-Yves David -
r25488:89ce95f9 default
parent child Browse files
Show More
@@ -69,6 +69,10 class hgweb(object):
69 r.baseui.setconfig('ui', 'report_untrusted', 'off', 'hgweb')
69 r.baseui.setconfig('ui', 'report_untrusted', 'off', 'hgweb')
70 r.ui.setconfig('ui', 'nontty', 'true', 'hgweb')
70 r.ui.setconfig('ui', 'nontty', 'true', 'hgweb')
71 r.baseui.setconfig('ui', 'nontty', 'true', 'hgweb')
71 r.baseui.setconfig('ui', 'nontty', 'true', 'hgweb')
72 # displaying bundling progress bar while serving feel wrong and may
73 # break some wsgi implementation.
74 r.ui.setconfig('progress', 'disable', 'true', 'hgweb')
75 r.baseui.setconfig('progress', 'disable', 'true', 'hgweb')
72 self.repo = r
76 self.repo = r
73 hook.redirect(True)
77 hook.redirect(True)
74 self.repostate = ((-1, -1), (-1, -1))
78 self.repostate = ((-1, -1), (-1, -1))
@@ -98,6 +98,9 class hgwebdir(object):
98 u = ui.ui()
98 u = ui.ui()
99 u.setconfig('ui', 'report_untrusted', 'off', 'hgwebdir')
99 u.setconfig('ui', 'report_untrusted', 'off', 'hgwebdir')
100 u.setconfig('ui', 'nontty', 'true', 'hgwebdir')
100 u.setconfig('ui', 'nontty', 'true', 'hgwebdir')
101 # displaying bundling progress bar while serving feels wrong and may
102 # break some wsgi implementations.
103 u.setconfig('progress', 'disable', 'true', 'hgweb')
101
104
102 if not isinstance(self.conf, (dict, list, tuple)):
105 if not isinstance(self.conf, (dict, list, tuple)):
103 map = {'paths': 'hgweb-paths'}
106 map = {'paths': 'hgweb-paths'}
General Comments 0
You need to be logged in to leave comments. Login now