Patchwork D11441: dirstate: use `reset_state` instead of `dropfile` in largefile

login
register
mail settings
Submitter phabricator
Date Sept. 16, 2021, 2:46 p.m.
Message ID <differential-rev-PHID-DREV-pj7mw4k5djyhd6ud6xdl-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49757/
State Superseded
Headers show

Comments

phabricator - Sept. 16, 2021, 2:46 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  As `dirstatemap.dropfile` is on its way out.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11441

AFFECTED FILES
  hgext/largefiles/lfcommands.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py
+++ b/hgext/largefiles/lfcommands.py
@@ -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)