# HG changeset patch # User Matt Mackall # Date 2010-10-10 22:35:28 # Node ID ef969e58a3949ff591d8aaee4b927f4cc511ca78 # Parent 05077896ffe233bbaf9e1c180f18dd85fd45a8e4 hgweb: another fix for the help termwidth bug 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)