Show More
@@ -562,7 +562,6 b' class rebaseruntime(object):' | |||
|
562 | 562 | |
|
563 | 563 | def _rebasenode(self, tr, rev, allowdivergence, progressfn): |
|
564 | 564 | repo, ui, opts = self.repo, self.ui, self.opts |
|
565 | dest = self.destmap[rev] | |
|
566 | 565 | ctx = repo[rev] |
|
567 | 566 | desc = _ctxdesc(ctx) |
|
568 | 567 | if self.state[rev] == rev: |
@@ -616,14 +615,7 b' class rebaseruntime(object):' | |||
|
616 | 615 | overrides = {(b'ui', b'forcemerge'): opts.get(b'tool', b'')} |
|
617 | 616 | with ui.configoverride(overrides, b'rebase'): |
|
618 | 617 | stats = rebasenode( |
|
619 | repo, | |
|
620 | rev, | |
|
621 | p1, | |
|
622 | p2, | |
|
623 | base, | |
|
624 | self.collapsef, | |
|
625 | dest, | |
|
626 | wctx=self.wctx, | |
|
618 | repo, rev, p1, p2, base, self.collapsef, wctx=self.wctx, | |
|
627 | 619 | ) |
|
628 | 620 | if stats.unresolvedcount > 0: |
|
629 | 621 | if self.inmemory: |
@@ -1465,7 +1457,7 b' def commitnode(repo, editor, extra, user' | |||
|
1465 | 1457 | return newnode |
|
1466 | 1458 | |
|
1467 | 1459 | |
|
1468 |
def rebasenode(repo, rev, p1, p2, base, collapse, |
|
|
1460 | def rebasenode(repo, rev, p1, p2, base, collapse, wctx): | |
|
1469 | 1461 | """Rebase a single revision rev on top of p1 using base as merge ancestor""" |
|
1470 | 1462 | # Merge phase |
|
1471 | 1463 | # Update to destination and merge it with local |
@@ -1501,7 +1493,7 b' def rebasenode(repo, rev, p1, p2, base, ' | |||
|
1501 | 1493 | ) |
|
1502 | 1494 | wctx.setparents(p1ctx.node(), repo[p2].node()) |
|
1503 | 1495 | if collapse: |
|
1504 |
copies.graftcopies(wctx, ctx, |
|
|
1496 | copies.graftcopies(wctx, ctx, p1ctx) | |
|
1505 | 1497 | else: |
|
1506 | 1498 | # If we're not using --collapse, we need to |
|
1507 | 1499 | # duplicate copies between the revision we're |
General Comments 0
You need to be logged in to leave comments.
Login now