diff tests/test-wireproto.t @ 2531:d3d686f05458 mercurial-4.1

test-compat: merge with stable Nothing special to report, minor test-metaedit.t output change.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 31 May 2017 14:21:18 +0200
parents 0405bbda7402 29fc90b0e59c
children 54ac473663ff
line wrap: on
line diff
--- a/tests/test-wireproto.t	Mon May 22 15:28:36 2017 +0200
+++ b/tests/test-wireproto.t	Wed May 31 14:21:18 2017 +0200
@@ -149,4 +149,34 @@
   1 new obsolescence markers
   (run 'hg heads' to see heads, 'hg merge' to merge)
 
+test discovery avoid exchanging known markers
+
+  $ hg push
+  pushing to ssh://user@dummy/server
+  searching for changes
+  no changes found
+  [1]
+  $ hg -R ../other pull
+  pulling from ssh://user@dummy/server
+  searching for changes
+  no changes found
+
+test discovery can be disabled
+
+  $ hg push --config experimental.evolution.obsdiscovery=no
+  pushing to ssh://user@dummy/server
+  searching for changes
+  (skipping discovery of obsolescence markers, will exchange everything)
+  (controled by 'experimental.evolution.obsdiscovery' configuration)
+  no changes found
+  remote: obsmarker-exchange: 346 bytes received
+  [1]
+  $ hg -R ../other pull --config experimental.evolution.obsdiscovery=no
+  pulling from ssh://user@dummy/server
+  searching for changes
+  no changes found
+  (skipping discovery of obsolescence markers, will exchange everything)
+  (controled by 'experimental.evolution.obsdiscovery' configuration)
+  obsmarker-exchange: 346 bytes received
+
   $ cd ..