# HG changeset patch # User Pierre-Yves David # Date 2015-06-08 00:14:17 # 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 --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -69,6 +69,10 @@ class hgweb(object): 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 --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -98,6 +98,9 @@ class hgwebdir(object): 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'}