largefile: directly use set_untracked() for removing files
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jul 2021 03:33:56 +0200
changeset 47653 00d70f61d856
parent 47652 12300ee6840b
child 47654 2af9709ea13c
largefile: directly use set_untracked() for removing files This is new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11109
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Thu Jul 08 01:47:41 2021 +0200
+++ b/hgext/largefiles/overrides.py	Thu Jul 08 03:33:56 2021 +0200
@@ -227,9 +227,7 @@
         repo[None].forget(remove)
 
         for f in remove:
-            lfutil.synclfdirstate(
-                repo, lfdirstate, lfutil.splitstandin(f), False
-            )
+            lfdirstate.set_untracked(lfutil.splitstandin(f))
 
         lfdirstate.write()