Show More
@@ -482,19 +482,20 b' class rebaseruntime(object):' | |||||
482 | ui.note(_("update back to initial working directory parent\n")) |
|
482 | ui.note(_("update back to initial working directory parent\n")) | |
483 | hg.updaterepo(repo, newwd, False) |
|
483 | hg.updaterepo(repo, newwd, False) | |
484 |
|
484 | |||
|
485 | if self.currentbookmarks: | |||
|
486 | with repo.transaction('bookmark') as tr: | |||
|
487 | updatebookmarks(repo, targetnode, nstate, | |||
|
488 | self.currentbookmarks, tr) | |||
|
489 | if self.activebookmark not in repo._bookmarks: | |||
|
490 | # active bookmark was divergent one and has been deleted | |||
|
491 | self.activebookmark = None | |||
|
492 | ||||
485 | if not self.keepf: |
|
493 | if not self.keepf: | |
486 | collapsedas = None |
|
494 | collapsedas = None | |
487 | if self.collapsef: |
|
495 | if self.collapsef: | |
488 | collapsedas = newnode |
|
496 | collapsedas = newnode | |
489 | clearrebased(ui, repo, self.state, self.skipped, collapsedas) |
|
497 | clearrebased(ui, repo, self.state, self.skipped, collapsedas) | |
490 |
|
498 | |||
491 | with repo.transaction('bookmark') as tr: |
|
|||
492 | if self.currentbookmarks: |
|
|||
493 | updatebookmarks(repo, targetnode, nstate, |
|
|||
494 | self.currentbookmarks, tr) |
|
|||
495 | if self.activebookmark not in repo._bookmarks: |
|
|||
496 | # active bookmark was divergent one and has been deleted |
|
|||
497 | self.activebookmark = None |
|
|||
498 | clearstatus(repo) |
|
499 | clearstatus(repo) | |
499 | clearcollapsemsg(repo) |
|
500 | clearcollapsemsg(repo) | |
500 |
|
501 |
General Comments 0
You need to be logged in to leave comments.
Login now