Mercurial > public > mercurial-scm > hg
diff tests/test-log.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 |
line wrap: on
line diff
--- a/tests/test-log.t Fri Nov 20 14:43:21 2020 -0800 +++ b/tests/test-log.t Mon Nov 16 16:00:50 2020 -0800 @@ -1063,7 +1063,7 @@ $ hg log -r '' hg: parse error: empty query - [255] + [10] log -r <some unknown node id> @@ -2435,7 +2435,7 @@ hg: parse error at 14: unexpected token: end ({shortest(node} ^ here) - [255] + [10] multi-line template with error $ hg log -r . -T 'line 1 @@ -2445,7 +2445,7 @@ hg: parse error at 27: unexpected token: end (line 1\nline2\n{shortest(node}\nline4\nline5 ^ here) - [255] + [10] $ cd ..