##// END OF EJS Templates
patchbomb: fix 'echo -en' bashism in test-patchbomb...
patchbomb: fix 'echo -en' bashism in test-patchbomb The echo command doesn't accept options in some shells. printf is required by the SUSv2 (Single UNIX Specification v2).

File last commit:

r9693:c40a1ee2 default
r9730:732fc0e9 default
Show More
test-journal-exists
20 lines | 393 B | text/plain | TextLexer
/ tests / test-journal-exists
Giorgos Keramidas
tests: Use /bin/sh for test-journal-exists, /bin/bash may not be available
r5867 #!/bin/sh
Matt Mackall
transactions: don't show a backtrace when journal exists...
r5865
hg init
echo a > a
hg ci -Am0
Sune Foldager
transaction: always remove empty journal on abort...
r9693 hg -q clone . foo
Matt Mackall
transactions: don't show a backtrace when journal exists...
r5865
touch .hg/store/journal
echo foo > a
hg ci -Am0
hg recover
Sune Foldager
transaction: always remove empty journal on abort...
r9693
echo % 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 2>&1 | sed 's/\(abort: Permission denied\).*/\1/'
if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
exit 0