diff tests/test-rebase-detach.t @ 15464:3411a83e232a stable

rebase: treat nullmerge as a special case in rebasestate (issue3046) When storing/restoring a nullmerge (-2), a 'standard' conversion was made and an existing changeset was wrongly used. Nullmerge should instead be treated as a special case.
author Stefano Tortarolo <stefano.tortarolo@gmail.com>
date Sun, 06 Nov 2011 23:35:33 +0100
parents 81f76098211e
children ad336e093a59
line wrap: on
line diff
--- a/tests/test-rebase-detach.t	Tue Nov 08 21:31:39 2011 +0100
+++ b/tests/test-rebase-detach.t	Sun Nov 06 23:35:33 2011 +0100
@@ -303,3 +303,41 @@
   |/
   o  0: 'A'
   
+  $ cd ..
+
+Ensure --continue restores a correct state (issue3046):
+  $ hg clone -q a a6
+  $ cd a6
+  $ hg up -q 3
+  $ echo 'H2' > H
+  $ hg ci -A -m 'H2'
+  adding H
+  $ hg rebase -s 8 -d 7 --detach --config ui.merge=internal:fail
+  merging H
+  warning: conflicts during merge.
+  merging H failed!
+  abort: unresolved conflicts (see hg resolve, then hg rebase --continue)
+  [255]
+  $ hg resolve --all -t internal:local
+  $ hg rebase -c
+  saved backup bundle to $TESTTMP/a6/.hg/strip-backup/6215fafa5447-backup.hg
+  $ hg tglog
+  @  8: 'H2'
+  |
+  o  7: 'H'
+  |
+  | o  6: 'G'
+  |/|
+  o |  5: 'F'
+  | |
+  | o  4: 'E'
+  |/
+  | o  3: 'D'
+  | |
+  | o  2: 'C'
+  | |
+  | o  1: 'B'
+  |/
+  o  0: 'A'
+  
+