comparison hgext/largefiles/overrides.py @ 34137:c0ce60459d84

merge: pass wctx to premerge, filemerge In the in-memory merge branch. we'll need to call a function (``flushall``) on the wctx inside of _xmerge. This prepares the way so it can be done without hacks like ``fcd.ctx()``. Differential Revision: https://phab.mercurial-scm.org/D449
author Phil Cohen <phillco@fb.com>
date Mon, 11 Sep 2017 13:03:27 -0700
parents 0407a51b9d8c
children 575097b4dce0
comparison
equal deleted inserted replaced
34136:ae95853c250a 34137:c0ce60459d84
543 543
544 return orig(repo, actions, branchmerge) 544 return orig(repo, actions, branchmerge)
545 545
546 # Override filemerge to prompt the user about how they wish to merge 546 # Override filemerge to prompt the user about how they wish to merge
547 # largefiles. This will handle identical edits without prompting the user. 547 # largefiles. This will handle identical edits without prompting the user.
548 def overridefilemerge(origfn, premerge, repo, mynode, orig, fcd, fco, fca, 548 def overridefilemerge(origfn, premerge, repo, wctx, mynode, orig, fcd, fco, fca,
549 labels=None): 549 labels=None):
550 if not lfutil.isstandin(orig) or fcd.isabsent() or fco.isabsent(): 550 if not lfutil.isstandin(orig) or fcd.isabsent() or fco.isabsent():
551 return origfn(premerge, repo, mynode, orig, fcd, fco, fca, 551 return origfn(premerge, repo, wctx, mynode, orig, fcd, fco, fca,
552 labels=labels) 552 labels=labels)
553 553
554 ahash = lfutil.readasstandin(fca).lower() 554 ahash = lfutil.readasstandin(fca).lower()
555 dhash = lfutil.readasstandin(fcd).lower() 555 dhash = lfutil.readasstandin(fcd).lower()
556 ohash = lfutil.readasstandin(fco).lower() 556 ohash = lfutil.readasstandin(fco).lower()