# HG changeset patch # User Pierre-Yves David # Date 2021-09-30 13:28:42 # Node ID 3fe500d15e7c68d110f222d4771d549238dbce46 # Parent 5437a02545905a86578759c518684c1b596e1278 dirstate-item: use `tracked` instead of the `state` in context's iter Differential Revision: https://phab.mercurial-scm.org/D11531 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -1551,7 +1551,7 @@ class workingctx(committablectx): 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):