##// END OF EJS Templates
hgweb: use ui.nontty to disable all cooked I/O
Matt Mackall -
r16754:d94c470c default
parent child Browse files
Show More
@@ -36,7 +36,7 b' class hgweb(object):'
36 self.repo = repo
36 self.repo = repo
37
37
38 self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
38 self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
39 self.repo.ui.setconfig('ui', 'interactive', 'off')
39 self.repo.ui.setconfig('ui', 'nontty', 'true')
40 hook.redirect(True)
40 hook.redirect(True)
41 self.mtime = -1
41 self.mtime = -1
42 self.size = -1
42 self.size = -1
@@ -97,7 +97,7 b' class hgwebdir(object):'
97 else:
97 else:
98 u = ui.ui()
98 u = ui.ui()
99 u.setconfig('ui', 'report_untrusted', 'off')
99 u.setconfig('ui', 'report_untrusted', 'off')
100 u.setconfig('ui', 'interactive', 'off')
100 u.setconfig('ui', 'nontty', 'true')
101
101
102 if not isinstance(self.conf, (dict, list, tuple)):
102 if not isinstance(self.conf, (dict, list, tuple)):
103 map = {'paths': 'hgweb-paths'}
103 map = {'paths': 'hgweb-paths'}
General Comments 0
You need to be logged in to leave comments. Login now