changeset 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 fa18a3bc40e8
children 20b37ef33ebc
files contrib/dirstatenonnormalcheck.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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