# HG changeset patch # User Pierre-Yves David # Date 1625459938 -7200 # Node ID 35295f5a5b9f5c733ef450da9ae5ae457fa7d6f0 # Parent fa18a3bc40e8d907bcf79e8e923a67f34a6a2d58 dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py` Differential Revision: https://phab.mercurial-scm.org/D10991 diff -r fa18a3bc40e8 -r 35295f5a5b9f 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