comparison hgext/largefiles/overrides.py @ 47721:d46d3aefd00b

largefile: use `set_possibly_dirty` instead of `normallookup` Differential Revision: https://phab.mercurial-scm.org/D11163
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 18 Jul 2021 23:43:08 +0200
parents 7d2f0e14da4c
children 13e2ce796dcd
comparison
equal deleted inserted replaced
47720:b0314d8deee1 47721:d46d3aefd00b
1783 continue 1783 continue
1784 lfutil.updatestandin(repo, lfile, fstandin) 1784 lfutil.updatestandin(repo, lfile, fstandin)
1785 # mark all clean largefiles as dirty, just in case the update gets 1785 # mark all clean largefiles as dirty, just in case the update gets
1786 # interrupted before largefiles and lfdirstate are synchronized 1786 # interrupted before largefiles and lfdirstate are synchronized
1787 for lfile in oldclean: 1787 for lfile in oldclean:
1788 lfdirstate.normallookup(lfile) 1788 entry = lfdirstate._map.get(lfile)
1789 assert not (entry.merged_removed or entry.from_p2_removed)
1790 lfdirstate.set_possibly_dirty(lfile)
1789 lfdirstate.write() 1791 lfdirstate.write()
1790 1792
1791 oldstandins = lfutil.getstandinsstate(repo) 1793 oldstandins = lfutil.getstandinsstate(repo)
1792 wc = kwargs.get('wc') 1794 wc = kwargs.get('wc')
1793 if wc and wc.isinmemory(): 1795 if wc and wc.isinmemory():