mercurial/copies.py
changeset 48097 d86875b75838
parent 47463 5fa083a5ff04
child 48475 74b41e8b3d9c
--- 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