hgweb: another fix for the help termwidth bug
authorMatt Mackall <mpm@selenic.com>
Sun, 10 Oct 2010 17:35:28 -0500
changeset 12696 ef969e58a394
parent 12695 05077896ffe2
child 12697 14853ca7e11b
hgweb: another fix for the help termwidth bug
mercurial/hgweb/hgweb_mod.py
mercurial/hgweb/hgwebdir_mod.py
mercurial/hgweb/webcommands.py
--- 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)