Mercurial > hg
diff tests/test-graft.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 | c4f14db3da1d |
children | 527ce85c2e60 |
line wrap: on
line diff
--- a/tests/test-graft.t Wed Oct 21 19:00:16 2020 -0700 +++ b/tests/test-graft.t Tue Oct 06 22:36:15 2020 -0700 @@ -92,7 +92,7 @@ $ hg graft abort: no revisions specified - [255] + [10] Can't graft ancestor: @@ -119,10 +119,10 @@ $ hg up -q 0 $ hg graft -U --user foo 2 abort: cannot specify both --user and --currentuser - [255] + [10] $ hg graft -D --date '0 0' 2 abort: cannot specify both --date and --currentdate - [255] + [10] Can't graft with dirty wd: @@ -337,11 +337,11 @@ $ hg graft -c 6 abort: can't specify --continue and revisions - [255] + [10] $ hg graft -c -r 6 abort: can't specify --continue and revisions - [255] + [10] Continue for real, clobber usernames