hgweb: always clear report_untrusted and interactive
authorMatt Mackall <mpm@selenic.com>
Mon, 26 Apr 2010 11:03:40 -0500
changeset 10995 5efbfa662b3c
parent 10994 c12a57c1a67e
child 10996 f6d41bfc189e
hgweb: always clear report_untrusted and interactive
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Mon Apr 26 11:03:40 2010 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Apr 26 11:03:40 2010 -0500
@@ -27,12 +27,12 @@
                 u = baseui.copy()
             else:
                 u = ui.ui()
-            u.setconfig('ui', 'report_untrusted', 'off')
-            u.setconfig('ui', 'interactive', 'off')
             self.repo = hg.repository(u, repo)
         else:
             self.repo = repo
 
+        self.repo.ui.setconfig('ui', 'report_untrusted', 'off')
+        self.repo.ui.setconfig('ui', 'interactive', 'off')
         hook.redirect(True)
         self.mtime = -1
         self.reponame = name