mercurial/hgweb/hgweb_mod.py
changeset 8191 35604226d712
parent 8136 6b5522cb2ad2
child 8225 46293a0c7e9f
--- a/mercurial/hgweb/hgweb_mod.py	Sun Apr 26 16:50:43 2009 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Apr 26 16:50:43 2009 -0500
@@ -25,10 +25,10 @@
 class hgweb(object):
     def __init__(self, repo, name=None):
         if isinstance(repo, str):
-            parentui = ui.ui()
-            parentui.setconfig('ui', 'report_untrusted', 'off')
-            parentui.setconfig('ui', 'interactive', 'off')
-            self.repo = hg.repository(parentui, repo)
+            u = ui.ui()
+            u.setconfig('ui', 'report_untrusted', 'off')
+            u.setconfig('ui', 'interactive', 'off')
+            self.repo = hg.repository(u, repo)
         else:
             self.repo = repo