Show More
@@ -484,8 +484,6 class rebaseruntime(object): | |||||
484 | p1, p2, base = defineparents(repo, rev, self.destmap, |
|
484 | p1, p2, base = defineparents(repo, rev, self.destmap, | |
485 | self.state, self.skipped, |
|
485 | self.state, self.skipped, | |
486 | self.obsoletenotrebased) |
|
486 | self.obsoletenotrebased) | |
487 | if not tr: |
|
|||
488 | self.storestatus() |
|
|||
489 | if len(repo[None].parents()) == 2: |
|
487 | if len(repo[None].parents()) == 2: | |
490 | repo.ui.debug('resuming interrupted rebase\n') |
|
488 | repo.ui.debug('resuming interrupted rebase\n') | |
491 | else: |
|
489 | else: | |
@@ -546,6 +544,12 class rebaseruntime(object): | |||||
546 | else: |
|
544 | else: | |
547 | ui.status(_('already rebased %s as %s\n') % |
|
545 | ui.status(_('already rebased %s as %s\n') % | |
548 | (desc, repo[self.state[rev]])) |
|
546 | (desc, repo[self.state[rev]])) | |
|
547 | if not tr: | |||
|
548 | # When not using single transaction, store state after each | |||
|
549 | # commit is completely done. On InterventionRequired, we thus | |||
|
550 | # won't store the status. Instead, we'll hit the "len(parents) == 2" | |||
|
551 | # case and realize that the commit was in progress. | |||
|
552 | self.storestatus() | |||
549 |
|
553 | |||
550 | def _finishrebase(self): |
|
554 | def _finishrebase(self): | |
551 | repo, ui, opts = self.repo, self.ui, self.opts |
|
555 | repo, ui, opts = self.repo, self.ui, self.opts |
@@ -813,19 +813,7 Test aborted editor on final message | |||||
813 | |/ |
|
813 | |/ | |
814 | o 0: 4a2df7238c3b 'A' |
|
814 | o 0: 4a2df7238c3b 'A' | |
815 |
|
815 | |||
816 | BROKEN: should not result in a conflict |
|
|||
817 | $ hg rebase --continue |
|
816 | $ hg rebase --continue | |
818 | already rebased 1:f899f3910ce7 "B" (B) as 82b8abf9c185 |
|
817 | already rebased 1:f899f3910ce7 "B" (B) as 82b8abf9c185 | |
819 |
|
|
818 | already rebased 3:63668d570d21 "C" (C tip) as 82b8abf9c185 | |
820 | merging A |
|
819 | saved backup bundle to $TESTTMP/aborted-editor/.hg/strip-backup/f899f3910ce7-7cab5e15-rebase.hg | |
821 | warning: conflicts while merging A! (edit, then use 'hg resolve --mark') |
|
|||
822 | unresolved conflicts (see hg resolve, then hg rebase --continue) |
|
|||
823 | [1] |
|
|||
824 | $ cat A |
|
|||
825 | <<<<<<< dest: 82b8abf9c185 D - test: D |
|
|||
826 | BD |
|
|||
827 | ||||||| base |
|
|||
828 | B |
|
|||
829 | ======= |
|
|||
830 | C |
|
|||
831 | >>>>>>> source: 63668d570d21 C tip - test: C |
|
@@ -239,7 +239,6 Check that the right ancestors is used w | |||||
239 | rebase status stored |
|
239 | rebase status stored | |
240 | rebasing 9:e31216eec445 "more changes to f1" |
|
240 | rebasing 9:e31216eec445 "more changes to f1" | |
241 | future parents are 2 and -1 |
|
241 | future parents are 2 and -1 | |
242 | rebase status stored |
|
|||
243 | update to 2:4bc80088dc6b |
|
242 | update to 2:4bc80088dc6b | |
244 | resolving manifests |
|
243 | resolving manifests | |
245 | branchmerge: False, force: True, partial: False |
|
244 | branchmerge: False, force: True, partial: False | |
@@ -264,9 +263,9 Check that the right ancestors is used w | |||||
264 | committing changelog |
|
263 | committing changelog | |
265 | updating the branch cache |
|
264 | updating the branch cache | |
266 | rebased as 19c888675e13 |
|
265 | rebased as 19c888675e13 | |
|
266 | rebase status stored | |||
267 | rebasing 10:2f2496ddf49d "merge" (tip) |
|
267 | rebasing 10:2f2496ddf49d "merge" (tip) | |
268 | future parents are 11 and 7 |
|
268 | future parents are 11 and 7 | |
269 | rebase status stored |
|
|||
270 | already in destination |
|
269 | already in destination | |
271 | merge against 10:2f2496ddf49d |
|
270 | merge against 10:2f2496ddf49d | |
272 | detach base 9:e31216eec445 |
|
271 | detach base 9:e31216eec445 | |
@@ -284,6 +283,7 Check that the right ancestors is used w | |||||
284 | committing changelog |
|
283 | committing changelog | |
285 | updating the branch cache |
|
284 | updating the branch cache | |
286 | rebased as 2a7f09cac94c |
|
285 | rebased as 2a7f09cac94c | |
|
286 | rebase status stored | |||
287 | rebase merging completed |
|
287 | rebase merging completed | |
288 | update back to initial working directory parent |
|
288 | update back to initial working directory parent | |
289 | resolving manifests |
|
289 | resolving manifests |
General Comments 0
You need to be logged in to leave comments.
Login now