Mercurial > hg
diff mercurial/sparse.py @ 47748:000ea893aad3
sparse: use `update_file` instead of `drop`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11190
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 09:08:54 +0200 |
parents | 452e7048293d |
children | b74ee41addee |
line wrap: on
line diff
--- a/mercurial/sparse.py Mon Jul 19 01:58:45 2021 +0200 +++ b/mercurial/sparse.py Mon Jul 19 09:08:54 2021 +0200 @@ -283,7 +283,7 @@ # 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()