tests/test-rebase-obsolete.t
changeset 33678 855a1856466d
parent 33677 644dddccc265
child 33688 2194a8723138
--- a/tests/test-rebase-obsolete.t	Sun Jul 16 23:17:41 2017 -0700
+++ b/tests/test-rebase-obsolete.t	Fri Jul 14 14:30:55 2017 -0700
@@ -473,6 +473,27 @@
   
   $ cd ..
 
+Detach both parents
+
+  $ hg init double-detach
+  $ cd double-detach
+
+  $ hg debugdrawdag <<EOF
+  >   F
+  >  /|
+  > C E
+  > | |
+  > B D G
+  >  \|/
+  >   A
+  > EOF
+
+BROKEN: This raises an exception
+  $ hg rebase -d G -r 'B + D + F' 2>&1 | grep '^AssertionError'
+  AssertionError: no base found to rebase on (defineparents called wrong)
+
+  $ cd ..
+
 test on rebase dropping a merge
 
 (setup)