##// 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 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):
1287 return _filemerge(
1288 False, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1286 False, repo, wctx, mynode, orig, fcd, fco, fca, labels=labels
1289 )
1287 )
1288 return complete, merge_ret, deleted
1290
1289
1291
1290
1292 def loadinternalmerge(ui, extname, registrarobj):
1291 def loadinternalmerge(ui, extname, registrarobj):
@@ -354,17 +354,6 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(
358 self._repo,
359 wctx,
360 self._local,
361 lfile,
362 fcd,
363 fco,
364 fca,
365 labels=self._labels,
366 )
367 if not complete:
368 complete, merge_ret, deleted = filemerge.filemerge(
357 complete, merge_ret, deleted = filemerge.filemerge(
369 self._repo,
358 self._repo,
370 wctx,
359 wctx,
General Comments 0
You need to be logged in to leave comments. Login now