tests/test-diffdir
author Greg Ward <greg-hg@gerg.ca>
Sun, 12 Jul 2009 22:33:00 -0400
changeset 9121 a85a3d398cc3
parent 4180 f80cf8b7bbd9
permissions -rwxr-xr-x
test-fetch: fix non-portable sed regex. (s/...\+/.../ appears to be a GNU-ism: this test broke on OS X and NetBSD. Changing \+ to * fixes it, although that is a slightly less strict regex.)

#!/bin/sh

hg init
touch a
hg add a
hg ci -m "a" -d "1000000 0"

echo 123 > b
hg add b
hg diff --nodates

hg diff --nodates -r tip

echo foo > a
hg diff --nodates

hg diff -r ""
hg diff -r tip -r ""

true