error: introduce new InterventionRequired exception
authorAugie Fackler <raf@durin42.com>
Fri, 08 Feb 2013 14:26:03 -0600
changeset 18931 3c224e0949de
parent 18930 9dd5a4815c6f
child 18932 7b4b9e8ea12e
error: introduce new InterventionRequired exception Future changes will use this type instead of util.Abort for signalling the user that intervention is required, as in some rebase and histedit aborts.
mercurial/error.py
--- a/mercurial/error.py	Fri Apr 12 19:48:07 2013 -0700
+++ b/mercurial/error.py	Fri Feb 08 14:26:03 2013 -0600
@@ -33,6 +33,9 @@
 class CommandError(Exception):
     """Exception raised on errors in parsing the command line."""
 
+class InterventionRequired(Exception):
+    """Exception raised when a command requires human intervention."""
+
 class Abort(Exception):
     """Raised if a command needs to print an error and exit."""
     def __init__(self, *args, **kw):