# HG changeset patch # User Pierre-Yves David # Date 1675585523 -3600 # Node ID 1a2360f7bb35806f638837748b36067b79a551c6 # Parent c694db2d8876b03b1dd15016b507813d30d977aa largefiles: use `hacky_extension_update_file` in `updatelfiles` This is what the function is meant for. diff -r c694db2d8876 -r 1a2360f7bb35 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