##// END OF EJS Templates
tests: run many tests in $TESTTMP/repo instead of $TESTTMP...
tests: run many tests in $TESTTMP/repo instead of $TESTTMP This is useful so we can store other files in $TESTTMP (in particular tests that use docket files (nodemap, dirstate-v2) keep file uids in $TESTTMP/UID)

File last commit:

r50516:55c6ebd1 stable
r50516:55c6ebd1 stable
Show More
test-legacy-exit-code.t
50 lines | 1.0 KiB | text/troff | Tads3Lexer
/ tests / test-legacy-exit-code.t
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 Tests that the exit code is as expected when ui.detailed-exit-code is *not*
enabled.
$ cat >> $HGRCPATH << EOF
> [ui]
> detailed-exit-code=no
> EOF
Arseniy Alekseyev
tests: run many tests in $TESTTMP/repo instead of $TESTTMP...
r50516 $ hg init repo
$ cd repo
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 $ echo a > a
Expect exit code 0 on success
$ hg ci -Aqm initial
$ hg co nonexistent
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: unknown revision 'nonexistent'
Martin von Zweigbergk
errors: add config that lets user get more detailed exit codes...
r46430 [255]
$ hg co 'none()'
abort: empty revision set
[255]
$ hg co 'invalid('
hg: parse error at 8: not a prefix: end
(invalid(
^ here)
[255]
$ hg co 'invalid('
hg: parse error at 8: not a prefix: end
(invalid(
^ here)
[255]
$ hg continue
abort: no operation in progress
[255]
$ hg st --config a=b
abort: malformed --config option: 'a=b' (use --config section.name=value)
[255]
$ echo b > a
$ hg ci -m second
$ echo c > a
$ hg ci -m third
$ hg --config extensions.rebase= rebase -r . -d 0 -q
warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
unresolved conflicts (see 'hg resolve', then 'hg rebase --continue')
[1]