Skip to content
Snippets Groups Projects
Commit d86875b7 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

dirstate-item: use `tracked` instead of `state` during copy detection

Differential Revision: https://phab.mercurial-scm.org/D11534
parent 97c5d1c2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment