diff -r c53008253113 -r 6a06155dfaef mercurial/narrowspec.py --- 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