tests/test-diffdir
author mpm@selenic.com
Thu, 21 Jul 2005 12:21:33 -0500
changeset 742 092937de2ad7
parent 536 c15b4bc0a11c
child 749 7e4843b7efd2
permissions -rwxr-xr-x
Refactor matchpats and walk Move core match function code to util Add some comments and whitespace Simplify options Use lambdas instead of always and never

#!/bin/sh

hg init
touch a
hg add a
hg ci -t "a" -u test -d "0 0"

echo 123 > b
hg add b
hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/"

hg diff -r tip | sed "s/\(\(---\|+++\).*\)\t.*/\1/"