hgext/largefiles/lfcommands.py
changeset 47722 47dce5a99eab
parent 47713 04d4c01e83fa
child 47988 d459c6b84961
--- a/hgext/largefiles/lfcommands.py	Sun Jul 18 23:43:08 2021 +0200
+++ b/hgext/largefiles/lfcommands.py	Mon Jul 19 05:46:16 2021 +0200
@@ -548,7 +548,12 @@
                         # use normallookup() to allocate an entry in largefiles
                         # dirstate to prevent lfilesrepo.status() from reporting
                         # missing files as removed.
-                        lfdirstate.normallookup(lfile)
+                        lfdirstate.update_file(
+                            lfile,
+                            p1_tracked=True,
+                            wc_tracked=True,
+                            possibly_dirty=True,
+                        )
                         update[lfile] = expecthash
                 else:
                     # Remove lfiles for which the standin is deleted, unless the