comparison tests/test-default-push.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 9dc1351d0b5f
children 95c4cca641f6
comparison
equal deleted inserted replaced
45894:9dc1351d0b5f 45895:fc4fb2f17dd4
135 Invalid :pushrev raises appropriately 135 Invalid :pushrev raises appropriately
136 136
137 $ hg --config 'paths.default:pushrev=notdefined()' push 137 $ hg --config 'paths.default:pushrev=notdefined()' push
138 pushing to file:/*/$TESTTMP/pushurlsource/../pushurldest (glob) 138 pushing to file:/*/$TESTTMP/pushurlsource/../pushurldest (glob)
139 hg: parse error: unknown identifier: notdefined 139 hg: parse error: unknown identifier: notdefined
140 [255] 140 [10]
141 141
142 $ hg --config 'paths.default:pushrev=(' push 142 $ hg --config 'paths.default:pushrev=(' push
143 pushing to file:/*/$TESTTMP/pushurlsource/../pushurldest (glob) 143 pushing to file:/*/$TESTTMP/pushurlsource/../pushurldest (glob)
144 hg: parse error at 1: not a prefix: end 144 hg: parse error at 1: not a prefix: end
145 (( 145 ((
146 ^ here) 146 ^ here)
147 [255] 147 [10]
148 148
149 $ cd .. 149 $ cd ..