--- 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