Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 45679:65e2b64670b5
errors: name arguments to AmbiguousCommand constructor
Differential Revision: https://phab.mercurial-scm.org/D9165
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Oct 2020 20:45:52 -0700 |
parents | 65cb924a1430 |
children | 89a2afe31e82 |
comparison
equal
deleted
inserted
replaced
45678:bd2df58366b1 | 45679:65e2b64670b5 |
---|---|
711 name, commands.table, strict=unknowncmd | 711 name, commands.table, strict=unknowncmd |
712 ) | 712 ) |
713 except error.AmbiguousCommand as inst: | 713 except error.AmbiguousCommand as inst: |
714 # py3 fix: except vars can't be used outside the scope of the | 714 # py3 fix: except vars can't be used outside the scope of the |
715 # except block, nor can be used inside a lambda. python issue4617 | 715 # except block, nor can be used inside a lambda. python issue4617 |
716 prefix = inst.args[0] | 716 prefix = inst.prefix |
717 select = lambda c: cmdutil.parsealiases(c)[0].startswith(prefix) | 717 select = lambda c: cmdutil.parsealiases(c)[0].startswith(prefix) |
718 rst = helplist(select) | 718 rst = helplist(select) |
719 return rst | 719 return rst |
720 | 720 |
721 rst = [] | 721 rst = [] |