##// END OF EJS Templates
test-journal-exists: use #if
Adrian Buehlmann -
r16959:acba1281 default
parent child Browse files
Show More
@@ -1,36 +1,36 b''
1 $ "$TESTDIR/hghave" unix-permissions || exit 80
2
3 1 $ hg init
4 2 $ echo a > a
5 3 $ hg ci -Am0
6 4 adding a
7 5
8 6 $ hg -q clone . foo
9 7
10 8 $ touch .hg/store/journal
11 9
12 10 $ echo foo > a
13 11 $ hg ci -Am0
14 12 abort: abandoned transaction found - run hg recover!
15 13 [255]
16 14
17 15 $ hg recover
18 16 rolling back interrupted transaction
19 17 checking changesets
20 18 checking manifests
21 19 crosschecking files in changesets and manifests
22 20 checking files
23 21 1 files, 1 changesets, 1 total revisions
24 22
25 23 Check that zero-size journals are correctly aborted:
26 24
25 #if unix-permissions
27 26 $ hg bundle -qa repo.hg
28 27 $ chmod -w foo/.hg/store/00changelog.i
29 28
30 29 $ hg -R foo unbundle repo.hg
31 30 adding changesets
32 31 abort: Permission denied: $TESTTMP/foo/.hg/store/.00changelog.i-* (glob)
33 32 [255]
34 33
35 34 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
35 #endif
36 36
General Comments 0
You need to be logged in to leave comments. Login now