Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 22163:01ef4347e4ab
alias: show one-line hint for command provided by disabled extension
It will be a hint of Abort exception. "hg help <alias>" provides the detailed
version as before.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 13 Aug 2014 22:18:28 +0900 |
parents | 063628423fd1 |
children | efd65e51bc0b |
line wrap: on
line diff
--- a/mercurial/dispatch.py Wed Aug 13 19:38:47 2014 +0900 +++ b/mercurial/dispatch.py Wed Aug 13 22:18:28 2014 +0900 @@ -447,7 +447,9 @@ 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