D10990: dirstate-item: use the properties in largefiles

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jul 5 09:35:18 UTC 2021


marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10990

AFFECTED FILES
  hgext/largefiles/lfutil.py

CHANGE DETAILS

diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -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':



To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel


More information about the Mercurial-devel mailing list