From patchwork Mon Jul 5 09:35:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10990: dirstate-item: use the properties in largefiles From: phabricator X-Patchwork-Id: 49303 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 5 Jul 2021 09:35:18 +0000 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 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':