# HG changeset patch # User Pierre-Yves David # Date 2021-07-18 23:58:24 # Node ID a0e79084389d889936e6d75100adcb94fe7411fd # Parent 7bdfd88251c0080161cb1d198cfa0ad14de08693 sparse: use `update_file` instead of `normal` during `applyupdates` This is the newer, more semantic API. (more content end up "nonnormal", see previous commit) Differential Revision: https://phab.mercurial-scm.org/D11151 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