Mercurial > hg
changeset 46605:946a07f08906
tests: demonstrate assertion error when modifying working copy while narrowing
Differential Revision: https://phab.mercurial-scm.org/D10062
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 23 Feb 2021 22:55:26 -0800 |
parents | ad107ed7a4aa |
children | ced66295ea90 |
files | tests/test-narrow.t |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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