comparison hgext/largefiles/overrides.py @ 47698:9fa1085fbd63

largefile: use `update_file` instead of `remove` in `mergerecordupdates` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11140
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Jul 2021 03:20:04 +0200
parents 0ab58b1f228f
children 0149d17da91b
comparison
equal deleted inserted replaced
47697:c9e412712e0c 47698:9fa1085fbd63
652 for lfile, args, msg in actions[ 652 for lfile, args, msg in actions[
653 MERGE_ACTION_LARGEFILE_MARK_REMOVED 653 MERGE_ACTION_LARGEFILE_MARK_REMOVED
654 ]: 654 ]:
655 # this should be executed before 'orig', to execute 'remove' 655 # this should be executed before 'orig', to execute 'remove'
656 # before all other actions 656 # before all other actions
657 repo.dirstate.remove(lfile) 657 repo.dirstate.update_file(
658 lfile, p1_tracked=True, wc_tracked=False
659 )
658 # make sure lfile doesn't get synclfdirstate'd as normal 660 # make sure lfile doesn't get synclfdirstate'd as normal
659 lfdirstate.add(lfile) 661 lfdirstate.add(lfile)
660 lfdirstate.write() 662 lfdirstate.write()
661 663
662 return orig(repo, actions, branchmerge, getfiledata) 664 return orig(repo, actions, branchmerge, getfiledata)