| 1 |
Tests that the exit code is as expected when ui.detailed-exit-code is *not* |
| 2 |
enabled. |
| 3 |
|
| 4 |
$ cat >> $HGRCPATH << EOF |
| 5 |
> [ui] |
| 6 |
> detailed-exit-code=no |
| 7 |
> EOF |
| 8 |
|
| 9 |
$ hg init repo |
| 10 |
$ cd repo |
| 11 |
$ echo a > a |
| 12 |
Expect exit code 0 on success |
| 13 |
$ hg ci -Aqm initial |
| 14 |
|
| 15 |
$ hg co nonexistent |
| 16 |
abort: unknown revision 'nonexistent' |
| 17 |
[255] |
| 18 |
|
| 19 |
$ hg co 'none()' |
| 20 |
abort: empty revision set |
| 21 |
[255] |
| 22 |
|
| 23 |
$ hg co 'invalid(' |
| 24 |
hg: parse error at 8: not a prefix: end |
| 25 |
(invalid( |
| 26 |
^ here) |
| 27 |
[255] |
| 28 |
|
| 29 |
$ hg co 'invalid(' |
| 30 |
hg: parse error at 8: not a prefix: end |
| 31 |
(invalid( |
| 32 |
^ here) |
| 33 |
[255] |
| 34 |
|
| 35 |
$ hg continue |
| 36 |
abort: no operation in progress |
| 37 |
[255] |
| 38 |
|
| 39 |
$ hg st --config a=b |
| 40 |
abort: malformed --config option: 'a=b' (use --config section.name=value) |
| 41 |
[255] |
| 42 |
|
| 43 |
$ echo b > a |
| 44 |
$ hg ci -m second |
| 45 |
$ echo c > a |
| 46 |
$ hg ci -m third |
| 47 |
$ hg --config extensions.rebase= rebase -r . -d 0 -q |
| 48 |
warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
| 49 |
unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
| 50 |
[1] |