##// END OF EJS Templates
filemerge: pass contexts to simplemerge...
Phil Cohen -
r33826:db3e9f7c default
parent child Browse files
Show More
@@ -341,7 +341,8 b' def _premerge(repo, fcd, fco, fca, toolc'
341 labels = _defaultconflictlabels
341 labels = _defaultconflictlabels
342 if len(labels) < 3:
342 if len(labels) < 3:
343 labels.append('base')
343 labels.append('base')
344 r = simplemerge.simplemerge(ui, a, b, c, quiet=True, label=labels)
344 r = simplemerge.simplemerge(ui, a, b, c, fcd, fca, fco,
345 quiet=True, label=labels, repo=repo)
345 if not r:
346 if not r:
346 ui.debug(" premerge successful\n")
347 ui.debug(" premerge successful\n")
347 return 0
348 return 0
@@ -371,7 +372,8 b' def _merge(repo, mynode, orig, fcd, fco,'
371
372
372 ui = repo.ui
373 ui = repo.ui
373
374
374 r = simplemerge.simplemerge(ui, a, b, c, label=labels, mode=mode)
375 r = simplemerge.simplemerge(ui, a, b, c, fcd, fca, fco,
376 label=labels, mode=mode, repo=repo)
375 return True, r, False
377 return True, r, False
376
378
377 @internaltool('union', fullmerge,
379 @internaltool('union', fullmerge,
@@ -423,8 +425,9 b' def _imergeauto(repo, mynode, orig, fcd,'
423 assert localorother is not None
425 assert localorother is not None
424 tool, toolpath, binary, symlink = toolconf
426 tool, toolpath, binary, symlink = toolconf
425 a, b, c, back = files
427 a, b, c, back = files
426 r = simplemerge.simplemerge(repo.ui, a, b, c, label=labels,
428 r = simplemerge.simplemerge(repo.ui, a, b, c, fcd, fca, fco,
427 localorother=localorother)
429 label=labels, localorother=localorother,
430 repo=repo)
428 return True, r
431 return True, r
429
432
430 @internaltool('merge-local', mergeonly, precheck=_mergecheck)
433 @internaltool('merge-local', mergeonly, precheck=_mergecheck)
General Comments 0
You need to be logged in to leave comments. Login now