comparison tests/test-grep.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 ed84a4d48910
children 95c4cca641f6
comparison
equal deleted inserted replaced
45894:9dc1351d0b5f 45895:fc4fb2f17dd4
23 23
24 invalid revset syntax 24 invalid revset syntax
25 25
26 $ hg log -r 'diffcontains()' 26 $ hg log -r 'diffcontains()'
27 hg: parse error: diffcontains takes at least 1 argument 27 hg: parse error: diffcontains takes at least 1 argument
28 [255] 28 [10]
29 $ hg log -r 'diffcontains(:)' 29 $ hg log -r 'diffcontains(:)'
30 hg: parse error: diffcontains requires a string pattern 30 hg: parse error: diffcontains requires a string pattern
31 [255] 31 [10]
32 $ hg log -r 'diffcontains("re:**test**")' 32 $ hg log -r 'diffcontains("re:**test**")'
33 hg: parse error: invalid regular expression: nothing to repeat* (glob) 33 hg: parse error: invalid regular expression: nothing to repeat* (glob)
34 [255] 34 [10]
35 35
36 simple 36 simple
37 37
38 $ hg grep -r tip:0 '.*' 38 $ hg grep -r tip:0 '.*'
39 port:4:export 39 port:4:export