largefile: use `set_untracked` in the override of copy/rename
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jul 2021 03:54:54 +0200
changeset 47655 0ab58b1f228f
parent 47654 2af9709ea13c
child 47656 b1b6d0cad455
largefile: use `set_untracked` in the override of copy/rename This is the new shiny API Differential Revision: https://phab.mercurial-scm.org/D11111
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Thu Jul 08 03:50:08 2021 +0200
+++ b/hgext/largefiles/overrides.py	Thu Jul 08 03:54:54 2021 +0200
@@ -857,7 +857,7 @@
                     # The file is gone, but this deletes any empty parent
                     # directories as a side-effect.
                     repo.wvfs.unlinkpath(srclfile, ignoremissing=True)
-                    lfdirstate.remove(srclfile)
+                    lfdirstate.set_untracked(srclfile)
                 else:
                     util.copyfile(repo.wjoin(srclfile), repo.wjoin(destlfile))