##// END OF EJS Templates
rebase: abort in-mem rebase if there's a dirty merge state...
Martin von Zweigbergk -
r40836:6f679f25 stable
parent child Browse files
Show More
@@ -540,7 +540,7 b' class rebaseruntime(object):'
540 p1, p2, base = defineparents(repo, rev, self.destmap,
540 p1, p2, base = defineparents(repo, rev, self.destmap,
541 self.state, self.skipped,
541 self.state, self.skipped,
542 self.obsoletenotrebased)
542 self.obsoletenotrebased)
543 if len(repo[None].parents()) == 2:
543 if not self.inmemory and len(repo[None].parents()) == 2:
544 repo.ui.debug('resuming interrupted rebase\n')
544 repo.ui.debug('resuming interrupted rebase\n')
545 else:
545 else:
546 overrides = {('ui', 'forcemerge'): opts.get('tool', '')}
546 overrides = {('ui', 'forcemerge'): opts.get('tool', '')}
@@ -463,17 +463,12 b" Retrying without in-memory merge won't l"
463 [1]
463 [1]
464 $ hg resolve -l
464 $ hg resolve -l
465 U e
465 U e
466 BROKEN: these should not say "created no changes to commit"
467 $ hg rebase -s 2 -d 7
466 $ hg rebase -s 2 -d 7
468 rebasing 2:177f92b77385 "c"
467 rebasing 2:177f92b77385 "c"
469 note: rebase of 2:177f92b77385 created no changes to commit
468 abort: outstanding merge conflicts
470 rebasing 3:055a42cdd887 "d"
469 [255]
471 note: rebase of 3:055a42cdd887 created no changes to commit
472 rebasing 4:e860deea161a "e"
473 note: rebase of 4:e860deea161a created no changes to commit
474 saved backup bundle to $TESTTMP/repo1/repo3-merge-state/.hg/strip-backup/177f92b77385-4da7ba9e-rebase.hg
475 BROKEN: merge state lost
476 $ hg resolve -l
470 $ hg resolve -l
471 U e
477
472
478 ==========================
473 ==========================
479 Test for --confirm option|
474 Test for --confirm option|
General Comments 0
You need to be logged in to leave comments. Login now