diff mercurial/configitems.py @ 46433:0600e8467101

discovery: add config options to control sample size This get useful for running analysis of the current algorithm. Differential Revision: https://phab.mercurial-scm.org/D9813
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 17 Jan 2021 23:21:33 +0100
parents 6e81446bf1d9
children 7525e77b5eac
line wrap: on
line diff
--- a/mercurial/configitems.py	Tue Jan 19 00:20:42 2021 +0100
+++ b/mercurial/configitems.py	Sun Jan 17 23:21:33 2021 +0100
@@ -729,6 +729,18 @@
     b'discovery.randomize',
     default=True,
 )
+# Control the initial size of the discovery sample
+coreconfigitem(
+    b'devel',
+    b'discovery.sample-size',
+    default=200,
+)
+# Control the initial size of the discovery for initial change
+coreconfigitem(
+    b'devel',
+    b'discovery.sample-size.initial',
+    default=100,
+)
 _registerdiffopts(section=b'diff')
 coreconfigitem(
     b'email',