changeset 10994 | c12a57c1a67e |
parent 10905 | 13a1b2fb7ef2 |
child 10995 | 5efbfa662b3c |
--- a/mercurial/hgweb/hgweb_mod.py Mon Apr 26 11:03:40 2010 -0500 +++ b/mercurial/hgweb/hgweb_mod.py Mon Apr 26 11:03:40 2010 -0500 @@ -21,9 +21,12 @@ } class hgweb(object): - def __init__(self, repo, name=None): + def __init__(self, repo, name=None, baseui=None): if isinstance(repo, str): - u = ui.ui() + if baseui: + u = baseui.copy() + else: + u = ui.ui() u.setconfig('ui', 'report_untrusted', 'off') u.setconfig('ui', 'interactive', 'off') self.repo = hg.repository(u, repo)