mercurial/hgweb/hgweb_mod.py
changeset 10995 5efbfa662b3c
parent 10994 c12a57c1a67e
child 11370 db3f6f0e4e7d
--- 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