# HG changeset patch # User Pierre-Yves David # Date 1433722457 25200 # Node ID 89ce95f907bde163a80f281f6a45217803964b10 # Parent f7b8b4ae2d252b5cb6adc2d273a02487206f7a23 hgewb: disable progress when serving (issue4582) Before this patch, progress bar could be displayed when serving, creating hypothetical problems. diff -r f7b8b4ae2d25 -r 89ce95f907bd mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Tue Jun 09 12:57:57 2015 -0400 +++ b/mercurial/hgweb/hgweb_mod.py Sun Jun 07 17:14:17 2015 -0700 @@ -69,6 +69,10 @@ r.baseui.setconfig('ui', 'report_untrusted', 'off', 'hgweb') r.ui.setconfig('ui', 'nontty', 'true', 'hgweb') r.baseui.setconfig('ui', 'nontty', 'true', 'hgweb') + # displaying bundling progress bar while serving feel wrong and may + # break some wsgi implementation. + r.ui.setconfig('progress', 'disable', 'true', 'hgweb') + r.baseui.setconfig('progress', 'disable', 'true', 'hgweb') self.repo = r hook.redirect(True) self.repostate = ((-1, -1), (-1, -1)) diff -r f7b8b4ae2d25 -r 89ce95f907bd mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Tue Jun 09 12:57:57 2015 -0400 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Jun 07 17:14:17 2015 -0700 @@ -98,6 +98,9 @@ u = ui.ui() u.setconfig('ui', 'report_untrusted', 'off', 'hgwebdir') u.setconfig('ui', 'nontty', 'true', 'hgwebdir') + # displaying bundling progress bar while serving feels wrong and may + # break some wsgi implementations. + u.setconfig('progress', 'disable', 'true', 'hgweb') if not isinstance(self.conf, (dict, list, tuple)): map = {'paths': 'hgweb-paths'}