Mercurial > hg
changeset 48097:d86875b75838
dirstate-item: use `tracked` instead of `state` during copy detection
Differential Revision: https://phab.mercurial-scm.org/D11534
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 15:26:30 +0200 |
parents | 97c5d1c22489 |
children | ba79d99ec1ae |
files | mercurial/copies.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/copies.py Wed Sep 29 15:23:57 2021 +0200 +++ b/mercurial/copies.py Wed Sep 29 15:26:30 2021 +0200 @@ -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