##// END OF EJS Templates
filemerge: merge `premerge()` into `filemerge()`...
Martin von Zweigbergk -
r49259:92185339 default
parent child Browse files
Show More
@@ -1277,16 +1277,15 b' def _workingpath(repo, ctx):'
1277 return repo.wjoin(ctx.path())
1277 return repo.wjoin(ctx.path())
1278
1278
1279
1279
1280 def premerge(repo, wctx, mynode, orig, fcd, fco, fca, labels=None):
1280 def filemerge(repo, wctx, mynode, orig, fcd, fco, fca, labels=None):
1281 return _filemerge(
1281 complete, merge_ret, deleted = _filemerge(
1282 True, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1282 True, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1283 )
1283 )
1284
1284 if not complete:
1285
1285 complete, merge_ret, deleted = _filemerge(
1286 def filemerge(repo, wctx, mynode, orig, fcd, fco, fca, labels=None):
1286 False, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1287 return _filemerge(
1287 )
1288 False, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1288 return complete, merge_ret, deleted
1289 )
1290
1289
1291
1290
1292 def loadinternalmerge(ui, extname, registrarobj):
1291 def loadinternalmerge(ui, extname, registrarobj):
@@ -354,7 +354,7 b' class _mergestate_base(object):'
354 self._restore_backup(wctx[dfile], localkey, flags)
354 self._restore_backup(wctx[dfile], localkey, flags)
355 else:
355 else:
356 wctx[dfile].remove(ignoremissing=True)
356 wctx[dfile].remove(ignoremissing=True)
357 complete, merge_ret, deleted = filemerge.premerge(
357 complete, merge_ret, deleted = filemerge.filemerge(
358 self._repo,
358 self._repo,
359 wctx,
359 wctx,
360 self._local,
360 self._local,
@@ -364,17 +364,6 b' class _mergestate_base(object):'
364 fca,
364 fca,
365 labels=self._labels,
365 labels=self._labels,
366 )
366 )
367 if not complete:
368 complete, merge_ret, deleted = filemerge.filemerge(
369 self._repo,
370 wctx,
371 self._local,
372 lfile,
373 fcd,
374 fco,
375 fca,
376 labels=self._labels,
377 )
378 if merge_ret is None:
367 if merge_ret is None:
379 # If return value of merge is None, then there are no real conflict
368 # If return value of merge is None, then there are no real conflict
380 del self._state[dfile]
369 del self._state[dfile]
General Comments 0
You need to be logged in to leave comments. Login now