# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 07:08:54 # Node ID 000ea893aad3d657b3d7872dfab28a694e4e82c7 # Parent 452e7048293d66a49690c4ae7cf19effe0263ea1 sparse: use `update_file` instead of `drop` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11190 diff --git a/mercurial/sparse.py b/mercurial/sparse.py --- a/mercurial/sparse.py +++ b/mercurial/sparse.py @@ -283,7 +283,7 @@ def prunetemporaryincludes(repo): # Fix dirstate for file in dropped: - dirstate.drop(file) + dirstate.update_file(file, p1_tracked=False, wc_tracked=False) repo.vfs.unlink(b'tempsparse') repo._sparsesignaturecache.clear()