largefiles: use `hacky_extension_update_file` in `synclfdirstate`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 05 Feb 2023 08:38:43 +0100
changeset 50016 c694db2d8876
parent 50015 e86262dd903e
child 50017 1a2360f7bb35
largefiles: use `hacky_extension_update_file` in `synclfdirstate` This is what the function is meant for.
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Sun Feb 05 08:37:33 2023 +0100
+++ b/hgext/largefiles/lfutil.py	Sun Feb 05 08:38:43 2023 +0100
@@ -575,10 +575,14 @@
 def synclfdirstate(repo, lfdirstate, lfile, normallookup):
     lfstandin = standin(lfile)
     if lfstandin not in repo.dirstate:
-        lfdirstate.update_file(lfile, p1_tracked=False, wc_tracked=False)
+        lfdirstate.hacky_extension_update_file(
+            lfile,
+            p1_tracked=False,
+            wc_tracked=False,
+        )
     else:
         entry = repo.dirstate.get_entry(lfstandin)
-        lfdirstate.update_file(
+        lfdirstate.hacky_extension_update_file(
             lfile,
             wc_tracked=entry.tracked,
             p1_tracked=entry.p1_tracked,