diff --git a/mercurial/sparse.py b/mercurial/sparse.py --- a/mercurial/sparse.py +++ b/mercurial/sparse.py @@ -453,7 +453,7 @@ def filterupdatesactions(repo, wctx, mct for file, flags, msg in tmresult.getactions( [mergestatemod.ACTION_GET] ): - dirstate.normal(file) + dirstate.update_file(file, p1_tracked=True, wc_tracked=True) profiles = activeconfig(repo)[2] changedprofiles = profiles & files