changeset 12205 | b4d0d646b3f7 |
parent 12204 | c55d69c5fb77 |
child 12206 | 844d25bf65a3 |
12204:c55d69c5fb77 | 12205:b4d0d646b3f7 |
---|---|
1 #!/bin/sh |
|
2 |
|
3 hg init |
|
4 echo a > a |
|
5 hg ci -Am0 |
|
6 hg -q clone . foo |
|
7 |
|
8 touch .hg/store/journal |
|
9 |
|
10 echo foo > a |
|
11 hg ci -Am0 |
|
12 |
|
13 hg recover |
|
14 |
|
15 echo % check that zero-size journals are correctly aborted |
|
16 hg bundle -qa repo.hg |
|
17 chmod -w foo/.hg/store/00changelog.i |
|
18 hg -R foo unbundle repo.hg 2>&1 | sed 's/\(abort: Permission denied\).*/\1/' |
|
19 if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi |
|
20 exit 0 |