From patchwork Mon Jul 19 10:42:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D11142: largefile: use `update_file` instead of `remove` in `synclfdirstate` From: phabricator X-Patchwork-Id: 49453 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 19 Jul 2021 10:42:54 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is the newer, more semantic API. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11142 AFFECTED FILES hgext/largefiles/lfutil.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py +++ b/hgext/largefiles/lfutil.py @@ -564,7 +564,7 @@ elif state == b'm': lfdirstate.normallookup(lfile) elif state == b'r': - lfdirstate.remove(lfile) + lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) elif state == b'a': lfdirstate.add(lfile)