test-journal-exists.t
57 lines
| 1.2 KiB
| text/troff
|
Tads3Lexer
/ tests / test-journal-exists.t
Arseniy Alekseyev
|
r50516 | $ hg init repo | ||
$ cd repo | ||||
Adrian Buehlmann
|
r12205 | $ echo a > a | ||
$ hg ci -Am0 | ||||
adding a | ||||
$ hg -q clone . foo | ||||
$ touch .hg/store/journal | ||||
$ echo foo > a | ||||
$ hg ci -Am0 | ||||
Martin von Zweigbergk
|
r46518 | abort: abandoned transaction found | ||
Johan Bjork
|
r21274 | (run 'hg recover' to clean up transaction) | ||
Matt Mackall
|
r12316 | [255] | ||
Adrian Buehlmann
|
r12205 | |||
$ hg recover | ||||
rolling back interrupted transaction | ||||
Valentin Gatien-Baron
|
r44830 | (verify step skipped, run `hg verify` to check your repository content) | ||
Adrian Buehlmann
|
r12205 | |||
Valentin Gatien-Baron
|
r44608 | recover, explicit verify | ||
r42320 | ||||
$ touch .hg/store/journal | ||||
$ hg ci -Am0 | ||||
Martin von Zweigbergk
|
r46518 | abort: abandoned transaction found | ||
r42320 | (run 'hg recover' to clean up transaction) | |||
[255] | ||||
Raphaël Gomès
|
r50720 | $ hg recover --verify -q | ||
r42320 | ||||
recover, no verify | ||||
$ touch .hg/store/journal | ||||
$ hg ci -Am0 | ||||
Martin von Zweigbergk
|
r46518 | abort: abandoned transaction found | ||
r42320 | (run 'hg recover' to clean up transaction) | |||
[255] | ||||
$ hg recover --no-verify | ||||
rolling back interrupted transaction | ||||
Valentin Gatien-Baron
|
r44608 | (verify step skipped, run `hg verify` to check your repository content) | ||
r42320 | ||||
Adrian Buehlmann
|
r12205 | Check that zero-size journals are correctly aborted: | ||
Matt Mackall
|
r20008 | #if unix-permissions no-root | ||
Adrian Buehlmann
|
r12205 | $ hg bundle -qa repo.hg | ||
$ chmod -w foo/.hg/store/00changelog.i | ||||
$ hg -R foo unbundle repo.hg | ||||
adding changesets | ||||
r52074 | transaction abort! | |||
rollback completed | ||||
Arseniy Alekseyev
|
r51215 | abort: $EACCES$: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob) | ||
Matt Mackall
|
r12316 | [255] | ||
Adrian Buehlmann
|
r12205 | |||
$ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi | ||||
Adrian Buehlmann
|
r16959 | #endif | ||
Adrian Buehlmann
|
r12205 | |||