Mercurial > hg
comparison tests/test-template-map.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 | b2a743c3abbb |
comparison
equal
deleted
inserted
replaced
45894:9dc1351d0b5f | 45895:fc4fb2f17dd4 |
---|---|
1240 | 1240 |
1241 $ hg log -qr . -T'json(-)' | 1241 $ hg log -qr . -T'json(-)' |
1242 hg: parse error at 6: not a prefix: ) | 1242 hg: parse error at 6: not a prefix: ) |
1243 (json(-) | 1243 (json(-) |
1244 ^ here) | 1244 ^ here) |
1245 [255] | 1245 [10] |
1246 | 1246 |
1247 For backward compatibility, the following examples are not parsed as | 1247 For backward compatibility, the following examples are not parsed as |
1248 function-style references: | 1248 function-style references: |
1249 | 1249 |
1250 $ hg log -qr . -T'cbor(rev' | 1250 $ hg log -qr . -T'cbor(rev' |
1299 Error if style missing value: | 1299 Error if style missing value: |
1300 | 1300 |
1301 $ echo 'changeset =' > t | 1301 $ echo 'changeset =' > t |
1302 $ hg log --style t | 1302 $ hg log --style t |
1303 hg: parse error at t:1: missing value | 1303 hg: parse error at t:1: missing value |
1304 [255] | 1304 [10] |
1305 | 1305 |
1306 Error if include fails: | 1306 Error if include fails: |
1307 | 1307 |
1308 $ echo 'changeset = q' >> t | 1308 $ echo 'changeset = q' >> t |
1309 #if unix-permissions no-root | 1309 #if unix-permissions no-root |