Show More
@@ -135,6 +135,7 b' class rebaseruntime(object):' | |||||
135 | # dict will be what contains most of the rebase progress state. |
|
135 | # dict will be what contains most of the rebase progress state. | |
136 | self.state = {} |
|
136 | self.state = {} | |
137 | self.activebookmark = None |
|
137 | self.activebookmark = None | |
|
138 | self.currentbookmarks = None | |||
138 | self.target = None |
|
139 | self.target = None | |
139 | self.skipped = set() |
|
140 | self.skipped = set() | |
140 | self.targetancestors = set() |
|
141 | self.targetancestors = set() | |
@@ -492,7 +493,7 b' def rebase(ui, repo, **opts):' | |||||
492 | inclusive=True) |
|
493 | inclusive=True) | |
493 |
|
494 | |||
494 | # Keep track of the current bookmarks in order to reset them later |
|
495 | # Keep track of the current bookmarks in order to reset them later | |
495 | currentbookmarks = repo._bookmarks.copy() |
|
496 | rbsrt.currentbookmarks = repo._bookmarks.copy() | |
496 | rbsrt.activebookmark = rbsrt.activebookmark or repo._activebookmark |
|
497 | rbsrt.activebookmark = rbsrt.activebookmark or repo._activebookmark | |
497 | if rbsrt.activebookmark: |
|
498 | if rbsrt.activebookmark: | |
498 | bookmarks.deactivate(repo) |
|
499 | bookmarks.deactivate(repo) | |
@@ -616,7 +617,7 b' def rebase(ui, repo, **opts):' | |||||
616 | if 'qtip' in repo.tags(): |
|
617 | if 'qtip' in repo.tags(): | |
617 | updatemq(repo, rbsrt.state, rbsrt.skipped, **opts) |
|
618 | updatemq(repo, rbsrt.state, rbsrt.skipped, **opts) | |
618 |
|
619 | |||
619 | if currentbookmarks: |
|
620 | if rbsrt.currentbookmarks: | |
620 | # Nodeids are needed to reset bookmarks |
|
621 | # Nodeids are needed to reset bookmarks | |
621 | nstate = {} |
|
622 | nstate = {} | |
622 | for k, v in rbsrt.state.iteritems(): |
|
623 | for k, v in rbsrt.state.iteritems(): | |
@@ -648,8 +649,9 b' def rebase(ui, repo, **opts):' | |||||
648 | clearrebased(ui, repo, rbsrt.state, rbsrt.skipped, collapsedas) |
|
649 | clearrebased(ui, repo, rbsrt.state, rbsrt.skipped, collapsedas) | |
649 |
|
650 | |||
650 | with repo.transaction('bookmark') as tr: |
|
651 | with repo.transaction('bookmark') as tr: | |
651 | if currentbookmarks: |
|
652 | if rbsrt.currentbookmarks: | |
652 |
updatebookmarks(repo, targetnode, nstate, |
|
653 | updatebookmarks(repo, targetnode, nstate, | |
|
654 | rbsrt.currentbookmarks, tr) | |||
653 | if rbsrt.activebookmark not in repo._bookmarks: |
|
655 | if rbsrt.activebookmark not in repo._bookmarks: | |
654 | # active bookmark was divergent one and has been deleted |
|
656 | # active bookmark was divergent one and has been deleted | |
655 | rbsrt.activebookmark = None |
|
657 | rbsrt.activebookmark = None |
General Comments 0
You need to be logged in to leave comments.
Login now