Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 25488:89ce95f907bd
hgewb: disable progress when serving (issue4582)
Before this patch, progress bar could be displayed when serving, creating
hypothetical problems.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sun, 07 Jun 2015 17:14:17 -0700 |
parents | d0c7ffc4c8bc |
children | 328739ea70c3 |
comparison
equal
deleted
inserted
replaced
25487:f7b8b4ae2d25 | 25488:89ce95f907bd |
---|---|
96 u = self.baseui.copy() | 96 u = self.baseui.copy() |
97 else: | 97 else: |
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'} |
104 if not os.path.exists(self.conf): | 107 if not os.path.exists(self.conf): |
105 raise util.Abort(_('config file %s not found!') % self.conf) | 108 raise util.Abort(_('config file %s not found!') % self.conf) |