Mercurial > public > mercurial-scm > hg-stable
diff mercurial/error.py @ 45680:bb1a988ef4a5
errors: name arguments to UnknownCommand constructor
Differential Revision: https://phab.mercurial-scm.org/D9166
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Oct 2020 21:06:18 -0700 |
parents | 65e2b64670b5 |
children | d2e1dcd4490d |
line wrap: on
line diff
--- a/mercurial/error.py Tue Oct 06 20:45:52 2020 -0700 +++ b/mercurial/error.py Tue Oct 06 21:06:18 2020 -0700 @@ -111,6 +111,11 @@ class UnknownCommand(Exception): """Exception raised if command is not in the command table.""" + def __init__(self, command, all_commands=None): + self.command = command + self.all_commands = all_commands + super(UnknownCommand, self).__init__() + __bytes__ = _tobytes