# HG changeset patch # User Yuya Nishihara # Date 2014-08-13 13:18:28 # Node ID 01ef4347e4ab6d33b482395c16cc330e1d0065ca # Parent 7ada34676db8abebf7f2e9ee702a2da702828dd7 alias: show one-line hint for command provided by disabled extension It will be a hint of Abort exception. "hg help " provides the detailed version as before. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -447,7 +447,9 @@ class cmdalias(object): if self.unknowncmd: try: # check if the command is in a disabled extension - commands.help_(ui, self.cmdname, unknowncmd=True) + cmd, ext = extensions.disabledcmd(ui, self.cmdname)[:2] + ui.warn(_("'%s' is provided by '%s' extension\n") + % (cmd, ext)) except error.UnknownCommand: pass return -1 diff --git a/tests/test-alias.t b/tests/test-alias.t --- a/tests/test-alias.t +++ b/tests/test-alias.t @@ -90,11 +90,7 @@ disabled $ hg disabled alias 'disabled' resolves to unknown command 'email' - 'email' is provided by the following extension: - - patchbomb command to send changesets as (a series of) patch emails - - (use "hg help extensions" for information on enabling extensions) + 'email' is provided by 'patchbomb' extension [255] $ hg help disabled alias 'disabled' resolves to unknown command 'email'