Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 8191:35604226d712
hgweb: kill parentui references
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | 6b5522cb2ad2 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- 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