##// 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 $ hg init
1 $ hg init
4 $ echo a > a
2 $ echo a > a
5 $ hg ci -Am0
3 $ hg ci -Am0
6 adding a
4 adding a
7
5
8 $ hg -q clone . foo
6 $ hg -q clone . foo
9
7
10 $ touch .hg/store/journal
8 $ touch .hg/store/journal
11
9
12 $ echo foo > a
10 $ echo foo > a
13 $ hg ci -Am0
11 $ hg ci -Am0
14 abort: abandoned transaction found - run hg recover!
12 abort: abandoned transaction found - run hg recover!
15 [255]
13 [255]
16
14
17 $ hg recover
15 $ hg recover
18 rolling back interrupted transaction
16 rolling back interrupted transaction
19 checking changesets
17 checking changesets
20 checking manifests
18 checking manifests
21 crosschecking files in changesets and manifests
19 crosschecking files in changesets and manifests
22 checking files
20 checking files
23 1 files, 1 changesets, 1 total revisions
21 1 files, 1 changesets, 1 total revisions
24
22
25 Check that zero-size journals are correctly aborted:
23 Check that zero-size journals are correctly aborted:
26
24
25 #if unix-permissions
27 $ hg bundle -qa repo.hg
26 $ hg bundle -qa repo.hg
28 $ chmod -w foo/.hg/store/00changelog.i
27 $ chmod -w foo/.hg/store/00changelog.i
29
28
30 $ hg -R foo unbundle repo.hg
29 $ hg -R foo unbundle repo.hg
31 adding changesets
30 adding changesets
32 abort: Permission denied: $TESTTMP/foo/.hg/store/.00changelog.i-* (glob)
31 abort: Permission denied: $TESTTMP/foo/.hg/store/.00changelog.i-* (glob)
33 [255]
32 [255]
34
33
35 $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
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