tests/test-narrow-expanddirstate.t
changeset 47740 28d5e05c139a
parent 41236 44a51c1c8e17
child 48363 6a454e7053a1
--- a/tests/test-narrow-expanddirstate.t	Mon Jul 19 08:44:49 2021 +0200
+++ b/tests/test-narrow-expanddirstate.t	Mon Jul 19 15:41:51 2021 +0200
@@ -74,8 +74,14 @@
   >   narrowspec.copytoworkingcopy(repo)
   >   newmatcher = narrowspec.match(repo.root, includes, excludes)
   >   added = matchmod.differencematcher(newmatcher, currentmatcher)
-  >   for f in repo[b'.'].manifest().walk(added):
-  >     repo.dirstate.normallookup(f)
+  >   with repo.dirstate.parentchange():
+  >       for f in repo[b'.'].manifest().walk(added):
+  >           repo.dirstate.update_file(
+  >               f,
+  >               p1_tracked=True,
+  >               wc_tracked=True,
+  >               possibly_dirty=True,
+  >           )
   > 
   > def reposetup(ui, repo):
   >   class expandingrepo(repo.__class__):