comparison tests/test-clone-update-order.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 eb586ed5d8ce
children 55c6ebd11cb9
comparison
equal deleted inserted replaced
45826:21733e8c924f 45827:8d72e29ad1e0
20 $ hg up -r mine 20 $ hg up -r mine
21 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 21 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
22 22
23 $ hg clone -U -u . .#other ../b -r 0 -r 1 -r 2 -b other 23 $ hg clone -U -u . .#other ../b -r 0 -r 1 -r 2 -b other
24 abort: cannot specify both --noupdate and --updaterev 24 abort: cannot specify both --noupdate and --updaterev
25 [255] 25 [10]
26 26
27 $ hg clone -U .#other ../b -r 0 -r 1 -r 2 -b other 27 $ hg clone -U .#other ../b -r 0 -r 1 -r 2 -b other
28 adding changesets 28 adding changesets
29 adding manifests 29 adding manifests
30 adding file changes 30 adding file changes