# HG changeset patch # User Pierre-Yves David # Date 2021-07-18 23:58:45 # Node ID 452e7048293d66a49690c4ae7cf19effe0263ea1 # Parent 56297381af90e319919af2c6c3d66591e679b569 sparse: use `update_file` instead of `drop` in `refreshwdir` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11189 diff --git a/mercurial/sparse.py b/mercurial/sparse.py --- a/mercurial/sparse.py +++ b/mercurial/sparse.py @@ -568,7 +568,7 @@ def refreshwdir(repo, origstatus, origsp dirstate.update_file(file, p1_tracked=True, wc_tracked=True) for file in dropped: - dirstate.drop(file) + dirstate.update_file(file, p1_tracked=False, wc_tracked=False) for file in lookup: # File exists on disk, and we're bringing it back in an unknown state.