mercurial/hbisect.py
changeset 45875 e641bb2a6159
parent 44452 9d2b2df2c2ba
child 46819 d4ba4d51f85f
--- a/mercurial/hbisect.py	Tue Nov 17 15:37:18 2020 -0800
+++ b/mercurial/hbisect.py	Tue Nov 17 15:42:42 2020 -0800
@@ -172,13 +172,13 @@
 def checkstate(state):
     """check we have both 'good' and 'bad' to define a range
 
-    Raise Abort exception otherwise."""
+    Raise StateError exception otherwise."""
     if state[b'good'] and state[b'bad']:
         return True
     if not state[b'good']:
-        raise error.Abort(_(b'cannot bisect (no known good revisions)'))
+        raise error.StateError(_(b'cannot bisect (no known good revisions)'))
     else:
-        raise error.Abort(_(b'cannot bisect (no known bad revisions)'))
+        raise error.StateError(_(b'cannot bisect (no known bad revisions)'))
 
 
 @contextlib.contextmanager