move util.Abort to error.py
authorMatt Mackall <mpm@selenic.com>
Fri, 03 Apr 2009 13:20:52 -0500
changeset 7947 a454eeb1b827
parent 7946 9d36291f787a
child 7948 de377b1a9a84
move util.Abort to error.py
mercurial/error.py
mercurial/util.py
--- a/mercurial/error.py	Fri Apr 03 12:37:44 2009 -0500
+++ b/mercurial/error.py	Fri Apr 03 13:20:52 2009 -0500
@@ -62,3 +62,6 @@
 
 class SignatureError(Exception):
     pass
+
+class Abort(Exception):
+    """Raised if a command needs to print an error and exit."""
--- a/mercurial/util.py	Fri Apr 03 12:37:44 2009 -0500
+++ b/mercurial/util.py	Fri Apr 03 13:20:52 2009 -0500
@@ -333,8 +333,7 @@
     if buf:
         yield ''.join(buf)
 
-class Abort(Exception):
-    """Raised if a command needs to print an error and exit."""
+Abort = error.Abort
 
 def always(fn): return True
 def never(fn): return False