Show More
@@ -926,6 +926,7 def abort(repo, originalwd, target, stat | |||
|
926 | 926 | activebookmark: the name of the bookmark that should be active after the |
|
927 | 927 | restore''' |
|
928 | 928 | |
|
929 | try: | |
|
929 | 930 | # If the first commits in the rebased set get skipped during the rebase, |
|
930 | 931 | # their values within the state mapping will be the target rev id. The |
|
931 | 932 | # dstates list must must not contain the target rev (issue4896) |
@@ -954,13 +955,15 def abort(repo, originalwd, target, stat | |||
|
954 | 955 | # Strip from the first rebased revision |
|
955 | 956 | rebased = filter(lambda x: x >= 0 and x != target, state.values()) |
|
956 | 957 | if rebased: |
|
957 | strippoints = [c.node() for c in repo.set('roots(%ld)', rebased)] | |
|
958 | strippoints = [ | |
|
959 | c.node() for c in repo.set('roots(%ld)', rebased)] | |
|
958 | 960 | # no backup of rebased cset versions needed |
|
959 | 961 | repair.strip(repo.ui, repo, strippoints) |
|
960 | 962 | |
|
961 | 963 | if activebookmark and activebookmark in repo._bookmarks: |
|
962 | 964 | bookmarks.activate(repo, activebookmark) |
|
963 | 965 | |
|
966 | finally: | |
|
964 | 967 | clearstatus(repo) |
|
965 | 968 | repo.ui.warn(_('rebase aborted\n')) |
|
966 | 969 | return 0 |
General Comments 0
You need to be logged in to leave comments.
Login now