Show More
@@ -530,10 +530,9 b' def concludenode(repo, rev, p1, p2, comm' | |||||
530 | '''Commit the wd changes with parents p1 and p2. Reuse commit info from rev |
|
530 | '''Commit the wd changes with parents p1 and p2. Reuse commit info from rev | |
531 | but also store useful information in extra. |
|
531 | but also store useful information in extra. | |
532 | Return node of committed revision.''' |
|
532 | Return node of committed revision.''' | |
|
533 | dsguard = cmdutil.dirstateguard(repo, 'rebase') | |||
533 | try: |
|
534 | try: | |
534 | repo.dirstate.beginparentchange() |
|
|||
535 | repo.setparents(repo[p1].node(), repo[p2].node()) |
|
535 | repo.setparents(repo[p1].node(), repo[p2].node()) | |
536 | repo.dirstate.endparentchange() |
|
|||
537 | ctx = repo[rev] |
|
536 | ctx = repo[rev] | |
538 | if commitmsg is None: |
|
537 | if commitmsg is None: | |
539 | commitmsg = ctx.description() |
|
538 | commitmsg = ctx.description() | |
@@ -552,11 +551,10 b' def concludenode(repo, rev, p1, p2, comm' | |||||
552 | repo.ui.restoreconfig(backup) |
|
551 | repo.ui.restoreconfig(backup) | |
553 |
|
552 | |||
554 | repo.dirstate.setbranch(repo[newnode].branch()) |
|
553 | repo.dirstate.setbranch(repo[newnode].branch()) | |
|
554 | dsguard.close() | |||
555 | return newnode |
|
555 | return newnode | |
556 | except util.Abort: |
|
556 | finally: | |
557 | # Invalidate the previous setparents |
|
557 | release(dsguard) | |
558 | repo.dirstate.invalidate() |
|
|||
559 | raise |
|
|||
560 |
|
558 | |||
561 | def rebasenode(repo, rev, p1, base, state, collapse, target): |
|
559 | def rebasenode(repo, rev, p1, base, state, collapse, target): | |
562 | 'Rebase a single revision rev on top of p1 using base as merge ancestor' |
|
560 | 'Rebase a single revision rev on top of p1 using base as merge ancestor' |
General Comments 0
You need to be logged in to leave comments.
Login now