comparison tests/test-diffdir.t @ 45895:fc4fb2f17dd4

errors: use exit code 10 for parse errors Now that `ParseError`s raised while reading the config file has been converted into `ConfigError`s, the remaining parse errors should all be "input errors" (i.e. exit code 10), according to https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9332
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 16 Nov 2020 16:00:50 -0800
parents 51b6ce257e0a
children
comparison
equal deleted inserted replaced
45894:9dc1351d0b5f 45895:fc4fb2f17dd4
32 @@ -0,0 +1,1 @@ 32 @@ -0,0 +1,1 @@
33 +123 33 +123
34 34
35 $ hg diff -r "" 35 $ hg diff -r ""
36 hg: parse error: empty query 36 hg: parse error: empty query
37 [255] 37 [10]
38 $ hg diff -r tip -r "" 38 $ hg diff -r tip -r ""
39 hg: parse error: empty query 39 hg: parse error: empty query
40 [255] 40 [10]
41 41
42 Remove a file that was added via merge. Since the file is not in parent 1, 42 Remove a file that was added via merge. Since the file is not in parent 1,
43 it should not be in the diff. 43 it should not be in the diff.
44 44
45 $ hg ci -m 'a=foo' a 45 $ hg ci -m 'a=foo' a