tests/test-hgignore
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 01 Mar 2006 14:52:28 +0100
changeset 1820 7e10518b2b9e
parent 1568 1d7d0c07e8f3
child 2009 182f500805db
permissions -rwxr-xr-x
Really fix bash_completion on Solaris. Maybe. Hopefully. Use substr instead of sub.

#!/bin/sh

hg init
touch a.o
touch a.c
touch syntax
mkdir dir
touch dir/a.o
touch dir/b.o
touch dir/c.o

hg add dir/a.o
hg commit -m 0
hg add dir/b.o

echo "--" ; hg status

echo "*.o" > .hgignore
echo "--" ; hg status

echo ".*\.o" > .hgignore
echo "--" ; hg status

# XXX: broken
#echo "glob:**.o" > .hgignore
#echo "--" ; hg status
#
#echo "glob:*.o" > .hgignore
#echo "--" ; hg status

echo "syntax: invalid" > .hgignore
echo "--" ; hg status

echo "syntax: glob" > .hgignore
echo "*.o" >> .hgignore
echo "--" ; hg status

echo "relglob:syntax*" > .hgignore
echo "--" ; hg status

echo "relglob:*" > .hgignore
echo "--" ; hg status

cd dir
echo "--" ; hg status .