Show More
@@ -404,6 +404,9 b' def rebase(ui, repo, **opts):' | |||
|
404 | 404 | |
|
405 | 405 | if currentbookmarks: |
|
406 | 406 | updatebookmarks(repo, targetnode, nstate, currentbookmarks) |
|
407 | if activebookmark not in repo._bookmarks: | |
|
408 | # active bookmark was divergent one and has been deleted | |
|
409 | activebookmark = None | |
|
407 | 410 | |
|
408 | 411 | clearstatus(repo) |
|
409 | 412 | ui.note(_("rebase completed\n")) |
@@ -85,6 +85,24 b' Test deleting divergent bookmarks from d' | |||
|
85 | 85 | |/ |
|
86 | 86 | o 0: 'A' bookmarks: Y@diverge |
|
87 | 87 | |
|
88 | Do not try to keep active but deleted divergent bookmark | |
|
89 | ||
|
90 | $ cd .. | |
|
91 | $ hg clone -q a a4 | |
|
92 | ||
|
93 | $ cd a4 | |
|
94 | $ hg up -q 2 | |
|
95 | $ hg book W@diverge | |
|
96 | ||
|
97 | $ hg rebase -s W -d . | |
|
98 | saved backup bundle to $TESTTMP/a4/.hg/strip-backup/*-backup.hg (glob) | |
|
99 | ||
|
100 | $ hg bookmarks | |
|
101 | W 3:0d3554f74897 | |
|
102 | X 1:6c81ed0049f8 | |
|
103 | Y 2:49cb3485fa0c | |
|
104 | Z 2:49cb3485fa0c | |
|
105 | ||
|
88 | 106 | Keep bookmarks to the correct rebased changeset |
|
89 | 107 | |
|
90 | 108 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now