tests/test-diffdir
author Bryan O'Sullivan <bos@serpentine.com>
Wed, 20 Jul 2005 02:57:20 -0800
changeset 730 d2dc7663d512
parent 536 c15b4bc0a11c
child 749 7e4843b7efd2
permissions -rwxr-xr-x
Only walk over files that match our criteria.

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