comparison hgext/largefiles/overrides.py @ 47750:13e2ce796dcd

largefile: use `update_file` instead of `drop` during `rollback` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11192
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 09:15:37 +0200
parents d46d3aefd00b
children 4d845260a713
comparison
equal deleted inserted replaced
47749:068e09499d4e 47750:13e2ce796dcd
1638 lfiles = lfutil.listlfiles(repo) 1638 lfiles = lfutil.listlfiles(repo)
1639 for file in lfiles: 1639 for file in lfiles:
1640 lfutil.synclfdirstate(repo, lfdirstate, file, True) 1640 lfutil.synclfdirstate(repo, lfdirstate, file, True)
1641 orphans.discard(file) 1641 orphans.discard(file)
1642 for lfile in orphans: 1642 for lfile in orphans:
1643 lfdirstate.drop(lfile) 1643 lfdirstate.update_file(
1644 lfile, p1_tracked=False, wc_tracked=False
1645 )
1644 lfdirstate.write() 1646 lfdirstate.write()
1645 return result 1647 return result
1646 1648
1647 1649
1648 @eh.wrapcommand(b'transplant', extension=b'transplant') 1650 @eh.wrapcommand(b'transplant', extension=b'transplant')