tests/test-obsolete-checkheads.t
changeset 32009 c6cb21ddf74a
parent 30556 c059286a0f9c
child 32095 c52728b383b4
--- a/tests/test-obsolete-checkheads.t	Sun Apr 16 00:37:31 2017 -0400
+++ b/tests/test-obsolete-checkheads.t	Sat Apr 15 02:55:18 2017 +0200
@@ -254,9 +254,27 @@
   @  b4952fcf48cf (public) add base
   
 
-Push should not complain about new heads.
+We do not have enought data to take the right decision, we should fail
+
+  $ hg push
+  pushing to $TESTTMP/remote (glob)
+  searching for changes
+  remote has heads on branch 'default' that are not known locally: c70b08862e08
+  abort: push creates new remote head 71e3228bffe1!
+  (pull and merge or see 'hg help push' for details about pushing new heads)
+  [255]
 
-  $ hg push --traceback
+Pulling the missing data makes it work
+
+  $ hg pull
+  pulling from $TESTTMP/remote (glob)
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files (+1 heads)
+  (run 'hg heads' to see heads)
+  $ hg push
   pushing to $TESTTMP/remote (glob)
   searching for changes
   adding changesets