largefile: use `update_file` instead of `drop` in `synclfdirstate`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11191
--- 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