move util.Abort to error.py
author |
Matt Mackall <mpm@selenic.com> |
date |
Fri, 03 Apr 2009 13:20:52 -0500 |
parents |
9d36291f787a |
children |
de377b1a9a84 |
files |
mercurial/error.py mercurial/util.py |
diffstat |
2 files changed, 4 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -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
+++ b/mercurial/util.py
@@ -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