Mercurial > hg
comparison contrib/dirstatenonnormalcheck.py @ 47546:35295f5a5b9f
dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py`
Differential Revision: https://phab.mercurial-scm.org/D10991
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 05 Jul 2021 06:38:58 +0200 |
parents | 2372284d9457 |
children | 20b37ef33ebc |
comparison
equal
deleted
inserted
replaced
47545:fa18a3bc40e8 | 47546:35295f5a5b9f |
---|---|
16 | 16 |
17 def nonnormalentries(dmap): | 17 def nonnormalentries(dmap): |
18 """Compute nonnormal entries from dirstate's dmap""" | 18 """Compute nonnormal entries from dirstate's dmap""" |
19 res = set() | 19 res = set() |
20 for f, e in dmap.iteritems(): | 20 for f, e in dmap.iteritems(): |
21 if e[0] != b'n' or e[3] == -1: | 21 if e.state != b'n' or e.mtime == -1: |
22 res.add(f) | 22 res.add(f) |
23 return res | 23 return res |
24 | 24 |
25 | 25 |
26 def checkconsistency(ui, orig, dmap, _nonnormalset, label): | 26 def checkconsistency(ui, orig, dmap, _nonnormalset, label): |