[PATCH 1 of 5] error: introduce new InterventionRequired exception

Augie Fackler raf at durin42.com
Fri Feb 8 16:49:50 CST 2013

# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1360355163 21600
# Node ID 4d997c5075c446963b6ac65155f2129c73257b6f
# Parent  4db9e31ae6055cc5ee01a50e6466dd94b436b412
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

diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -30,6 +30,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):

More information about the Mercurial-devel mailing list