comparison hgext/largefiles/overrides.py @ 44856:b7808443ed6a

mergestate: split out merge state handling code from main merge module There's already some pretty reasonable encapsulation here, but I want to make the mergestate storage a property of the context so memctx instances can do a reasonable thing. This is the first step in a reshuffle to make that easier. Differential Revision: https://phab.mercurial-scm.org/D8550
author Augie Fackler <augie@google.com>
date Mon, 18 May 2020 14:59:59 -0400
parents 9d2b2df2c2ba
children 0e18861f96ab
comparison
equal deleted inserted replaced
44855:1d2d353e5c4a 44856:b7808443ed6a
29 filemerge, 29 filemerge,
30 hg, 30 hg,
31 logcmdutil, 31 logcmdutil,
32 match as matchmod, 32 match as matchmod,
33 merge, 33 merge,
34 mergestate as mergestatemod,
34 pathutil, 35 pathutil,
35 pycompat, 36 pycompat,
36 scmutil, 37 scmutil,
37 smartset, 38 smartset,
38 subrepo, 39 subrepo,
620 actions[standin] = (b'r', None, b'replaced by non-standin') 621 actions[standin] = (b'r', None, b'replaced by non-standin')
621 622
622 return actions, diverge, renamedelete 623 return actions, diverge, renamedelete
623 624
624 625
625 @eh.wrapfunction(merge, b'recordupdates') 626 @eh.wrapfunction(mergestatemod, b'recordupdates')
626 def mergerecordupdates(orig, repo, actions, branchmerge, getfiledata): 627 def mergerecordupdates(orig, repo, actions, branchmerge, getfiledata):
627 if b'lfmr' in actions: 628 if b'lfmr' in actions:
628 lfdirstate = lfutil.openlfdirstate(repo.ui, repo) 629 lfdirstate = lfutil.openlfdirstate(repo.ui, repo)
629 for lfile, args, msg in actions[b'lfmr']: 630 for lfile, args, msg in actions[b'lfmr']:
630 # this should be executed before 'orig', to execute 'remove' 631 # this should be executed before 'orig', to execute 'remove'