Patchwork D9797: discovery: document the `devel.discovery.randomize` option

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2021, 12:26 a.m.
Message ID <differential-rev-PHID-DREV-efqypki5xikujr57l6f2-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48108/
State Superseded
Headers show

Comments

phabricator - Jan. 16, 2021, 12:26 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Gratuitous improvement as I was passing by this config section to add more.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9797

AFFECTED FILES
  mercurial/configitems.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -700,6 +700,8 @@ 
     b'debug.peer-request',
     default=False,
 )
+# If discovery.randomize is False, random sampling during discovery are
+# deterministic. It is meant for integration tests.
 coreconfigitem(
     b'devel',
     b'discovery.randomize',