tests/test-diffdir
author Thomas Arendsen Hein <thomas@intevation.de>
Sun, 07 Aug 2005 17:41:13 +0100
changeset 856 fbe964ae7325
parent 814 0902ffece4b4
child 949 d997148155f2
child 953 52d8d81e72ad
child 981 4f81068ed8cd
permissions -rwxr-xr-x
Fixed encoding of directories ending in .d or .i: One .d and .i was mixed up, and string replace method doesn't work in-place.

#!/bin/sh

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

echo 123 > b
hg add b
hg diff | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/"

hg diff -r tip | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/"