changeset 48094:3fe500d15e7c

dirstate-item: use `tracked` instead of the `state` in context's iter Differential Revision: https://phab.mercurial-scm.org/D11531
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 30 Sep 2021 15:28:42 +0200
parents 5437a0254590
children 20d0149b8a0a
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):