dirstate-item: use `tracked` instead of the `state` in context's iter
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 30 Sep 2021 15:28:42 +0200
changeset 48094 3fe500d15e7c
parent 48093 5437a0254590
child 48095 20d0149b8a0a
dirstate-item: use `tracked` instead of the `state` in context's iter Differential Revision: https://phab.mercurial-scm.org/D11531
mercurial/context.py
--- 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):