Mercurial > hg > mercurial-crew
diff mercurial/error.py @ 11574:6381fa7bfa53
Abort: add a hint argument, printed in the next line inside parenthesis
discovery was using a custom made message for this purpose
push now returns -1 after aborting, instead of 1 previously
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 15 Jul 2010 14:41:22 +0200 |
parents | 037d910734de |
children | 931a72e00efa |
line wrap: on
line diff
--- a/mercurial/error.py +++ b/mercurial/error.py @@ -32,6 +32,9 @@ class Abort(Exception): """Raised if a command needs to print an error and exit.""" + def __init__(self, *args, **kw): + Exception.__init__(self, *args) + self.hint = kw.get('hint') class ConfigError(Abort): 'Exception raised when parsing config files'