largefile: use `update_file` instead of `remove` in `synclfdirstate`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 03:20:28 +0200
changeset 47700 9217ab0ecdb8
parent 47699 034979d24c7b
child 47701 0e87c90f1cd5
largefile: use `update_file` instead of `remove` in `synclfdirstate` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11142
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Mon Jul 19 03:25:21 2021 +0200
+++ b/hgext/largefiles/lfutil.py	Mon Jul 19 03:20:28 2021 +0200
@@ -564,7 +564,7 @@
         elif state == b'm':
             lfdirstate.normallookup(lfile)
         elif state == b'r':
-            lfdirstate.remove(lfile)
+            lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False)
         elif state == b'a':
             lfdirstate.add(lfile)