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
|
2014-05-08 18:58:25 +04:00
|
|
|
abort: abandoned transaction found!
|
|
|
|
(run 'hg recover' to clean up transaction)
|
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:
|
|
|
|
|
2013-11-15 04:07:43 +04:00
|
|
|
#if unix-permissions no-root
|
2010-09-10 21:05:49 +04:00
|
|
|
$ 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
|
2012-06-15 02:39:21 +04:00
|
|
|
#endif
|
2010-09-10 21:05:49 +04:00
|
|
|
|