dirstate-item: use the properties in largefiles
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 05 Jul 2021 06:27:26 +0200
changeset 47545 fa18a3bc40e8
parent 47544 5363610f61ef
child 47546 35295f5a5b9f
dirstate-item: use the properties in largefiles I am now sure what large file is doing with then, but at least it is no longer using the tuple API to access data. Differential Revision: https://phab.mercurial-scm.org/D10990
hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Mon Jul 05 06:45:32 2021 +0200
+++ b/hgext/largefiles/lfutil.py	Mon Jul 05 06:27:26 2021 +0200
@@ -546,7 +546,7 @@
     lfstandin = standin(lfile)
     if lfstandin in repo.dirstate:
         stat = repo.dirstate._map[lfstandin]
-        state, mtime = stat[0], stat[3]
+        state, mtime = stat.state, stat.mtime
     else:
         state, mtime = b'?', -1
     if state == b'n':