tests/test-status.t
changeset 47329 717a94b423b9
parent 47281 6763913fa175
parent 47317 c8f62920f07a
child 47346 5e12b6bfdd3e
--- a/tests/test-status.t	Wed May 26 21:46:45 2021 +0200
+++ b/tests/test-status.t	Fri May 28 17:33:20 2021 -0400
@@ -881,3 +881,20 @@
   $ hg status --ignored
   I ignored
   I ignored-dir/subdir/1
+
+Check using include flag while listing ignored composes correctly (issue6514)
+
+  $ cd ..
+  $ hg init issue6514
+  $ cd issue6514
+  $ mkdir ignored-folder
+  $ touch A.hs B.hs C.hs ignored-folder/other.txt ignored-folder/ctest.hs
+  $ cat >.hgignore <<EOF
+  > A.hs
+  > B.hs
+  > ignored-folder/
+  > EOF
+  $ hg st -i -I 're:.*\.hs$'
+  I A.hs
+  I B.hs
+  I ignored-folder/ctest.hs