Mercurial > hg
changeset 47722:47dce5a99eab
largefile: use `update_file` instead of `normallookup` in `updatelfiles`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11164
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 05:46:16 +0200 |
parents | d46d3aefd00b |
children | 0ed2f74f6e3a |
files | hgext/largefiles/lfcommands.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Sun Jul 18 23:43:08 2021 +0200 +++ b/hgext/largefiles/lfcommands.py Mon Jul 19 05:46:16 2021 +0200 @@ -548,7 +548,12 @@ # 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