diff mercurial/hgweb/webcommands.py @ 32566:1b90036f42f0

help: pass commands module by argument This removes import cycle.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 May 2017 16:57:32 +0900
parents f238a483a1fd
children 582080a4a812
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Mon May 29 06:06:13 2017 -0700
+++ b/mercurial/hgweb/webcommands.py	Sun May 21 16:57:32 2017 +0900
@@ -1374,7 +1374,7 @@
         subtopic = None
 
     try:
-        doc = helpmod.help_(u, topic, subtopic=subtopic)
+        doc = helpmod.help_(u, commands, topic, subtopic=subtopic)
     except error.UnknownCommand:
         raise ErrorResponse(HTTP_NOT_FOUND)
     return tmpl('help', topic=topicname, doc=doc)