comparison mercurial/hgweb/hgweb_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 939ce500c92a
children be4dc0007b8d
comparison
equal deleted inserted replaced
25487:f7b8b4ae2d25 25488:89ce95f907bd
67 r = self._getview(r) 67 r = self._getview(r)
68 r.ui.setconfig('ui', 'report_untrusted', 'off', 'hgweb') 68 r.ui.setconfig('ui', 'report_untrusted', 'off', 'hgweb')
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))
75 self.mtime = -1 79 self.mtime = -1
76 self.reponame = name 80 self.reponame = name