# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 03:46:16 # Node ID 47dce5a99eaba0baea654c5827b9c6dc9efe8772 # Parent d46d3aefd00b166f2a5cff05b841aef566fc0e06 largefile: use `update_file` instead of `normallookup` in `updatelfiles` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11164 diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -548,7 +548,12 @@ def updatelfiles( # 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