tests/test-dirstate.t
changeset 48776 6cfa30681a1d
parent 48695 e845537f6adb
parent 48373 46d12f7762e4
child 48847 f2ef6a4f918f
child 48967 42d2b31cee0b
--- a/tests/test-dirstate.t	Fri Feb 11 16:52:48 2022 -0800
+++ b/tests/test-dirstate.t	Tue Feb 15 20:24:46 2022 -0800
@@ -103,3 +103,21 @@
   1
   $ hg status
   ? a
+
+#if dirstate-v2
+Check that folders that are prefixes of others do not throw the packer into an
+infinite loop.
+
+  $ cd ..
+  $ hg init infinite-loop
+  $ cd infinite-loop
+  $ mkdir hgext3rd hgext
+  $ touch hgext3rd/__init__.py hgext/zeroconf.py
+  $ hg commit -Aqm0
+
+  $ hg st -c
+  C hgext/zeroconf.py
+  C hgext3rd/__init__.py
+
+  $ cd ..
+#endif