Mercurial > hg-stable
changeset 47749:068e09499d4e
largefile: use `update_file` instead of `drop` in `synclfdirstate`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11191
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 09:14:24 +0200 |
parents | 000ea893aad3 |
children | 13e2ce796dcd |
files | hgext/largefiles/lfutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Mon Jul 19 09:08:54 2021 +0200 +++ b/hgext/largefiles/lfutil.py Mon Jul 19 09:14:24 2021 +0200 @@ -556,7 +556,7 @@ def synclfdirstate(repo, lfdirstate, lfile, normallookup): lfstandin = standin(lfile) if lfstandin not in repo.dirstate: - lfdirstate.drop(lfile) + lfdirstate.update_file(lfile, p1_tracked=False, wc_tracked=False) else: stat = repo.dirstate._map[lfstandin] state, mtime = stat.state, stat.mtime