tests/test-diff-newlines
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 14 Mar 2008 22:12:50 +0100
changeset 6261 7c8101b5ceb1
parent 2248 b914f0557832
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
python -c 'print "confuse str.splitlines\nembedded\rnewline"' > a
hg ci -Ama -d '1 0'
echo clean diff >> a
hg ci -mb -d '2 0'
hg diff -r0 -r1