dirstate-item: use `tracked` instead of the `state` in context's iter
Differential Revision: https://phab.mercurial-scm.org/D11531
--- a/mercurial/context.py Wed Sep 29 14:57:54 2021 +0200
+++ b/mercurial/context.py Thu Sep 30 15:28:42 2021 +0200
@@ -1551,7 +1551,7 @@
def __iter__(self):
d = self._repo.dirstate
for f in d:
- if d[f] != b'r':
+ if d.get_entry(f).tracked:
yield f
def __contains__(self, key):