Patchwork D10990: dirstate-item: use the properties in largefiles

login
register
mail settings
Submitter phabricator
Date July 5, 2021, 9:35 a.m.
Message ID <differential-rev-PHID-DREV-nvjjk7mzjfymtjriady2-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49303/
State Superseded
Headers show

Comments

phabricator - July 5, 2021, 9:35 a.m.
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




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

Patch

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':