largefiles: use `hacky_extension_update_file` in `updatelfiles`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 05 Feb 2023 09:25:23 +0100
changeset 50017 1a2360f7bb35
parent 50016 c694db2d8876
child 50018 ef1540c57730
largefiles: use `hacky_extension_update_file` in `updatelfiles` This is what the function is meant for.
hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py	Sun Feb 05 08:38:43 2023 +0100
+++ b/hgext/largefiles/lfcommands.py	Sun Feb 05 09:25:23 2023 +0100
@@ -543,10 +543,10 @@
                             else:
                                 dropped.add(lfile)
 
-                        # use normallookup() to allocate an entry in largefiles
-                        # dirstate to prevent lfilesrepo.status() from reporting
-                        # missing files as removed.
-                        lfdirstate.update_file(
+                        # allocate an entry in largefiles dirstate to prevent
+                        # lfilesrepo.status() from reporting missing files as
+                        # removed.
+                        lfdirstate.hacky_extension_update_file(
                             lfile,
                             p1_tracked=True,
                             wc_tracked=True,
@@ -591,8 +591,10 @@
                         continue
                     # Synchronize largefile dirstate to the last modified
                     # time of the file
-                    lfdirstate.update_file(
-                        lfile, p1_tracked=True, wc_tracked=True
+                    lfdirstate.hacky_extension_update_file(
+                        lfile,
+                        p1_tracked=True,
+                        wc_tracked=True,
                     )
                     update1 = 1