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