diff --git a/tests/test-rebase-obsolete.t b/tests/test-rebase-obsolete.t --- a/tests/test-rebase-obsolete.t +++ b/tests/test-rebase-obsolete.t @@ -473,6 +473,27 @@ $ cd .. +Detach both parents + + $ hg init double-detach + $ cd double-detach + + $ hg debugdrawdag < 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)