changeset 12696:ef969e58a394

hgweb: another fix for the help termwidth bug
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Oct 2010 17:35:28 -0500
parents 05077896ffe2
children 14853ca7e11b
files mercurial/hgweb/hgweb_mod.py mercurial/hgweb/hgwebdir_mod.py mercurial/hgweb/webcommands.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Oct 10 12:21:49 2010 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Oct 10 17:35:28 2010 -0500
@@ -28,7 +28,7 @@
             if baseui:
                 u = baseui.copy()
             else:
-                u = webutil.wsgiui()
+                u = ui.ui()
             self.repo = hg.repository(u, repo)
         else:
             self.repo = repo
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Oct 10 12:21:49 2010 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Oct 10 17:35:28 2010 -0500
@@ -58,7 +58,7 @@
         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')
 
--- a/mercurial/hgweb/webcommands.py	Sun Oct 10 12:21:49 2010 -0500
+++ b/mercurial/hgweb/webcommands.py	Sun Oct 10 17:35:28 2010 -0500
@@ -773,7 +773,7 @@
         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)