--- a/tests/test-narrow-sparse.t Tue May 18 13:34:06 2021 -0400
+++ b/tests/test-narrow-sparse.t Tue May 18 13:08:42 2021 -0400
@@ -70,3 +70,28 @@
treemanifest (tree !)
$ hg debugrebuilddirstate
+
+We only make the following assertions for the flat test case since in the
+treemanifest test case debugsparse fails with "path ends in directory
+separator: outside/" which seems like a bug unrelated to the regression this is
+testing for.
+
+#if flat
+widening with both sparse and narrow is possible
+
+ $ cat >> .hg/hgrc <<EOF
+ > [extensions]
+ > sparse =
+ > narrow =
+ > EOF
+
+ $ hg debugsparse -X outside/f -X widest/f
+ $ hg tracked -q --addinclude outside/f
+ $ find . -name .hg -prune -o -type f -print | sort
+ ./inside/f
+
+ $ hg debugsparse -d outside/f
+ $ find . -name .hg -prune -o -type f -print | sort
+ ./inside/f
+ ./outside/f
+#endif