largefile: use `update_file` instead of `normal`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 00:04:24 +0200
changeset 47703 7d2f0e14da4c
parent 47702 0149d17da91b
child 47704 8a50fb0784a9
largefile: use `update_file` instead of `normal` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11145
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Mon Jul 19 00:05:47 2021 +0200
+++ b/hgext/largefiles/overrides.py	Mon Jul 19 00:04:24 2021 +0200
@@ -1805,7 +1805,7 @@
             # to avoid leaving all largefiles as dirty and thus rehash them, mark
             # all the ones that didn't change as clean
             for lfile in oldclean.difference(filelist):
-                lfdirstate.normal(lfile)
+                lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=True)
             lfdirstate.write()
 
             if branchmerge or force or partial: