test: use both bundle formats in test-bookmarks-pushpull
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 May 2015 06:55:32 -0700
changeset 25357 efa2621c2859
parent 25356 d49328038b38
child 25358 31f3636e9296
test: use both bundle formats in test-bookmarks-pushpull It is valuable to have both formats tested.
tests/test-bookmarks-pushpull.t
--- a/tests/test-bookmarks-pushpull.t	Wed May 27 06:35:34 2015 -0700
+++ b/tests/test-bookmarks-pushpull.t	Wed May 27 06:55:32 2015 -0700
@@ -705,7 +705,17 @@
 Using ssh
 ---------
 
-  $ hg push -B @ ssh
+  $ hg push -B @ ssh --config experimental.bundle2-exp=True
+  pushing to ssh://user@dummy/issue4455-dest
+  searching for changes
+  no changes found
+  remote: pushkey-abort: prepushkey hook exited with status 1
+  exporting bookmark @ failed!
+  [1]
+  $ hg -R ../issue4455-dest/ bookmarks
+  no bookmarks set
+
+  $ hg push -B @ ssh --config experimental.bundle2-exp=False
   pushing to ssh://user@dummy/issue4455-dest
   searching for changes
   no changes found
@@ -718,7 +728,7 @@
 Using http
 ----------
 
-  $ hg push -B @ http
+  $ hg push -B @ http --config experimental.bundle2-exp=True
   pushing to http://localhost:$HGPORT/
   searching for changes
   no changes found
@@ -727,3 +737,13 @@
   [1]
   $ hg -R ../issue4455-dest/ bookmarks
   no bookmarks set
+
+  $ hg push -B @ http --config experimental.bundle2-exp=False
+  pushing to http://localhost:$HGPORT/
+  searching for changes
+  no changes found
+  remote: pushkey-abort: prepushkey hook exited with status 1
+  exporting bookmark @ failed!
+  [1]
+  $ hg -R ../issue4455-dest/ bookmarks
+  no bookmarks set