test-hgignore
45 lines
| 770 B
| text/plain
|
TextLexer
/ tests / test-hgignore
Benoit Boissinot
|
r1478 | #!/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 | ||||
Thomas Arendsen Hein
|
r2009 | echo "--" ; hg status 2>&1 | sed -e 's/abort: .*\.hgignore:/abort: .hgignore:/' | ||
Benoit Boissinot
|
r1478 | |||
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 | ||||
Thomas Arendsen Hein
|
r2009 | echo "--" ; hg status 2>&1 | sed -e 's/.*\.hgignore:/.hgignore:/' | ||
Benoit Boissinot
|
r1478 | |||
echo "syntax: glob" > .hgignore | ||||
echo "*.o" >> .hgignore | ||||
echo "--" ; hg status | ||||
echo "relglob:syntax*" > .hgignore | ||||
echo "--" ; hg status | ||||
echo "relglob:*" > .hgignore | ||||
echo "--" ; hg status | ||||
Benoit Boissinot
|
r1491 | |||
cd dir | ||||
Benoit Boissinot
|
r1568 | echo "--" ; hg status . | ||