diff mercurial/dirstate.py @ 47536:8e4b9fe31334

dirstate-entry: add a `mode` property This is clearer than "tuple" indexing. Differential Revision: https://phab.mercurial-scm.org/D10979
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 04 Jul 2021 02:33:21 +0200
parents 6025353c9c55
children 0e5800c88eb4
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sun Jul 04 02:28:08 2021 +0200
+++ b/mercurial/dirstate.py	Sun Jul 04 02:33:21 2021 +0200
@@ -1307,7 +1307,7 @@
             # general. That is much slower than simply accessing and storing the
             # tuple members one by one.
             t = dget(fn)
-            mode = t[1]
+            mode = t.mode
             size = t[2]
             time = t[3]