# HG changeset patch # User Pierre-Yves David # Date 1632921990 -7200 # Node ID d86875b758388e7952eb2ca59e9e45481a1ab356 # Parent 97c5d1c22489c69ad3335b800e25d8a7d7cfbc4a dirstate-item: use `tracked` instead of `state` during copy detection Differential Revision: https://phab.mercurial-scm.org/D11534 diff -r 97c5d1c22489 -r d86875b75838 mercurial/copies.py --- 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