diff -r 5313d98089f5 -r 1b90036f42f0 mercurial/commands.py --- a/mercurial/commands.py Mon May 29 06:06:13 2017 -0700 +++ b/mercurial/commands.py Sun May 21 16:57:32 2017 +0900 @@ -11,6 +11,7 @@ import errno import os import re +import sys from .i18n import _ from .node import ( @@ -2745,7 +2746,8 @@ if ui.verbose: keep.append('verbose') - formatted = help.formattedhelp(ui, name, keep=keep, **opts) + commands = sys.modules[__name__] + formatted = help.formattedhelp(ui, commands, name, keep=keep, **opts) ui.pager('help') ui.write(formatted)