largefile: use `update_file` instead of `normal` in `synclfdirstate`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 02:46:09 +0200
changeset 47716 2d0717b135c9
parent 47715 108c4c5673a6
child 47717 d905eff405d1
largefile: use `update_file` instead of `normal` in `synclfdirstate` This is the newer, more semantic API. This was the last call to `normal` in largefile. Differential Revision: https://phab.mercurial-scm.org/D11158
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Mon Jul 19 02:40:51 2021 +0200
+++ b/hgext/largefiles/lfutil.py	Mon Jul 19 02:46:09 2021 +0200
@@ -562,7 +562,7 @@
                 # state 'n' doesn't ensure 'clean' in this case
                 lfdirstate.normallookup(lfile)
             else:
-                lfdirstate.normal(lfile)
+                lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=True)
         elif state == b'm':
             lfdirstate.normallookup(lfile)
         elif state == b'r':