# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 03:47:33 # Node ID b0a39b666e2d2df2d35aa7766f96bc3e14652e31 # Parent 0ed2f74f6e3a3ce36a141413f8af71f66296286c largefile: use `update_file` for `synclfdirstate` "n" case This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11166 diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -563,7 +563,9 @@ def synclfdirstate(repo, lfdirstate, lfi if state == b'n': if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): # state 'n' doesn't ensure 'clean' in this case - lfdirstate.normallookup(lfile) + lfdirstate.update_file( + lfile, p1_tracked=True, wc_tracked=True, possibly_dirty=True + ) else: lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=True) elif state == b'm':