Mercurial > hg
comparison mercurial/dirstate.py @ 48922:fe056166b40d
dirstate: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12327
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:09:30 -0700 |
parents | f254fc73d956 |
children | 642e31cb55f0 |
comparison
equal
deleted
inserted
replaced
48921:c9774f5fa729 | 48922:fe056166b40d |
---|---|
1306 # We need to do full walks when either | 1306 # We need to do full walks when either |
1307 # - we're listing all clean files, or | 1307 # - we're listing all clean files, or |
1308 # - match.traversedir does something, because match.traversedir should | 1308 # - match.traversedir does something, because match.traversedir should |
1309 # be called for every dir in the working dir | 1309 # be called for every dir in the working dir |
1310 full = listclean or match.traversedir is not None | 1310 full = listclean or match.traversedir is not None |
1311 for fn, st in pycompat.iteritems( | 1311 for fn, st in self.walk( |
1312 self.walk(match, subrepos, listunknown, listignored, full=full) | 1312 match, subrepos, listunknown, listignored, full=full |
1313 ): | 1313 ).items(): |
1314 if not dcontains(fn): | 1314 if not dcontains(fn): |
1315 if (listignored or mexact(fn)) and dirignore(fn): | 1315 if (listignored or mexact(fn)) and dirignore(fn): |
1316 if listignored: | 1316 if listignored: |
1317 iadd(fn) | 1317 iadd(fn) |
1318 else: | 1318 else: |