sapling/tests/test-diff-copy-depth
Adrian Buehlmann 94cd97b240 tests/test-diff-copy-depth: using sh instead of bash
test failed on plain FreeBSD 6.2 due to nonexistent bash
2008-04-07 09:02:26 +02:00

32 lines
398 B
Bash
Executable File

#!/bin/sh
for i in aaa zzz; do
hg init t
cd t
echo "-- With $i"
touch file
hg add file
hg ci -m "Add"
hg cp file $i
hg ci -m "a -> $i"
hg cp $i other-file
echo "different" >> $i
hg ci -m "$i -> other-file"
hg cp other-file somename
echo "Status":
hg st -C
echo
echo "Diff:"
hg diff -g
echo
cd ..
rm -rf t
done