Patchwork D212: tests: demonstrate crash when trying to rebase merge without its parents

login
register
mail settings
Submitter phabricator
Date Aug. 3, 2017, 2:38 p.m.
Message ID <0ad1f2b0d1e9036e3b5237edabd472ae@localhost.localdomain>
Download mbox | patch
Permalink /patch/22658/
State Not Applicable
Headers show

Comments

phabricator - Aug. 3, 2017, 2:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG855a1856466d: tests: demonstrate crash when trying to rebase merge without its parents (authored by martinvonz).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D212?vs=495&id=524#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D212?vs=495&id=524

REVISION DETAIL
  https://phab.mercurial-scm.org/D212

AFFECTED FILES
  tests/test-rebase-obsolete.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, quark
Cc: quark, mercurial-devel

Patch

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 <<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)