Show More
@@ -11,6 +11,7 b' mycmd = cmd --args' | |||||
11 |
|
11 | |||
12 | from mercurial.cmdutil import findcmd, UnknownCommand, AmbiguousCommand |
|
12 | from mercurial.cmdutil import findcmd, UnknownCommand, AmbiguousCommand | |
13 | from mercurial import commands |
|
13 | from mercurial import commands | |
|
14 | from mercurial.i18n import _ | |||
14 |
|
15 | |||
15 | cmdtable = {} |
|
16 | cmdtable = {} | |
16 |
|
17 | |||
@@ -49,13 +50,13 b' class lazycommand(object):' | |||||
49 | commands.norepo += ' %s' % self._name |
|
50 | commands.norepo += ' %s' % self._name | |
50 | return |
|
51 | return | |
51 | except UnknownCommand: |
|
52 | except UnknownCommand: | |
52 | msg = '*** [alias] %s: command %s is unknown' % \ |
|
53 | msg = _('*** [alias] %s: command %s is unknown') % \ | |
53 | (self._name, self._target) |
|
54 | (self._name, self._target) | |
54 | except AmbiguousCommand: |
|
55 | except AmbiguousCommand: | |
55 | msg = '*** [alias] %s: command %s is ambiguous' % \ |
|
56 | msg = _('*** [alias] %s: command %s is ambiguous') % \ | |
56 | (self._name, self._target) |
|
57 | (self._name, self._target) | |
57 | except RecursiveCommand: |
|
58 | except RecursiveCommand: | |
58 | msg = '*** [alias] %s: circular dependency on %s' % \ |
|
59 | msg = _('*** [alias] %s: circular dependency on %s') % \ | |
59 | (self._name, self._target) |
|
60 | (self._name, self._target) | |
60 | def nocmd(*args, **opts): |
|
61 | def nocmd(*args, **opts): | |
61 | self._ui.warn(msg + '\n') |
|
62 | self._ui.warn(msg + '\n') | |
@@ -67,7 +68,7 b' class lazycommand(object):' | |||||
67 | def uisetup(ui): |
|
68 | def uisetup(ui): | |
68 | for cmd, target in ui.configitems('alias'): |
|
69 | for cmd, target in ui.configitems('alias'): | |
69 | if not target: |
|
70 | if not target: | |
70 | ui.warn('*** [alias] %s: no definition\n' % cmd) |
|
71 | ui.warn(_('*** [alias] %s: no definition\n') % cmd) | |
71 | continue |
|
72 | continue | |
72 | args = target.split(' ') |
|
73 | args = target.split(' ') | |
73 | tcmd = args.pop(0) |
|
74 | tcmd = args.pop(0) |
General Comments 0
You need to be logged in to leave comments.
Login now