comparison tests/test-remotefilelog-prefetch.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 fca7caeaa6e7
children 50afeeeb7b79
comparison
equal deleted inserted replaced
45826:21733e8c924f 45827:8d72e29ad1e0
230 ('hg rename --after' to record the rename) 230 ('hg rename --after' to record the rename)
231 [1] 231 [1]
232 $ hg mv z2 z3 232 $ hg mv z2 z3
233 z2: not copying - file is not managed 233 z2: not copying - file is not managed
234 abort: no files to copy 234 abort: no files to copy
235 [255] 235 [10]
236 $ find $CACHEDIR -type f | sort 236 $ find $CACHEDIR -type f | sort
237 .. The following output line about files fetches is globed because it is 237 .. The following output line about files fetches is globed because it is
238 .. flaky, the core the test is checked when checking the cache dir, so 238 .. flaky, the core the test is checked when checking the cache dir, so
239 .. hopefully this flakyness is not hiding any actual bug. 239 .. hopefully this flakyness is not hiding any actual bug.
240 $ hg revert -a -r 1 || true 240 $ hg revert -a -r 1 || true