changeset 50073:1a2360f7bb35

largefiles: use `hacky_extension_update_file` in `updatelfiles` This is what the function is meant for.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 05 Feb 2023 09:25:23 +0100
parents c694db2d8876
children ef1540c57730
files hgext/largefiles/lfcommands.py
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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