hgext/alias.py
changeset 5185 18a9fbb5cd78
parent 4946 a28661788f2f
equal deleted inserted replaced
5184:92236732d5a1 5185:18a9fbb5cd78
    40     def _resolve(self):
    40     def _resolve(self):
    41         if self._cmd is not None:
    41         if self._cmd is not None:
    42             return
    42             return
    43 
    43 
    44         try:
    44         try:
    45             self._cmd = findcmd(self._ui, self._target)[1]
    45             self._cmd = findcmd(self._ui, self._target, commands.table)[1]
    46             if self._cmd == self:
    46             if self._cmd == self:
    47                 raise RecursiveCommand()
    47                 raise RecursiveCommand()
    48             if self._target in commands.norepo.split(' '):
    48             if self._target in commands.norepo.split(' '):
    49                 commands.norepo += ' %s' % self._name
    49                 commands.norepo += ' %s' % self._name
    50             return
    50             return