Mercurial > public > mercurial-scm > hg
comparison mercurial/error.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 | bd2df58366b1 |
children | bb1a988ef4a5 |
comparison
equal
deleted
inserted
replaced
45678:bd2df58366b1 | 45679:65e2b64670b5 |
---|---|
114 __bytes__ = _tobytes | 114 __bytes__ = _tobytes |
115 | 115 |
116 | 116 |
117 class AmbiguousCommand(Exception): | 117 class AmbiguousCommand(Exception): |
118 """Exception raised if command shortcut matches more than one command.""" | 118 """Exception raised if command shortcut matches more than one command.""" |
119 | |
120 def __init__(self, prefix, matches): | |
121 self.prefix = prefix | |
122 self.matches = matches | |
123 super(AmbiguousCommand, self).__init__() | |
119 | 124 |
120 __bytes__ = _tobytes | 125 __bytes__ = _tobytes |
121 | 126 |
122 | 127 |
123 class InterventionRequired(Hint, Exception): | 128 class InterventionRequired(Hint, Exception): |