largefiles: use `hacky_extension_update_file` in `updatelfiles`
This is what the function is meant for.
--- 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