dirstate: use `reset_state` instead of `dropfile` in largefile
As `dirstatemap.dropfile` is on its way out.
Differential Revision: https://phab.mercurial-scm.org/D11441
--- a/hgext/largefiles/lfcommands.py Wed Sep 15 18:40:25 2021 +0200
+++ b/hgext/largefiles/lfcommands.py Thu Sep 16 15:20:28 2021 +0200
@@ -577,7 +577,7 @@
repo.wvfs.unlinkpath(lfutil.standin(f))
# This needs to happen for dropped files, otherwise they stay in
# the M state.
- lfdirstate._map.dropfile(f)
+ lfdirstate._map.reset_state(f)
statuswriter(_(b'getting changed largefiles\n'))
cachelfiles(ui, repo, None, lfiles)