##// END OF EJS Templates
rebase: on abort, don't strip commits that didn't need rebased (issue5822)...
Martin von Zweigbergk -
r37015:177f3b90 stable
parent child Browse files
Show More
@@ -1544,7 +1544,8 b' def abort(repo, originalwd, destmap, sta'
1544 # If the first commits in the rebased set get skipped during the rebase,
1544 # If the first commits in the rebased set get skipped during the rebase,
1545 # their values within the state mapping will be the dest rev id. The
1545 # their values within the state mapping will be the dest rev id. The
1546 # rebased list must must not contain the dest rev (issue4896)
1546 # rebased list must must not contain the dest rev (issue4896)
1547 rebased = [s for r, s in state.items() if s >= 0 and s != destmap[r]]
1547 rebased = [s for r, s in state.items()
1548 if s >= 0 and s != r and s != destmap[r]]
1548 immutable = [d for d in rebased if not repo[d].mutable()]
1549 immutable = [d for d in rebased if not repo[d].mutable()]
1549 cleanup = True
1550 cleanup = True
1550 if immutable:
1551 if immutable:
@@ -87,13 +87,13 b" Abort doesn't lose the commits that were"
87 unresolved conflicts (see hg resolve, then hg rebase --continue)
87 unresolved conflicts (see hg resolve, then hg rebase --continue)
88 [1]
88 [1]
89 $ hg rebase --abort
89 $ hg rebase --abort
90 saved backup bundle to $TESTTMP/abort/.hg/strip-backup/79f6d6ab7b14-cce2340e-backup.hg
91 rebase aborted
90 rebase aborted
92 BROKEN: C got stripped
93 $ hg tglog
91 $ hg tglog
94 o 2: ef8c0fe0897b D
92 o 3: 79f6d6ab7b14 C
95 |
93 |
96 | o 1: 594087dbaf71 B
94 | o 2: ef8c0fe0897b D
95 | |
96 o | 1: 594087dbaf71 B
97 |/
97 |/
98 o 0: 426bada5c675 A
98 o 0: 426bada5c675 A
99
99
General Comments 0
You need to be logged in to leave comments. Login now