tests: demonstrate assertion error when modifying working copy while narrowing
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 23 Feb 2021 22:55:26 -0800
changeset 46605 946a07f08906
parent 46604 ad107ed7a4aa
child 46606 ced66295ea90
tests: demonstrate assertion error when modifying working copy while narrowing Differential Revision: https://phab.mercurial-scm.org/D10062
tests/test-narrow.t
--- 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