dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 05 Jul 2021 06:38:58 +0200
changeset 47546 35295f5a5b9f
parent 47545 fa18a3bc40e8
child 47547 20b37ef33ebc
dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py` Differential Revision: https://phab.mercurial-scm.org/D10991
contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py	Mon Jul 05 06:27:26 2021 +0200
+++ b/contrib/dirstatenonnormalcheck.py	Mon Jul 05 06:38:58 2021 +0200
@@ -18,7 +18,7 @@
     """Compute nonnormal entries from dirstate's dmap"""
     res = set()
     for f, e in dmap.iteritems():
-        if e[0] != b'n' or e[3] == -1:
+        if e.state != b'n' or e.mtime == -1:
             res.add(f)
     return res