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 @@ -28,7 +28,7 @@ class hgweb(object): if baseui: u = baseui.copy() else: - u = webutil.wsgiui() + u = ui.ui() self.repo = hg.repository(u, repo) else: self.repo = repo diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -58,7 +58,7 @@ class hgwebdir(object): if self.baseui: u = self.baseui.copy() else: - u = webutil.wsgiui() + u = ui.ui() u.setconfig('ui', 'report_untrusted', 'off') u.setconfig('ui', 'interactive', 'off') diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -773,7 +773,7 @@ def help(web, req, tmpl): return tmpl('helptopics', topics=topics, earlycommands=earlycommands, othercommands=othercommands, title='Index') - u = web.repo.ui + u = webutil.wsgiui() u.pushbuffer() try: commands.help_(u, topicname)