Mercurial > hg
comparison tests/test-hgignore.t @ 25216:dc562165044a
ignore: use 'include:' rules instead of custom syntax
Now that the matcher supports 'include:' rules, let's change the dirstate.ignore
creation to just create a matcher with a bunch of includes. This allows us to
completely delete ignore.py.
I moved some of the syntax documentation over to readpatternfile in match.py so
we don't lose it.
author | Durham Goode <durham@fb.com> |
---|---|
date | Sat, 16 May 2015 16:06:22 -0700 |
parents | 4040e06e9b99 |
children | 19d0e5efa6ca |
comparison
equal
deleted
inserted
replaced
25215:4040e06e9b99 | 25216:dc562165044a |
---|---|
187 | 187 |
188 $ echo "include:nestedignore" >> otherignore | 188 $ echo "include:nestedignore" >> otherignore |
189 $ echo "glob:*ignore" > nestedignore | 189 $ echo "glob:*ignore" > nestedignore |
190 $ hg status | 190 $ hg status |
191 A dir/b.o | 191 A dir/b.o |
192 | |
193 $ echo "include:badignore" >> otherignore | |
194 $ hg status | |
195 skipping unreadable pattern file 'badignore': No such file or directory | |
196 A dir/b.o |