comparison mercurial/copies.py @ 48109: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 5fa083a5ff04
children 74b41e8b3d9c
comparison
equal deleted inserted replaced
48108:97c5d1c22489 48109:d86875b75838
92 92
93 def _dirstatecopies(repo, match=None): 93 def _dirstatecopies(repo, match=None):
94 ds = repo.dirstate 94 ds = repo.dirstate
95 c = ds.copies().copy() 95 c = ds.copies().copy()
96 for k in list(c): 96 for k in list(c):
97 if ds[k] not in b'anm' or (match and not match(k)): 97 if not ds.get_entry(k).tracked or (match and not match(k)):
98 del c[k] 98 del c[k]
99 return c 99 return c
100 100
101 101
102 def _computeforwardmissing(a, b, match=None): 102 def _computeforwardmissing(a, b, match=None):