Patchwork [18,of,18] configitems: register the 'worker.numcpus' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 2, 2017, 10:25 p.m.
Message ID <b3b9f6a851ab2c836305.1499034335@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21942/
State Accepted
Headers show

Comments

Pierre-Yves David - July 2, 2017, 10:25 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498787161 -7200
#      Fri Jun 30 03:46:01 2017 +0200
# Node ID b3b9f6a851ab2c836305adcce7121b1d1d2b8234
# Parent  e4a9b3bd197fef85b06e7fb81dae6746519f2e9d
# EXP-Topic config.register.worker
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r b3b9f6a851ab
configitems: register the 'worker.numcpus' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -125,3 +125,6 @@  coreconfigitem('worker', 'backgroundclos
 coreconfigitem('worker', 'backgroundclosethreadcount',
     default=4,
 )
+coreconfigitem('worker', 'numcpus',
+    default=None,
+)