Mercurial > hg
comparison tests/test-globalopts.t @ 47408:7954ee2d7cf7
rhg: propogate error coming from HgError::Abort to CommandError
Differential Revision: https://phab.mercurial-scm.org/D10839
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 07 Jun 2021 17:29:32 +0530 |
parents | ebdef6283798 |
children | 7ccd31fda132 |
comparison
equal
deleted
inserted
replaced
47407:6e49769b7f97 | 47408:7954ee2d7cf7 |
---|---|
218 Testing --config: | 218 Testing --config: |
219 | 219 |
220 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo | 220 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo |
221 quuxfoo | 221 quuxfoo |
222 TODO: add rhg support for detailed exit codes | 222 TODO: add rhg support for detailed exit codes |
223 #if no-rhg | |
224 $ hg --cwd c --config '' tip -q | 223 $ hg --cwd c --config '' tip -q |
225 abort: malformed --config option: '' (use --config section.name=value) | 224 abort: malformed --config option: '' (use --config section.name=value) |
226 [10] | 225 [10] |
227 $ hg --cwd c --config a.b tip -q | 226 $ hg --cwd c --config a.b tip -q |
228 abort: malformed --config option: 'a.b' (use --config section.name=value) | 227 abort: malformed --config option: 'a.b' (use --config section.name=value) |
234 abort: malformed --config option: 'a.=' (use --config section.name=value) | 233 abort: malformed --config option: 'a.=' (use --config section.name=value) |
235 [10] | 234 [10] |
236 $ hg --cwd c --config .b= tip -q | 235 $ hg --cwd c --config .b= tip -q |
237 abort: malformed --config option: '.b=' (use --config section.name=value) | 236 abort: malformed --config option: '.b=' (use --config section.name=value) |
238 [10] | 237 [10] |
239 #endif | |
240 | 238 |
241 Testing --debug: | 239 Testing --debug: |
242 | 240 |
243 $ hg --cwd c log --debug | 241 $ hg --cwd c log --debug |
244 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a | 242 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a |