diff mercurial/help/config.txt @ 35431:471918fa7f46

workers: add config to enable/diable workers This adds config to disable/enable workers with default being enabled. Test Plan: enabled profile without updaing .hg/hgrc (the default should be to use workers) and ran hg sprase --enable-profile <profile>.sparse Watched in the proces explorer that hg started 12 new threads for materializing files (this is my worker.numcpus) value Added [worker] enabled = False to the .hg/hgrc and re ran the command. This time hg didn't spawn any new threads for matreializing of files Differential Revision: https://phab.mercurial-scm.org/D1460
author Wojciech Lis <wlis@fb.com>
date Sun, 17 Dec 2017 11:26:25 -0800
parents f392066d127c
children b86f52426396
line wrap: on
line diff
--- a/mercurial/help/config.txt	Mon Nov 20 10:27:41 2017 -0800
+++ b/mercurial/help/config.txt	Sun Dec 17 11:26:25 2017 -0800
@@ -2563,6 +2563,10 @@
 directory updates in parallel on Unix-like systems, which greatly
 helps performance.
 
+``enabled``
+    Whether to enable workers code to be used.
+    (default: true)
+
 ``numcpus``
     Number of CPUs to use for parallel operations. A zero or
     negative value is treated as ``use the default``.