2011-11-07 06:14:55 +04:00
|
|
|
$ "$TESTDIR/hghave" unix-permissions || exit 80
|
|
|
|
|
2010-09-10 21:05:49 +04:00
|
|
|
$ hg init
|
|
|
|
$ echo a > a
|
|
|
|
$ hg ci -Am0
|
|
|
|
adding a
|
|
|
|
|
|
|
|
$ hg -q clone . foo
|
|
|
|
|
|
|
|
$ touch .hg/store/journal
|
|
|
|
|
|
|
|
$ echo foo > a
|
|
|
|
$ hg ci -Am0
|
|
|
|
abort: abandoned transaction found - run hg recover!
|
2010-09-17 02:51:32 +04:00
|
|
|
[255]
|
2010-09-10 21:05:49 +04:00
|
|
|
|
|
|
|
$ hg recover
|
|
|
|
rolling back interrupted transaction
|
|
|
|
checking changesets
|
|
|
|
checking manifests
|
|
|
|
crosschecking files in changesets and manifests
|
|
|
|
checking files
|
|
|
|
1 files, 1 changesets, 1 total revisions
|
|
|
|
|
|
|
|
Check that zero-size journals are correctly aborted:
|
|
|
|
|
|
|
|
$ hg bundle -qa repo.hg
|
|
|
|
$ chmod -w foo/.hg/store/00changelog.i
|
|
|
|
|
|
|
|
$ hg -R foo unbundle repo.hg
|
|
|
|
adding changesets
|
2010-10-09 07:36:10 +04:00
|
|
|
abort: Permission denied: $TESTTMP/foo/.hg/store/.00changelog.i-* (glob)
|
2010-09-17 02:51:32 +04:00
|
|
|
[255]
|
2010-09-10 21:05:49 +04:00
|
|
|
|
|
|
|
$ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
|
|
|
|
|