changeset 50016:c694db2d8876

largefiles: use `hacky_extension_update_file` in `synclfdirstate` This is what the function is meant for.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 05 Feb 2023 08:38:43 +0100
parents e86262dd903e
children 1a2360f7bb35
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,