Patchwork D10062: tests: demonstrate assertion error when modifying working copy while narrowing

login
register
mail settings
Submitter phabricator
Date Feb. 24, 2021, 7:06 a.m.
Message ID <differential-rev-PHID-DREV-5plk7eumssh2bpwzqibk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48377/
State Superseded
Headers show

Comments

phabricator - Feb. 24, 2021, 7:06 a.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10062

AFFECTED FILES
  tests/test-narrow.t

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-narrow.t b/tests/test-narrow.t
--- a/tests/test-narrow.t
+++ b/tests/test-narrow.t
@@ -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