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