comparison 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
comparison
equal deleted inserted replaced
8190:9b8ac5fb7760 8191:35604226d712
23 } 23 }
24 24
25 class hgweb(object): 25 class hgweb(object):
26 def __init__(self, repo, name=None): 26 def __init__(self, repo, name=None):
27 if isinstance(repo, str): 27 if isinstance(repo, str):
28 parentui = ui.ui() 28 u = ui.ui()
29 parentui.setconfig('ui', 'report_untrusted', 'off') 29 u.setconfig('ui', 'report_untrusted', 'off')
30 parentui.setconfig('ui', 'interactive', 'off') 30 u.setconfig('ui', 'interactive', 'off')
31 self.repo = hg.repository(parentui, repo) 31 self.repo = hg.repository(u, repo)
32 else: 32 else:
33 self.repo = repo 33 self.repo = repo
34 34
35 hook.redirect(True) 35 hook.redirect(True)
36 self.mtime = -1 36 self.mtime = -1