largefile: use `update_file` instead of `normal` in `updatelfiles`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 02:39:01 +0200
changeset 47713 04d4c01e83fa
parent 47712 95b864a670df
child 47714 9a7d723a427a
largefile: use `update_file` instead of `normal` in `updatelfiles` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11155
hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py	Mon Jul 19 02:38:40 2021 +0200
+++ b/hgext/largefiles/lfcommands.py	Mon Jul 19 02:39:01 2021 +0200
@@ -588,7 +588,9 @@
                         continue
                     # Synchronize largefile dirstate to the last modified
                     # time of the file
-                    lfdirstate.normal(lfile)
+                    lfdirstate.update_file(
+                        lfile, p1_tracked=True, wc_tracked=True
+                    )
                     update1 = 1
 
                 # copy the exec mode of largefile standin from the repository's