Mercurial > hg
diff hgext/absorb.py @ 45877:ac362d5a7893
errors: introduce CanceledError and use it in a few places
This very similar to earlier patches (e.g. for `InputError`) and part
of https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan.
Differential Revision: https://phab.mercurial-scm.org/D9339
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 22 Oct 2020 14:14:59 -0700 |
parents | 0a330055340c |
children | f4a218331ff4 |
line wrap: on
line diff
--- a/hgext/absorb.py Tue Nov 17 15:51:09 2020 -0800 +++ b/hgext/absorb.py Thu Oct 22 14:14:59 2020 -0700 @@ -1076,7 +1076,7 @@ b"apply changes (y/N)? $$ &Yes $$ &No", default=1 ) ): - raise error.Abort(_(b'absorb cancelled\n')) + raise error.CanceledError(_(b'absorb cancelled\n')) state.apply() if state.commit():