[Updated] D11534: dirstate-item: use `tracked` instead of `state` during copy detection
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Oct 1 20:47:45 UTC 2021
Closed by commit rHGd86875b75838: dirstate-item: use `tracked` instead of `state` during copy detection (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11534?vs=30461&id=30535
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11534/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11534
AFFECTED FILES
mercurial/copies.py
CHANGE DETAILS
diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -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
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211001/018dd712/attachment-0002.html>
More information about the Mercurial-patches
mailing list