hgweb: more ui fiddling
authorMatt Mackall <mpm@selenic.com>
Sun, 10 Oct 2010 11:05:06 -0500
changeset 12692 0ac7c5c8121a
parent 12691 1b1a9038a71a
child 12693 33f0682ba8b1
hgweb: more ui fiddling
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Sun Oct 10 10:42:44 2010 -0500
+++ b/mercurial/hgweb/webcommands.py	Sun Oct 10 11:05:06 2010 -0500
@@ -14,7 +14,6 @@
 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND
 from mercurial import graphmod
 from mercurial import help as helpmod
-from mercurial import ui
 from mercurial.i18n import _
 
 # __all__ is populated with the allowed commands. Be sure to add to it if
@@ -774,7 +773,7 @@
         return tmpl('helptopics', topics=topics, earlycommands=earlycommands,
                     othercommands=othercommands, title='Index')
 
-    u = ui.ui()
+    u = web.repo.ui
     u.pushbuffer()
     try:
         commands.help_(u, topicname)