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