[Updated] D10991: dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Thu Jul 8 09:01:51 UTC 2021


Closed by commit rHG35295f5a5b9f: dirstate-item: use the properties in `contrib/dirstatenonnormalcheck.py` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10991?vs=28928&id=28970

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10991/new/

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, SimonSapin, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210708/8556b4ce/attachment-0002.html>


More information about the Mercurial-patches mailing list