diff mercurial/error.py @ 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 50c922c1b514
children 28d76afa1568
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):