tests/test-hgignore.t
changeset 25215 4040e06e9b99
parent 23629 a04c7b74b3d5
child 25216 dc562165044a
--- a/tests/test-hgignore.t	Mon May 18 16:27:56 2015 -0700
+++ b/tests/test-hgignore.t	Sat May 16 15:56:52 2015 -0700
@@ -167,3 +167,25 @@
   ? a.c
   ? a.o
   ? syntax
+
+Check using 'include:' in ignore file
+
+  $ hg purge --all --config extensions.purge=
+  $ touch foo.included
+
+  $ echo ".*.included" > otherignore
+  $ hg status -I "include:otherignore"
+  ? foo.included
+
+  $ echo "include:otherignore" >> .hgignore
+  $ hg status
+  A dir/b.o
+  ? .hgignore
+  ? otherignore
+
+Check recursive uses of 'include:'
+
+  $ echo "include:nestedignore" >> otherignore
+  $ echo "glob:*ignore" > nestedignore
+  $ hg status
+  A dir/b.o