tests/test-diff-newlines
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 11 Jul 2007 17:40:41 -0300
changeset 4861 74f36b1027f4
parent 2248 b914f0557832
permissions -rwxr-xr-x
archive: use util.opener when archiving files. This simplifies the code a bit and makes it easier to support symlinks.

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