rebase: explicitly test abort from ambiguous destination
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 08 Feb 2016 14:07:17 +0100
changeset 28190 e8d1460e2a72
parent 28189 fac3a24be50e
child 28193 19775bc34da3
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.
tests/test-rebase-parameters.t
--- 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]