Mercurial > hg-stable
changeset 47740:28d5e05c139a
narrow: stop using `normallookup` during a test
Differential Revision: https://phab.mercurial-scm.org/D11182
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 15:41:51 +0200 |
parents | 6a06155dfaef |
children | 9f19d9f2d191 |
files | tests/test-narrow-expanddirstate.t |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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__):