[Updated] D11441: dirstate: use `reset_state` instead of `dropfile` in largefile

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Sep 20 14:08:49 UTC 2021


Closed by commit rHGaf84aa1a66f1: dirstate: use `reset_state` instead of `dropfile` in largefile (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11441?vs=30279&id=30324

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11441/new/

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

AFFECTED FILES
  hgext/largefiles/lfcommands.py

CHANGE DETAILS

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)



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210920/e4a863ae/attachment-0002.html>


More information about the Mercurial-patches mailing list