tests: demonstrate assertion error when modifying working copy while narrowing
Differential Revision: https://phab.mercurial-scm.org/D10062
--- a/tests/test-narrow.t Thu Feb 04 23:23:35 2021 +0100
+++ b/tests/test-narrow.t Tue Feb 23 22:55:26 2021 -0800
@@ -509,3 +509,11 @@
deleting meta/d0/00manifest.i (tree !)
deleting meta/d2/00manifest.i (tree !)
$ ls .hg/strip-backup/
+
+
+Test removing include while concurrently modifying file in that path
+ $ hg clone --narrow ssh://user@dummy/master narrow-concurrent-modify -q \
+ > --include d0 --include d1
+ $ cd narrow-concurrent-modify
+ $ hg --config 'hooks.pretxnopen = echo modified >> d0/f' tracked --removeinclude d0 2>&1 | grep AssertionError
+ AssertionError