Mercurial > public > mercurial-scm > hg
diff tests/test-bisect.t @ 45827:8d72e29ad1e0
errors: introduce InputError and use it from commands and cmdutil
This patch introduces a `InputError` class and replaces many uses of
`error.Abort` by it in `commands` and `cmdutil`. This is a part of
https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. There will
later be a different class for state errors (to raise e.g. when
there's an unfinished operation). It's not always clear when one
should report an input error and when it should be a state error. We
can always adjust later if I got something wrong in this patch (but
feel free to point out any you notice now).
Differential Revision: https://phab.mercurial-scm.org/D9167
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Oct 2020 22:36:15 -0700 |
parents | 16c361152133 |
children | e641bb2a6159 |
line wrap: on
line diff
--- a/tests/test-bisect.t Wed Oct 21 19:00:16 2020 -0700 +++ b/tests/test-bisect.t Tue Oct 06 22:36:15 2020 -0700 @@ -751,46 +751,46 @@ $ hg bisect -r $ hg bisect -b -c false abort: --bad and --command are incompatible - [255] + [10] $ hg bisect -b -e abort: --bad and --extend are incompatible - [255] + [10] $ hg bisect -b -g abort: --bad and --good are incompatible - [255] + [10] $ hg bisect -b -r abort: --bad and --reset are incompatible - [255] + [10] $ hg bisect -b -s abort: --bad and --skip are incompatible - [255] + [10] $ hg bisect -c false -e abort: --command and --extend are incompatible - [255] + [10] $ hg bisect -c false -g abort: --command and --good are incompatible - [255] + [10] $ hg bisect -c false -r abort: --command and --reset are incompatible - [255] + [10] $ hg bisect -c false -s abort: --command and --skip are incompatible - [255] + [10] $ hg bisect -e -g abort: --extend and --good are incompatible - [255] + [10] $ hg bisect -e -r abort: --extend and --reset are incompatible - [255] + [10] $ hg bisect -e -s abort: --extend and --skip are incompatible - [255] + [10] $ hg bisect -g -r abort: --good and --reset are incompatible - [255] + [10] $ hg bisect -g -s abort: --good and --skip are incompatible - [255] + [10] $ hg bisect -r -s abort: --reset and --skip are incompatible - [255] + [10]