##// END OF EJS Templates
webcommands: move help import into help command handler...
Gregory Szorc -
r24078:e44586d9 default
parent child Browse files
Show More
@@ -13,7 +13,6 b' from mercurial import util'
13 from common import paritygen, staticfile, get_contact, ErrorResponse
13 from common import paritygen, staticfile, get_contact, ErrorResponse
14 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND
14 from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND
15 from mercurial import graphmod, patch
15 from mercurial import graphmod, patch
16 from mercurial import help as helpmod
17 from mercurial import scmutil
16 from mercurial import scmutil
18 from mercurial.i18n import _
17 from mercurial.i18n import _
19 from mercurial.error import ParseError, RepoLookupError, Abort
18 from mercurial.error import ParseError, RepoLookupError, Abort
@@ -1083,6 +1082,7 b' def _getdoc(e):'
1083 @webcommand('help')
1082 @webcommand('help')
1084 def help(web, req, tmpl):
1083 def help(web, req, tmpl):
1085 from mercurial import commands # avoid cycle
1084 from mercurial import commands # avoid cycle
1085 from mercurial import help as helpmod # avoid cycle
1086
1086
1087 topicname = req.form.get('node', [None])[0]
1087 topicname = req.form.get('node', [None])[0]
1088 if not topicname:
1088 if not topicname:
General Comments 0
You need to be logged in to leave comments. Login now