changeset 24078:e44586d9c207

webcommands: move help import into help command handler A subsequent patch will introduce an import cycle between mercurial.help and mercurial.hgweb.webcommands. Break the cycle by moving the import of mercurial.help into the web command that actually needs it.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 06 Feb 2015 22:47:48 -0800
parents e8046ca0405d
children afe03a616525
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Fri Feb 06 22:52:40 2015 -0800
+++ b/mercurial/hgweb/webcommands.py	Fri Feb 06 22:47:48 2015 -0800
@@ -13,7 +13,6 @@
 from common import paritygen, staticfile, get_contact, ErrorResponse
 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND
 from mercurial import graphmod, patch
-from mercurial import help as helpmod
 from mercurial import scmutil
 from mercurial.i18n import _
 from mercurial.error import ParseError, RepoLookupError, Abort
@@ -1083,6 +1082,7 @@
 @webcommand('help')
 def help(web, req, tmpl):
     from mercurial import commands # avoid cycle
+    from mercurial import help as helpmod # avoid cycle
 
     topicname = req.form.get('node', [None])[0]
     if not topicname: