tests/test-diff-newlines
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 01 Nov 2006 17:56:55 +0100
changeset 3607 f4c9bb4ad7b1
parent 2248 b914f0557832
permissions -rwxr-xr-x
issue352: disallow '\n' and '\r' in filenames (dirstate and manifest)

#!/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