mercurial/hgweb/hgweb_mod.py
changeset 8136 6b5522cb2ad2
parent 7966 aa983c3d94a9
child 8191 35604226d712
--- a/mercurial/hgweb/hgweb_mod.py	Thu Apr 23 15:40:10 2009 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Apr 23 15:40:10 2009 -0500
@@ -25,7 +25,9 @@
 class hgweb(object):
     def __init__(self, repo, name=None):
         if isinstance(repo, str):
-            parentui = ui.ui(report_untrusted=False, interactive=False)
+            parentui = ui.ui()
+            parentui.setconfig('ui', 'report_untrusted', 'off')
+            parentui.setconfig('ui', 'interactive', 'off')
             self.repo = hg.repository(parentui, repo)
         else:
             self.repo = repo