dirstate: use `reset_state` instead of `dropfile` in largefile
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 16 Sep 2021 15:20:28 +0200
changeset 48025 af84aa1a66f1
parent 48024 1370d695c258
child 48026 44fc75bd1580
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
hgext/largefiles/lfcommands.py
--- 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)