diff tests/test-rebase-parameters.t @ 28190:e8d1460e2a72

rebase: explicitly test abort from ambiguous destination We want to explicitly test the next behavior. We add this test in its own changeset to make the test change from the behavior change as clean as possible.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 08 Feb 2016 14:07:17 +0100
parents 6025ddb4e649
children 3b7cb3d17137
line wrap: on
line diff
--- a/tests/test-rebase-parameters.t	Sun Feb 14 13:25:59 2016 +0000
+++ b/tests/test-rebase-parameters.t	Mon Feb 08 14:07:17 2016 +0100
@@ -82,6 +82,11 @@
   abort: cannot specify both a revision and a base
   [255]
 
+  $ hg rebase --base 6
+  abort: branch 'default' has 3 heads - please rebase to an explicit rev
+  (run 'hg heads .' to see heads)
+  [255]
+
   $ hg rebase --rev '1 & !1' --dest 8
   empty "rev" revision set - nothing to rebase
   [1]