changeset 47739:6a06155dfaef

narrow: use `update_file` instead of `normallookup` after update This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11181
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 08:44:49 +0200
parents c53008253113
children 28d5e05c139a
files mercurial/narrowspec.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/narrowspec.py	Mon Jul 19 15:34:17 2021 +0200
+++ b/mercurial/narrowspec.py	Mon Jul 19 08:44:49 2021 +0200
@@ -351,6 +351,6 @@
     addedmatch = matchmod.intersectmatchers(addedmatch, sparse.matcher(repo))
     newfiles = [f for f in pctx.manifest().walk(addedmatch) if f not in ds]
     for f in newfiles:
-        ds.normallookup(f)
+        ds.update_file(f, p1_tracked=True, wc_tracked=True, possibly_dirty=True)
     _writeaddedfiles(repo, pctx, newfiles)
     repo._updatingnarrowspec = False