Mercurial > hg
diff hgext/largefiles/lfcommands.py @ 47988:d459c6b84961
dirstate: inline the last two `_drop` usage
The function is small and having the associated code directly inline help use to cleanup the dirstate API.
Differential Revision: https://phab.mercurial-scm.org/D11428
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 15 Sep 2021 10:20:25 +0200 |
parents | 47dce5a99eab |
children | af84aa1a66f1 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Wed Sep 15 10:02:11 2021 +0200 +++ b/hgext/largefiles/lfcommands.py Wed Sep 15 10:20:25 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._drop(f) + lfdirstate._map.dropfile(f) statuswriter(_(b'getting changed largefiles\n')) cachelfiles(ui, repo, None, lfiles)