tests/test-diff-newlines
author Matt Mackall <mpm@selenic.com>
Sun, 22 Jul 2007 14:53:57 -0500
changeset 4970 30d4d8985dd8
parent 2248 b914f0557832
permissions -rwxr-xr-x
transactions: avoid late tear-down (issue641) We use weak references (ugh) to avoid having to manually delete transaction references out of each call frame when an exception occurs.

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