diff -r 9b8ac5fb7760 -r 35604226d712 mercurial/hgweb/hgweb_mod.py --- 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