##// END OF EJS Templates
rebase: store rebase state after each commit...
Martin von Zweigbergk -
r37050:98663bed default
parent child Browse files
Show More
@@ -484,8 +484,6 b' class rebaseruntime(object):'
484 484 p1, p2, base = defineparents(repo, rev, self.destmap,
485 485 self.state, self.skipped,
486 486 self.obsoletenotrebased)
487 if not tr:
488 self.storestatus()
489 487 if len(repo[None].parents()) == 2:
490 488 repo.ui.debug('resuming interrupted rebase\n')
491 489 else:
@@ -546,6 +544,12 b' class rebaseruntime(object):'
546 544 else:
547 545 ui.status(_('already rebased %s as %s\n') %
548 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 554 def _finishrebase(self):
551 555 repo, ui, opts = self.repo, self.ui, self.opts
@@ -813,19 +813,7 b' Test aborted editor on final message'
813 813 |/
814 814 o 0: 4a2df7238c3b 'A'
815 815
816 BROKEN: should not result in a conflict
817 816 $ hg rebase --continue
818 817 already rebased 1:f899f3910ce7 "B" (B) as 82b8abf9c185
819 rebasing 3:63668d570d21 "C" (C tip)
820 merging A
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
818 already rebased 3:63668d570d21 "C" (C tip) as 82b8abf9c185
819 saved backup bundle to $TESTTMP/aborted-editor/.hg/strip-backup/f899f3910ce7-7cab5e15-rebase.hg
@@ -239,7 +239,6 b' Check that the right ancestors is used w'
239 239 rebase status stored
240 240 rebasing 9:e31216eec445 "more changes to f1"
241 241 future parents are 2 and -1
242 rebase status stored
243 242 update to 2:4bc80088dc6b
244 243 resolving manifests
245 244 branchmerge: False, force: True, partial: False
@@ -264,9 +263,9 b' Check that the right ancestors is used w'
264 263 committing changelog
265 264 updating the branch cache
266 265 rebased as 19c888675e13
266 rebase status stored
267 267 rebasing 10:2f2496ddf49d "merge" (tip)
268 268 future parents are 11 and 7
269 rebase status stored
270 269 already in destination
271 270 merge against 10:2f2496ddf49d
272 271 detach base 9:e31216eec445
@@ -284,6 +283,7 b' Check that the right ancestors is used w'
284 283 committing changelog
285 284 updating the branch cache
286 285 rebased as 2a7f09cac94c
286 rebase status stored
287 287 rebase merging completed
288 288 update back to initial working directory parent
289 289 resolving manifests
General Comments 0
You need to be logged in to leave comments. Login now