D10991: dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jul 5 09:35:17 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10991
AFFECTED FILES
contrib/dirstatenonnormalcheck.py
CHANGE DETAILS
diff --git a/contrib/dirstatenonnormalcheck.py b/contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py
+++ b/contrib/dirstatenonnormalcheck.py
@@ -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
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list