changeset 18931:3c224e0949de

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.
author Augie Fackler <raf@durin42.com>
date Fri, 08 Feb 2013 14:26:03 -0600
parents 9dd5a4815c6f
children 7b4b9e8ea12e
files mercurial/error.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):