comparison hgext/largefiles/lfutil.py @ 47545:fa18a3bc40e8

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Jul 2021 06:27:26 +0200
parents 1766130fe9ba
children f927ad5a4e2c
comparison
equal deleted inserted replaced
47544:5363610f61ef 47545:fa18a3bc40e8
544 544
545 def synclfdirstate(repo, lfdirstate, lfile, normallookup): 545 def synclfdirstate(repo, lfdirstate, lfile, normallookup):
546 lfstandin = standin(lfile) 546 lfstandin = standin(lfile)
547 if lfstandin in repo.dirstate: 547 if lfstandin in repo.dirstate:
548 stat = repo.dirstate._map[lfstandin] 548 stat = repo.dirstate._map[lfstandin]
549 state, mtime = stat[0], stat[3] 549 state, mtime = stat.state, stat.mtime
550 else: 550 else:
551 state, mtime = b'?', -1 551 state, mtime = b'?', -1
552 if state == b'n': 552 if state == b'n':
553 if normallookup or mtime < 0 or not repo.wvfs.exists(lfile): 553 if normallookup or mtime < 0 or not repo.wvfs.exists(lfile):
554 # state 'n' doesn't ensure 'clean' in this case 554 # state 'n' doesn't ensure 'clean' in this case