tests/test-journal-exists
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 14 Mar 2008 22:12:50 +0100
changeset 6261 7c8101b5ceb1
parent 5867 b6d8972ce339
child 9693 c40a1ee20aa5
permissions -rwxr-xr-x
revlog: make sure the files are closed after an exception happens This prevents a corruption when the writes happen after the truncate initiated by the transaction rollback.

#!/bin/sh

hg init
echo a > a
hg ci -Am0

touch .hg/store/journal

echo foo > a
hg ci -Am0

hg recover