##// END OF EJS Templates
filemerge: call premerge directly from main merge function...
Siddharth Agarwal -
r26567:f18646cf default
parent child Browse files
Show More
@@ -247,7 +247,7 def _merge(repo, mynode, orig, fcd, fco,
247 247 files. It will fail if there are any conflicts and leave markers in
248 248 the partially merged file. Markers will have two sections, one for each side
249 249 of merge, unless mode equals 'union' which suppresses the markers."""
250 r = _premerge(repo, toolconf, files, labels=labels)
250 r = 1
251 251 if r:
252 252 a, b, c, back = files
253 253
@@ -349,7 +349,7 def _idump(repo, mynode, orig, fcd, fco,
349 349 ``a.txt``, these files will accordingly be named ``a.txt.local``,
350 350 ``a.txt.other`` and ``a.txt.base`` and they will be placed in the
351 351 same directory as ``a.txt``."""
352 r = _premerge(repo, toolconf, files, labels=labels)
352 r = 1
353 353 if r:
354 354 a, b, c, back = files
355 355
@@ -361,7 +361,7 def _idump(repo, mynode, orig, fcd, fco,
361 361 return False, r
362 362
363 363 def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None):
364 r = _premerge(repo, toolconf, files, labels=labels)
364 r = 1
365 365 if r:
366 366 tool, toolpath, binary, symlink = toolconf
367 367 a, b, c, back = files
@@ -519,8 +519,15 def filemerge(repo, mynode, orig, fcd, f
519 519 if markerstyle != 'basic':
520 520 labels = _formatlabels(repo, fcd, fco, fca, labels)
521 521
522 needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, files,
523 labels=labels)
522 r = 1
523 if mergetype == fullmerge:
524 r = _premerge(repo, toolconf, files, labels=labels)
525
526 if not r: # premerge successfully merged the file
527 needcheck = False
528 else:
529 needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf,
530 files, labels=labels)
524 531
525 532 if not needcheck:
526 533 if r:
General Comments 0
You need to be logged in to leave comments. Login now