tests/test-diff-newlines
author Matt Mackall <mpm@selenic.com>
Mon, 24 Sep 2007 12:41:54 -0500
changeset 5327 f46ab9cacd3c
parent 2248 b914f0557832
permissions -rwxr-xr-x
dirstate: speed up read and write read: - single call to len(st) - fewer assignments for position tracking - don't split apart tuple from unpack - use a literal for the unpack spec write: - localize variables and functions - avoid copied function call - use % for string concatenation

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