mercurial/error.py
changeset 45679 65e2b64670b5
parent 45678 bd2df58366b1
child 45680 bb1a988ef4a5
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):