diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -65,7 +65,8 @@ def revnavgen(pos, pagelen, limit, nodef class hgweb(object): def __init__(self, repo, name=None): if type(repo) == type(""): - self.repo = hg.repository(ui.ui(report_untrusted=False), repo) + parentui = ui.ui(report_untrusted=False, interactive=False) + self.repo = hg.repository(parentui, repo) else: self.repo = repo