changeset 48001:af84aa1a66f1

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 16 Sep 2021 15:20:28 +0200
parents 1370d695c258
children 44fc75bd1580
files hgext/largefiles/lfcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)