Show More
@@ -697,6 +697,7 b' class rebaseruntime(object):' | |||||
697 | editor = cmdutil.getcommiteditor(edit=editopt, editform=editform) |
|
697 | editor = cmdutil.getcommiteditor(edit=editopt, editform=editform) | |
698 | revtoreuse = max(self.state) |
|
698 | revtoreuse = max(self.state) | |
699 |
|
699 | |||
|
700 | self.wctx.setparents(repo[p1].node(), repo[self.external].node()) | |||
700 | newnode = self._concludenode( |
|
701 | newnode = self._concludenode( | |
701 | revtoreuse, p1, self.external, editor, commitmsg=commitmsg |
|
702 | revtoreuse, p1, self.external, editor, commitmsg=commitmsg | |
702 | ) |
|
703 | ) | |
@@ -1433,7 +1434,6 b' def commitmemorynode(repo, p1, p2, wctx,' | |||||
1433 | if b'branch' in extra: |
|
1434 | if b'branch' in extra: | |
1434 | branch = extra[b'branch'] |
|
1435 | branch = extra[b'branch'] | |
1435 |
|
1436 | |||
1436 | wctx.setparents(repo[p1].node(), repo[p2].node()) |
|
|||
1437 | memctx = wctx.tomemctx( |
|
1437 | memctx = wctx.tomemctx( | |
1438 | commitmsg, |
|
1438 | commitmsg, | |
1439 | date=date, |
|
1439 | date=date, | |
@@ -1454,8 +1454,6 b' def commitnode(repo, p1, p2, editor, ext' | |||||
1454 | if not repo.ui.configbool(b'rebase', b'singletransaction'): |
|
1454 | if not repo.ui.configbool(b'rebase', b'singletransaction'): | |
1455 | dsguard = dirstateguard.dirstateguard(repo, b'rebase') |
|
1455 | dsguard = dirstateguard.dirstateguard(repo, b'rebase') | |
1456 | with dsguard: |
|
1456 | with dsguard: | |
1457 | repo.setparents(repo[p1].node(), repo[p2].node()) |
|
|||
1458 |
|
||||
1459 | # Commit might fail if unresolved files exist |
|
1457 | # Commit might fail if unresolved files exist | |
1460 | newnode = repo.commit( |
|
1458 | newnode = repo.commit( | |
1461 | text=commitmsg, user=user, date=date, extra=extra, editor=editor |
|
1459 | text=commitmsg, user=user, date=date, extra=extra, editor=editor |
General Comments 0
You need to be logged in to leave comments.
Login now