Show More
@@ -454,13 +454,13 class rebaseruntime(object): | |||
|
454 | 454 | overrides = {('phases', 'new-commit'): destphase} |
|
455 | 455 | if keepbranch: |
|
456 | 456 | overrides[('ui', 'allowemptycommit')] = True |
|
457 | with repo.ui.configoverride(overrides, 'rebase'): | |
|
457 | 458 | if self.inmemory: |
|
458 | 459 | newnode = concludememorynode(repo, ctx, p1, p2, |
|
459 | 460 | wctx=self.wctx, |
|
460 | 461 | extra=extra, |
|
461 | 462 | commitmsg=commitmsg, |
|
462 | 463 | editor=editor, |
|
463 | overrides=overrides, | |
|
464 | 464 | date=self.date) |
|
465 | 465 | mergemod.mergestate.clean(repo) |
|
466 | 466 | else: |
@@ -468,7 +468,6 class rebaseruntime(object): | |||
|
468 | 468 | extra=extra, |
|
469 | 469 | commitmsg=commitmsg, |
|
470 | 470 | editor=editor, |
|
471 | overrides=overrides, | |
|
472 | 471 | date=self.date) |
|
473 | 472 | |
|
474 | 473 | if newnode is None: |
@@ -1028,12 +1027,10 def externalparent(repo, state, destance | |||
|
1028 | 1027 | (max(destancestors), |
|
1029 | 1028 | ', '.join("%d" % p for p in sorted(parents)))) |
|
1030 | 1029 | |
|
1031 |
def concludememorynode(repo, ctx, p1, p2, wctx, editor, extra, |
|
|
1032 | commitmsg): | |
|
1030 | def concludememorynode(repo, ctx, p1, p2, wctx, editor, extra, date, commitmsg): | |
|
1033 | 1031 | '''Commit the memory changes with parents p1 and p2. Reuse commit info from |
|
1034 | 1032 | ctx. |
|
1035 | 1033 | Return node of committed revision.''' |
|
1036 | with repo.ui.configoverride(overrides, 'rebase'): | |
|
1037 | 1034 |
|
|
1038 | 1035 |
|
|
1039 | 1036 |
|
@@ -1053,8 +1050,7 def concludememorynode(repo, ctx, p1, p2 | |||
|
1053 | 1050 |
|
|
1054 | 1051 |
|
|
1055 | 1052 | |
|
1056 |
def concludenode(repo, ctx, p1, p2, editor, extra, |
|
|
1057 | commitmsg): | |
|
1053 | def concludenode(repo, ctx, p1, p2, editor, extra, date, commitmsg): | |
|
1058 | 1054 | '''Commit the wd changes with parents p1 and p2. Reuse commit info from ctx. |
|
1059 | 1055 | Return node of committed revision.''' |
|
1060 | 1056 | dsguard = util.nullcontextmanager() |
@@ -1063,7 +1059,6 def concludenode(repo, ctx, p1, p2, edit | |||
|
1063 | 1059 | with dsguard: |
|
1064 | 1060 | repo.setparents(repo[p1].node(), repo[p2].node()) |
|
1065 | 1061 | |
|
1066 | with repo.ui.configoverride(overrides, 'rebase'): | |
|
1067 | 1062 |
|
|
1068 | 1063 |
|
|
1069 | 1064 |
|
General Comments 0
You need to be logged in to leave comments.
Login now