Mercurial > hg-stable
view tests/test-hgignore @ 1491:91c0e8d7ddcf
fix a bug in dirstate.changes when cwd != repo.root
- use lstat instead of stat
- add a testcase (thanks to Johannes Hofmann)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 02 Nov 2005 16:13:41 -0800 |
parents | e6dd91a88b57 |
children | 1d7d0c07e8f3 |
line wrap: on
line source
#!/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