diff 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
line wrap: on
line diff
--- a/mercurial/error.py	Tue Oct 06 20:37:35 2020 -0700
+++ b/mercurial/error.py	Tue Oct 06 20:45:52 2020 -0700
@@ -117,6 +117,11 @@
 class AmbiguousCommand(Exception):
     """Exception raised if command shortcut matches more than one command."""
 
+    def __init__(self, prefix, matches):
+        self.prefix = prefix
+        self.matches = matches
+        super(AmbiguousCommand, self).__init__()
+
     __bytes__ = _tobytes