tests/test-diff-newlines
author Shun-ichi GOTO <shunichi.goto@gmail.com>
Tue, 05 Sep 2006 12:40:45 +0900
changeset 3057 50e0392d51df
parent 2248 b914f0557832
permissions -rwxr-xr-x
Fix for Python 2.3 compatibility. Note: Name of comparing function of sort() is "cmpfunc" in Python 2.3 and "cmp" in Python 2.4.

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