hgweb: use ui.nontty to disable all cooked I/O
authorMatt Mackall <mpm@selenic.com>
Sun, 20 May 2012 14:37:22 -0500
changeset 16754 d94c470c3deb
parent 16753 9cca7b70f8df
child 16755 d0b9ebba41e9
hgweb: use ui.nontty to disable all cooked I/O
mercurial/hgweb/hgweb_mod.py
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Sun May 20 14:37:20 2012 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Sun May 20 14:37:22 2012 -0500
@@ -36,7 +36,7 @@
             self.repo = repo
 
         self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
-        self.repo.ui.setconfig('ui', 'interactive', 'off')
+        self.repo.ui.setconfig('ui', 'nontty', 'true')
         hook.redirect(True)
         self.mtime = -1
         self.size = -1
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun May 20 14:37:20 2012 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun May 20 14:37:22 2012 -0500
@@ -97,7 +97,7 @@
         else:
             u = ui.ui()
             u.setconfig('ui', 'report_untrusted', 'off')
-            u.setconfig('ui', 'interactive', 'off')
+            u.setconfig('ui', 'nontty', 'true')
 
         if not isinstance(self.conf, (dict, list, tuple)):
             map = {'paths': 'hgweb-paths'}