Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
32565:5313d98089f5 | 32566:1b90036f42f0 |
---|---|
1372 else: | 1372 else: |
1373 topic = topicname | 1373 topic = topicname |
1374 subtopic = None | 1374 subtopic = None |
1375 | 1375 |
1376 try: | 1376 try: |
1377 doc = helpmod.help_(u, topic, subtopic=subtopic) | 1377 doc = helpmod.help_(u, commands, topic, subtopic=subtopic) |
1378 except error.UnknownCommand: | 1378 except error.UnknownCommand: |
1379 raise ErrorResponse(HTTP_NOT_FOUND) | 1379 raise ErrorResponse(HTTP_NOT_FOUND) |
1380 return tmpl('help', topic=topicname, doc=doc) | 1380 return tmpl('help', topic=topicname, doc=doc) |
1381 | 1381 |
1382 # tell hggettext to extract docstrings from these functions: | 1382 # tell hggettext to extract docstrings from these functions: |