From patchwork Fri Oct 1 09:42:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D11534: dirstate-item: use `tracked` instead of `state` during copy detection From: phabricator X-Patchwork-Id: 49856 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 1 Oct 2021 09:42:35 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D11534 AFFECTED FILES mercurial/copies.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -94,7 +94,7 @@ ds = repo.dirstate c = ds.copies().copy() for k in list(c): - if ds[k] not in b'anm' or (match and not match(k)): + if not ds.get_entry(k).tracked or (match and not match(k)): del c[k] return c