diff -r db946221a58a -r eda9e7c9300d mercurial/util.py --- a/mercurial/util.py Fri Oct 27 15:56:34 2006 +0200 +++ b/mercurial/util.py Fri Oct 27 18:17:12 2006 +0200 @@ -136,6 +136,9 @@ class Abort(Exception): """Raised if a command needs to print an error and exit.""" +class UnexpectedOutput(Abort): + """Raised to print an error with part of output and exit.""" + def always(fn): return True def never(fn): return False