# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 00:46:09 # Node ID 2d0717b135c9330fbc89949fb3886569111bd0b8 # Parent 108c4c5673a62b9991b08ca6da2cdfb262fd4aea 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 diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -562,7 +562,7 @@ def synclfdirstate(repo, lfdirstate, lfi # 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':