mercurial/setdiscovery.py
changeset 42758 334c1ea57136
parent 42757 4e7bd6180b53
child 42761 4d20b1fe8a72
--- a/mercurial/setdiscovery.py	Tue May 21 17:43:55 2019 +0200
+++ b/mercurial/setdiscovery.py	Tue May 21 17:44:15 2019 +0200
@@ -390,7 +390,9 @@
 
     # full blown discovery
 
-    disco = partialdiscovery(local, ownheads, remote.limitedarguments)
+    randomize = ui.configbool('devel', 'discovery.randomize')
+    disco = partialdiscovery(local, ownheads, remote.limitedarguments,
+                             randomize=randomize)
     # treat remote heads (and maybe own heads) as a first implicit sample
     # response
     disco.addcommons(knownsrvheads)