##// END OF EJS Templates
configitems: register the 'defaults' section
Boris Feld -
r34667:e7966337 default
parent child Browse files
Show More
@@ -1,951 +1,955 b''
1 # configitems.py - centralized declaration of configuration option
1 # configitems.py - centralized declaration of configuration option
2 #
2 #
3 # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net>
3 # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net>
4 #
4 #
5 # This software may be used and distributed according to the terms of the
5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 from __future__ import absolute_import
8 from __future__ import absolute_import
9
9
10 import functools
10 import functools
11 import re
11 import re
12
12
13 from . import (
13 from . import (
14 encoding,
14 encoding,
15 error,
15 error,
16 )
16 )
17
17
18 def loadconfigtable(ui, extname, configtable):
18 def loadconfigtable(ui, extname, configtable):
19 """update config item known to the ui with the extension ones"""
19 """update config item known to the ui with the extension ones"""
20 for section, items in configtable.items():
20 for section, items in configtable.items():
21 knownitems = ui._knownconfig.setdefault(section, {})
21 knownitems = ui._knownconfig.setdefault(section, {})
22 knownkeys = set(knownitems)
22 knownkeys = set(knownitems)
23 newkeys = set(items)
23 newkeys = set(items)
24 for key in sorted(knownkeys & newkeys):
24 for key in sorted(knownkeys & newkeys):
25 msg = "extension '%s' overwrite config item '%s.%s'"
25 msg = "extension '%s' overwrite config item '%s.%s'"
26 msg %= (extname, section, key)
26 msg %= (extname, section, key)
27 ui.develwarn(msg, config='warn-config')
27 ui.develwarn(msg, config='warn-config')
28
28
29 knownitems.update(items)
29 knownitems.update(items)
30
30
31 class configitem(object):
31 class configitem(object):
32 """represent a known config item
32 """represent a known config item
33
33
34 :section: the official config section where to find this item,
34 :section: the official config section where to find this item,
35 :name: the official name within the section,
35 :name: the official name within the section,
36 :default: default value for this item,
36 :default: default value for this item,
37 :alias: optional list of tuples as alternatives,
37 :alias: optional list of tuples as alternatives,
38 :generic: this is a generic definition, match name using regular expression.
38 :generic: this is a generic definition, match name using regular expression.
39 """
39 """
40
40
41 def __init__(self, section, name, default=None, alias=(),
41 def __init__(self, section, name, default=None, alias=(),
42 generic=False, priority=0):
42 generic=False, priority=0):
43 self.section = section
43 self.section = section
44 self.name = name
44 self.name = name
45 self.default = default
45 self.default = default
46 self.alias = list(alias)
46 self.alias = list(alias)
47 self.generic = generic
47 self.generic = generic
48 self.priority = priority
48 self.priority = priority
49 self._re = None
49 self._re = None
50 if generic:
50 if generic:
51 self._re = re.compile(self.name)
51 self._re = re.compile(self.name)
52
52
53 class itemregister(dict):
53 class itemregister(dict):
54 """A specialized dictionary that can handle wild-card selection"""
54 """A specialized dictionary that can handle wild-card selection"""
55
55
56 def __init__(self):
56 def __init__(self):
57 super(itemregister, self).__init__()
57 super(itemregister, self).__init__()
58 self._generics = set()
58 self._generics = set()
59
59
60 def update(self, other):
60 def update(self, other):
61 super(itemregister, self).update(other)
61 super(itemregister, self).update(other)
62 self._generics.update(other._generics)
62 self._generics.update(other._generics)
63
63
64 def __setitem__(self, key, item):
64 def __setitem__(self, key, item):
65 super(itemregister, self).__setitem__(key, item)
65 super(itemregister, self).__setitem__(key, item)
66 if item.generic:
66 if item.generic:
67 self._generics.add(item)
67 self._generics.add(item)
68
68
69 def get(self, key):
69 def get(self, key):
70 if key in self:
70 if key in self:
71 return self[key]
71 return self[key]
72
72
73 # search for a matching generic item
73 # search for a matching generic item
74 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
74 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
75 for item in generics:
75 for item in generics:
76 if item._re.match(key):
76 if item._re.match(key):
77 return item
77 return item
78
78
79 # fallback to dict get
79 # fallback to dict get
80 return super(itemregister, self).get(key)
80 return super(itemregister, self).get(key)
81
81
82 coreitems = {}
82 coreitems = {}
83
83
84 def _register(configtable, *args, **kwargs):
84 def _register(configtable, *args, **kwargs):
85 item = configitem(*args, **kwargs)
85 item = configitem(*args, **kwargs)
86 section = configtable.setdefault(item.section, itemregister())
86 section = configtable.setdefault(item.section, itemregister())
87 if item.name in section:
87 if item.name in section:
88 msg = "duplicated config item registration for '%s.%s'"
88 msg = "duplicated config item registration for '%s.%s'"
89 raise error.ProgrammingError(msg % (item.section, item.name))
89 raise error.ProgrammingError(msg % (item.section, item.name))
90 section[item.name] = item
90 section[item.name] = item
91
91
92 # special value for case where the default is derived from other values
92 # special value for case where the default is derived from other values
93 dynamicdefault = object()
93 dynamicdefault = object()
94
94
95 # Registering actual config items
95 # Registering actual config items
96
96
97 def getitemregister(configtable):
97 def getitemregister(configtable):
98 return functools.partial(_register, configtable)
98 return functools.partial(_register, configtable)
99
99
100 coreconfigitem = getitemregister(coreitems)
100 coreconfigitem = getitemregister(coreitems)
101
101
102 coreconfigitem('alias', '.*',
102 coreconfigitem('alias', '.*',
103 default=None,
103 default=None,
104 generic=True,
104 generic=True,
105 )
105 )
106 coreconfigitem('annotate', 'nodates',
106 coreconfigitem('annotate', 'nodates',
107 default=None,
107 default=None,
108 )
108 )
109 coreconfigitem('annotate', 'showfunc',
109 coreconfigitem('annotate', 'showfunc',
110 default=None,
110 default=None,
111 )
111 )
112 coreconfigitem('annotate', 'unified',
112 coreconfigitem('annotate', 'unified',
113 default=None,
113 default=None,
114 )
114 )
115 coreconfigitem('annotate', 'git',
115 coreconfigitem('annotate', 'git',
116 default=None,
116 default=None,
117 )
117 )
118 coreconfigitem('annotate', 'ignorews',
118 coreconfigitem('annotate', 'ignorews',
119 default=None,
119 default=None,
120 )
120 )
121 coreconfigitem('annotate', 'ignorewsamount',
121 coreconfigitem('annotate', 'ignorewsamount',
122 default=None,
122 default=None,
123 )
123 )
124 coreconfigitem('annotate', 'ignoreblanklines',
124 coreconfigitem('annotate', 'ignoreblanklines',
125 default=None,
125 default=None,
126 )
126 )
127 coreconfigitem('annotate', 'ignorewseol',
127 coreconfigitem('annotate', 'ignorewseol',
128 default=None,
128 default=None,
129 )
129 )
130 coreconfigitem('annotate', 'nobinary',
130 coreconfigitem('annotate', 'nobinary',
131 default=None,
131 default=None,
132 )
132 )
133 coreconfigitem('annotate', 'noprefix',
133 coreconfigitem('annotate', 'noprefix',
134 default=None,
134 default=None,
135 )
135 )
136 coreconfigitem('auth', 'cookiefile',
136 coreconfigitem('auth', 'cookiefile',
137 default=None,
137 default=None,
138 )
138 )
139 # bookmarks.pushing: internal hack for discovery
139 # bookmarks.pushing: internal hack for discovery
140 coreconfigitem('bookmarks', 'pushing',
140 coreconfigitem('bookmarks', 'pushing',
141 default=list,
141 default=list,
142 )
142 )
143 # bundle.mainreporoot: internal hack for bundlerepo
143 # bundle.mainreporoot: internal hack for bundlerepo
144 coreconfigitem('bundle', 'mainreporoot',
144 coreconfigitem('bundle', 'mainreporoot',
145 default='',
145 default='',
146 )
146 )
147 # bundle.reorder: experimental config
147 # bundle.reorder: experimental config
148 coreconfigitem('bundle', 'reorder',
148 coreconfigitem('bundle', 'reorder',
149 default='auto',
149 default='auto',
150 )
150 )
151 coreconfigitem('censor', 'policy',
151 coreconfigitem('censor', 'policy',
152 default='abort',
152 default='abort',
153 )
153 )
154 coreconfigitem('chgserver', 'idletimeout',
154 coreconfigitem('chgserver', 'idletimeout',
155 default=3600,
155 default=3600,
156 )
156 )
157 coreconfigitem('chgserver', 'skiphash',
157 coreconfigitem('chgserver', 'skiphash',
158 default=False,
158 default=False,
159 )
159 )
160 coreconfigitem('cmdserver', 'log',
160 coreconfigitem('cmdserver', 'log',
161 default=None,
161 default=None,
162 )
162 )
163 coreconfigitem('color', '.*',
163 coreconfigitem('color', '.*',
164 default=None,
164 default=None,
165 generic=True,
165 generic=True,
166 )
166 )
167 coreconfigitem('color', 'mode',
167 coreconfigitem('color', 'mode',
168 default='auto',
168 default='auto',
169 )
169 )
170 coreconfigitem('color', 'pagermode',
170 coreconfigitem('color', 'pagermode',
171 default=dynamicdefault,
171 default=dynamicdefault,
172 )
172 )
173 coreconfigitem('commands', 'status.relative',
173 coreconfigitem('commands', 'status.relative',
174 default=False,
174 default=False,
175 )
175 )
176 coreconfigitem('commands', 'status.skipstates',
176 coreconfigitem('commands', 'status.skipstates',
177 default=[],
177 default=[],
178 )
178 )
179 coreconfigitem('commands', 'status.verbose',
179 coreconfigitem('commands', 'status.verbose',
180 default=False,
180 default=False,
181 )
181 )
182 coreconfigitem('commands', 'update.requiredest',
182 coreconfigitem('commands', 'update.requiredest',
183 default=False,
183 default=False,
184 )
184 )
185 coreconfigitem('committemplate', '.*',
185 coreconfigitem('committemplate', '.*',
186 default=None,
186 default=None,
187 generic=True,
187 generic=True,
188 )
188 )
189 coreconfigitem('debug', 'dirstate.delaywrite',
189 coreconfigitem('debug', 'dirstate.delaywrite',
190 default=0,
190 default=0,
191 )
191 )
192 coreconfigitem('defaults', '.*',
193 default=None,
194 generic=True,
195 )
192 coreconfigitem('devel', 'all-warnings',
196 coreconfigitem('devel', 'all-warnings',
193 default=False,
197 default=False,
194 )
198 )
195 coreconfigitem('devel', 'bundle2.debug',
199 coreconfigitem('devel', 'bundle2.debug',
196 default=False,
200 default=False,
197 )
201 )
198 coreconfigitem('devel', 'cache-vfs',
202 coreconfigitem('devel', 'cache-vfs',
199 default=None,
203 default=None,
200 )
204 )
201 coreconfigitem('devel', 'check-locks',
205 coreconfigitem('devel', 'check-locks',
202 default=False,
206 default=False,
203 )
207 )
204 coreconfigitem('devel', 'check-relroot',
208 coreconfigitem('devel', 'check-relroot',
205 default=False,
209 default=False,
206 )
210 )
207 coreconfigitem('devel', 'default-date',
211 coreconfigitem('devel', 'default-date',
208 default=None,
212 default=None,
209 )
213 )
210 coreconfigitem('devel', 'deprec-warn',
214 coreconfigitem('devel', 'deprec-warn',
211 default=False,
215 default=False,
212 )
216 )
213 coreconfigitem('devel', 'disableloaddefaultcerts',
217 coreconfigitem('devel', 'disableloaddefaultcerts',
214 default=False,
218 default=False,
215 )
219 )
216 coreconfigitem('devel', 'empty-changegroup',
220 coreconfigitem('devel', 'empty-changegroup',
217 default=False,
221 default=False,
218 )
222 )
219 coreconfigitem('devel', 'legacy.exchange',
223 coreconfigitem('devel', 'legacy.exchange',
220 default=list,
224 default=list,
221 )
225 )
222 coreconfigitem('devel', 'servercafile',
226 coreconfigitem('devel', 'servercafile',
223 default='',
227 default='',
224 )
228 )
225 coreconfigitem('devel', 'serverexactprotocol',
229 coreconfigitem('devel', 'serverexactprotocol',
226 default='',
230 default='',
227 )
231 )
228 coreconfigitem('devel', 'serverrequirecert',
232 coreconfigitem('devel', 'serverrequirecert',
229 default=False,
233 default=False,
230 )
234 )
231 coreconfigitem('devel', 'strip-obsmarkers',
235 coreconfigitem('devel', 'strip-obsmarkers',
232 default=True,
236 default=True,
233 )
237 )
234 coreconfigitem('devel', 'warn-config',
238 coreconfigitem('devel', 'warn-config',
235 default=None,
239 default=None,
236 )
240 )
237 coreconfigitem('devel', 'warn-config-default',
241 coreconfigitem('devel', 'warn-config-default',
238 default=None,
242 default=None,
239 )
243 )
240 coreconfigitem('devel', 'user.obsmarker',
244 coreconfigitem('devel', 'user.obsmarker',
241 default=None,
245 default=None,
242 )
246 )
243 coreconfigitem('diff', 'nodates',
247 coreconfigitem('diff', 'nodates',
244 default=None,
248 default=None,
245 )
249 )
246 coreconfigitem('diff', 'showfunc',
250 coreconfigitem('diff', 'showfunc',
247 default=None,
251 default=None,
248 )
252 )
249 coreconfigitem('diff', 'unified',
253 coreconfigitem('diff', 'unified',
250 default=None,
254 default=None,
251 )
255 )
252 coreconfigitem('diff', 'git',
256 coreconfigitem('diff', 'git',
253 default=None,
257 default=None,
254 )
258 )
255 coreconfigitem('diff', 'ignorews',
259 coreconfigitem('diff', 'ignorews',
256 default=None,
260 default=None,
257 )
261 )
258 coreconfigitem('diff', 'ignorewsamount',
262 coreconfigitem('diff', 'ignorewsamount',
259 default=None,
263 default=None,
260 )
264 )
261 coreconfigitem('diff', 'ignoreblanklines',
265 coreconfigitem('diff', 'ignoreblanklines',
262 default=None,
266 default=None,
263 )
267 )
264 coreconfigitem('diff', 'ignorewseol',
268 coreconfigitem('diff', 'ignorewseol',
265 default=None,
269 default=None,
266 )
270 )
267 coreconfigitem('diff', 'nobinary',
271 coreconfigitem('diff', 'nobinary',
268 default=None,
272 default=None,
269 )
273 )
270 coreconfigitem('diff', 'noprefix',
274 coreconfigitem('diff', 'noprefix',
271 default=None,
275 default=None,
272 )
276 )
273 coreconfigitem('email', 'bcc',
277 coreconfigitem('email', 'bcc',
274 default=None,
278 default=None,
275 )
279 )
276 coreconfigitem('email', 'cc',
280 coreconfigitem('email', 'cc',
277 default=None,
281 default=None,
278 )
282 )
279 coreconfigitem('email', 'charsets',
283 coreconfigitem('email', 'charsets',
280 default=list,
284 default=list,
281 )
285 )
282 coreconfigitem('email', 'from',
286 coreconfigitem('email', 'from',
283 default=None,
287 default=None,
284 )
288 )
285 coreconfigitem('email', 'method',
289 coreconfigitem('email', 'method',
286 default='smtp',
290 default='smtp',
287 )
291 )
288 coreconfigitem('email', 'reply-to',
292 coreconfigitem('email', 'reply-to',
289 default=None,
293 default=None,
290 )
294 )
291 coreconfigitem('experimental', 'allowdivergence',
295 coreconfigitem('experimental', 'allowdivergence',
292 default=False,
296 default=False,
293 )
297 )
294 coreconfigitem('experimental', 'archivemetatemplate',
298 coreconfigitem('experimental', 'archivemetatemplate',
295 default=dynamicdefault,
299 default=dynamicdefault,
296 )
300 )
297 coreconfigitem('experimental', 'bundle-phases',
301 coreconfigitem('experimental', 'bundle-phases',
298 default=False,
302 default=False,
299 )
303 )
300 coreconfigitem('experimental', 'bundle2-advertise',
304 coreconfigitem('experimental', 'bundle2-advertise',
301 default=True,
305 default=True,
302 )
306 )
303 coreconfigitem('experimental', 'bundle2-output-capture',
307 coreconfigitem('experimental', 'bundle2-output-capture',
304 default=False,
308 default=False,
305 )
309 )
306 coreconfigitem('experimental', 'bundle2.pushback',
310 coreconfigitem('experimental', 'bundle2.pushback',
307 default=False,
311 default=False,
308 )
312 )
309 coreconfigitem('experimental', 'bundle2lazylocking',
313 coreconfigitem('experimental', 'bundle2lazylocking',
310 default=False,
314 default=False,
311 )
315 )
312 coreconfigitem('experimental', 'bundlecomplevel',
316 coreconfigitem('experimental', 'bundlecomplevel',
313 default=None,
317 default=None,
314 )
318 )
315 coreconfigitem('experimental', 'changegroup3',
319 coreconfigitem('experimental', 'changegroup3',
316 default=False,
320 default=False,
317 )
321 )
318 coreconfigitem('experimental', 'clientcompressionengines',
322 coreconfigitem('experimental', 'clientcompressionengines',
319 default=list,
323 default=list,
320 )
324 )
321 coreconfigitem('experimental', 'copytrace',
325 coreconfigitem('experimental', 'copytrace',
322 default='on',
326 default='on',
323 )
327 )
324 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
328 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
325 default=100,
329 default=100,
326 )
330 )
327 coreconfigitem('experimental', 'crecordtest',
331 coreconfigitem('experimental', 'crecordtest',
328 default=None,
332 default=None,
329 )
333 )
330 coreconfigitem('experimental', 'editortmpinhg',
334 coreconfigitem('experimental', 'editortmpinhg',
331 default=False,
335 default=False,
332 )
336 )
333 coreconfigitem('experimental', 'maxdeltachainspan',
337 coreconfigitem('experimental', 'maxdeltachainspan',
334 default=-1,
338 default=-1,
335 )
339 )
336 coreconfigitem('experimental', 'mmapindexthreshold',
340 coreconfigitem('experimental', 'mmapindexthreshold',
337 default=None,
341 default=None,
338 )
342 )
339 coreconfigitem('experimental', 'nonnormalparanoidcheck',
343 coreconfigitem('experimental', 'nonnormalparanoidcheck',
340 default=False,
344 default=False,
341 )
345 )
342 coreconfigitem('experimental', 'stabilization',
346 coreconfigitem('experimental', 'stabilization',
343 default=list,
347 default=list,
344 alias=[('experimental', 'evolution')],
348 alias=[('experimental', 'evolution')],
345 )
349 )
346 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
350 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
347 default=False,
351 default=False,
348 alias=[('experimental', 'evolution.bundle-obsmarker')],
352 alias=[('experimental', 'evolution.bundle-obsmarker')],
349 )
353 )
350 coreconfigitem('experimental', 'stabilization.track-operation',
354 coreconfigitem('experimental', 'stabilization.track-operation',
351 default=True,
355 default=True,
352 alias=[('experimental', 'evolution.track-operation')]
356 alias=[('experimental', 'evolution.track-operation')]
353 )
357 )
354 coreconfigitem('experimental', 'exportableenviron',
358 coreconfigitem('experimental', 'exportableenviron',
355 default=list,
359 default=list,
356 )
360 )
357 coreconfigitem('experimental', 'extendedheader.index',
361 coreconfigitem('experimental', 'extendedheader.index',
358 default=None,
362 default=None,
359 )
363 )
360 coreconfigitem('experimental', 'extendedheader.similarity',
364 coreconfigitem('experimental', 'extendedheader.similarity',
361 default=False,
365 default=False,
362 )
366 )
363 coreconfigitem('experimental', 'format.compression',
367 coreconfigitem('experimental', 'format.compression',
364 default='zlib',
368 default='zlib',
365 )
369 )
366 coreconfigitem('experimental', 'graphshorten',
370 coreconfigitem('experimental', 'graphshorten',
367 default=False,
371 default=False,
368 )
372 )
369 coreconfigitem('experimental', 'graphstyle.parent',
373 coreconfigitem('experimental', 'graphstyle.parent',
370 default=dynamicdefault,
374 default=dynamicdefault,
371 )
375 )
372 coreconfigitem('experimental', 'graphstyle.missing',
376 coreconfigitem('experimental', 'graphstyle.missing',
373 default=dynamicdefault,
377 default=dynamicdefault,
374 )
378 )
375 coreconfigitem('experimental', 'graphstyle.grandparent',
379 coreconfigitem('experimental', 'graphstyle.grandparent',
376 default=dynamicdefault,
380 default=dynamicdefault,
377 )
381 )
378 coreconfigitem('experimental', 'hook-track-tags',
382 coreconfigitem('experimental', 'hook-track-tags',
379 default=False,
383 default=False,
380 )
384 )
381 coreconfigitem('experimental', 'httppostargs',
385 coreconfigitem('experimental', 'httppostargs',
382 default=False,
386 default=False,
383 )
387 )
384 coreconfigitem('experimental', 'manifestv2',
388 coreconfigitem('experimental', 'manifestv2',
385 default=False,
389 default=False,
386 )
390 )
387 coreconfigitem('experimental', 'mergedriver',
391 coreconfigitem('experimental', 'mergedriver',
388 default=None,
392 default=None,
389 )
393 )
390 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
394 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
391 default=False,
395 default=False,
392 )
396 )
393 coreconfigitem('experimental', 'rebase.multidest',
397 coreconfigitem('experimental', 'rebase.multidest',
394 default=False,
398 default=False,
395 )
399 )
396 coreconfigitem('experimental', 'revertalternateinteractivemode',
400 coreconfigitem('experimental', 'revertalternateinteractivemode',
397 default=True,
401 default=True,
398 )
402 )
399 coreconfigitem('experimental', 'revlogv2',
403 coreconfigitem('experimental', 'revlogv2',
400 default=None,
404 default=None,
401 )
405 )
402 coreconfigitem('experimental', 'spacemovesdown',
406 coreconfigitem('experimental', 'spacemovesdown',
403 default=False,
407 default=False,
404 )
408 )
405 coreconfigitem('experimental', 'treemanifest',
409 coreconfigitem('experimental', 'treemanifest',
406 default=False,
410 default=False,
407 )
411 )
408 coreconfigitem('experimental', 'updatecheck',
412 coreconfigitem('experimental', 'updatecheck',
409 default=None,
413 default=None,
410 )
414 )
411 coreconfigitem('format', 'aggressivemergedeltas',
415 coreconfigitem('format', 'aggressivemergedeltas',
412 default=False,
416 default=False,
413 )
417 )
414 coreconfigitem('format', 'chunkcachesize',
418 coreconfigitem('format', 'chunkcachesize',
415 default=None,
419 default=None,
416 )
420 )
417 coreconfigitem('format', 'dotencode',
421 coreconfigitem('format', 'dotencode',
418 default=True,
422 default=True,
419 )
423 )
420 coreconfigitem('format', 'generaldelta',
424 coreconfigitem('format', 'generaldelta',
421 default=False,
425 default=False,
422 )
426 )
423 coreconfigitem('format', 'manifestcachesize',
427 coreconfigitem('format', 'manifestcachesize',
424 default=None,
428 default=None,
425 )
429 )
426 coreconfigitem('format', 'maxchainlen',
430 coreconfigitem('format', 'maxchainlen',
427 default=None,
431 default=None,
428 )
432 )
429 coreconfigitem('format', 'obsstore-version',
433 coreconfigitem('format', 'obsstore-version',
430 default=None,
434 default=None,
431 )
435 )
432 coreconfigitem('format', 'usefncache',
436 coreconfigitem('format', 'usefncache',
433 default=True,
437 default=True,
434 )
438 )
435 coreconfigitem('format', 'usegeneraldelta',
439 coreconfigitem('format', 'usegeneraldelta',
436 default=True,
440 default=True,
437 )
441 )
438 coreconfigitem('format', 'usestore',
442 coreconfigitem('format', 'usestore',
439 default=True,
443 default=True,
440 )
444 )
441 coreconfigitem('hostsecurity', 'ciphers',
445 coreconfigitem('hostsecurity', 'ciphers',
442 default=None,
446 default=None,
443 )
447 )
444 coreconfigitem('hostsecurity', 'disabletls10warning',
448 coreconfigitem('hostsecurity', 'disabletls10warning',
445 default=False,
449 default=False,
446 )
450 )
447 coreconfigitem('http_proxy', 'always',
451 coreconfigitem('http_proxy', 'always',
448 default=False,
452 default=False,
449 )
453 )
450 coreconfigitem('http_proxy', 'host',
454 coreconfigitem('http_proxy', 'host',
451 default=None,
455 default=None,
452 )
456 )
453 coreconfigitem('http_proxy', 'no',
457 coreconfigitem('http_proxy', 'no',
454 default=list,
458 default=list,
455 )
459 )
456 coreconfigitem('http_proxy', 'passwd',
460 coreconfigitem('http_proxy', 'passwd',
457 default=None,
461 default=None,
458 )
462 )
459 coreconfigitem('http_proxy', 'user',
463 coreconfigitem('http_proxy', 'user',
460 default=None,
464 default=None,
461 )
465 )
462 coreconfigitem('logtoprocess', 'commandexception',
466 coreconfigitem('logtoprocess', 'commandexception',
463 default=None,
467 default=None,
464 )
468 )
465 coreconfigitem('logtoprocess', 'commandfinish',
469 coreconfigitem('logtoprocess', 'commandfinish',
466 default=None,
470 default=None,
467 )
471 )
468 coreconfigitem('logtoprocess', 'command',
472 coreconfigitem('logtoprocess', 'command',
469 default=None,
473 default=None,
470 )
474 )
471 coreconfigitem('logtoprocess', 'develwarn',
475 coreconfigitem('logtoprocess', 'develwarn',
472 default=None,
476 default=None,
473 )
477 )
474 coreconfigitem('logtoprocess', 'uiblocked',
478 coreconfigitem('logtoprocess', 'uiblocked',
475 default=None,
479 default=None,
476 )
480 )
477 coreconfigitem('merge', 'checkunknown',
481 coreconfigitem('merge', 'checkunknown',
478 default='abort',
482 default='abort',
479 )
483 )
480 coreconfigitem('merge', 'checkignored',
484 coreconfigitem('merge', 'checkignored',
481 default='abort',
485 default='abort',
482 )
486 )
483 coreconfigitem('merge', 'followcopies',
487 coreconfigitem('merge', 'followcopies',
484 default=True,
488 default=True,
485 )
489 )
486 coreconfigitem('merge', 'preferancestor',
490 coreconfigitem('merge', 'preferancestor',
487 default=lambda: ['*'],
491 default=lambda: ['*'],
488 )
492 )
489 coreconfigitem('pager', 'ignore',
493 coreconfigitem('pager', 'ignore',
490 default=list,
494 default=list,
491 )
495 )
492 coreconfigitem('pager', 'pager',
496 coreconfigitem('pager', 'pager',
493 default=dynamicdefault,
497 default=dynamicdefault,
494 )
498 )
495 coreconfigitem('patch', 'eol',
499 coreconfigitem('patch', 'eol',
496 default='strict',
500 default='strict',
497 )
501 )
498 coreconfigitem('patch', 'fuzz',
502 coreconfigitem('patch', 'fuzz',
499 default=2,
503 default=2,
500 )
504 )
501 coreconfigitem('paths', 'default',
505 coreconfigitem('paths', 'default',
502 default=None,
506 default=None,
503 )
507 )
504 coreconfigitem('paths', 'default-push',
508 coreconfigitem('paths', 'default-push',
505 default=None,
509 default=None,
506 )
510 )
507 coreconfigitem('phases', 'checksubrepos',
511 coreconfigitem('phases', 'checksubrepos',
508 default='follow',
512 default='follow',
509 )
513 )
510 coreconfigitem('phases', 'new-commit',
514 coreconfigitem('phases', 'new-commit',
511 default='draft',
515 default='draft',
512 )
516 )
513 coreconfigitem('phases', 'publish',
517 coreconfigitem('phases', 'publish',
514 default=True,
518 default=True,
515 )
519 )
516 coreconfigitem('profiling', 'enabled',
520 coreconfigitem('profiling', 'enabled',
517 default=False,
521 default=False,
518 )
522 )
519 coreconfigitem('profiling', 'format',
523 coreconfigitem('profiling', 'format',
520 default='text',
524 default='text',
521 )
525 )
522 coreconfigitem('profiling', 'freq',
526 coreconfigitem('profiling', 'freq',
523 default=1000,
527 default=1000,
524 )
528 )
525 coreconfigitem('profiling', 'limit',
529 coreconfigitem('profiling', 'limit',
526 default=30,
530 default=30,
527 )
531 )
528 coreconfigitem('profiling', 'nested',
532 coreconfigitem('profiling', 'nested',
529 default=0,
533 default=0,
530 )
534 )
531 coreconfigitem('profiling', 'output',
535 coreconfigitem('profiling', 'output',
532 default=None,
536 default=None,
533 )
537 )
534 coreconfigitem('profiling', 'showmax',
538 coreconfigitem('profiling', 'showmax',
535 default=0.999,
539 default=0.999,
536 )
540 )
537 coreconfigitem('profiling', 'showmin',
541 coreconfigitem('profiling', 'showmin',
538 default=dynamicdefault,
542 default=dynamicdefault,
539 )
543 )
540 coreconfigitem('profiling', 'sort',
544 coreconfigitem('profiling', 'sort',
541 default='inlinetime',
545 default='inlinetime',
542 )
546 )
543 coreconfigitem('profiling', 'statformat',
547 coreconfigitem('profiling', 'statformat',
544 default='hotpath',
548 default='hotpath',
545 )
549 )
546 coreconfigitem('profiling', 'type',
550 coreconfigitem('profiling', 'type',
547 default='stat',
551 default='stat',
548 )
552 )
549 coreconfigitem('progress', 'assume-tty',
553 coreconfigitem('progress', 'assume-tty',
550 default=False,
554 default=False,
551 )
555 )
552 coreconfigitem('progress', 'changedelay',
556 coreconfigitem('progress', 'changedelay',
553 default=1,
557 default=1,
554 )
558 )
555 coreconfigitem('progress', 'clear-complete',
559 coreconfigitem('progress', 'clear-complete',
556 default=True,
560 default=True,
557 )
561 )
558 coreconfigitem('progress', 'debug',
562 coreconfigitem('progress', 'debug',
559 default=False,
563 default=False,
560 )
564 )
561 coreconfigitem('progress', 'delay',
565 coreconfigitem('progress', 'delay',
562 default=3,
566 default=3,
563 )
567 )
564 coreconfigitem('progress', 'disable',
568 coreconfigitem('progress', 'disable',
565 default=False,
569 default=False,
566 )
570 )
567 coreconfigitem('progress', 'estimateinterval',
571 coreconfigitem('progress', 'estimateinterval',
568 default=60.0,
572 default=60.0,
569 )
573 )
570 coreconfigitem('progress', 'refresh',
574 coreconfigitem('progress', 'refresh',
571 default=0.1,
575 default=0.1,
572 )
576 )
573 coreconfigitem('progress', 'width',
577 coreconfigitem('progress', 'width',
574 default=dynamicdefault,
578 default=dynamicdefault,
575 )
579 )
576 coreconfigitem('push', 'pushvars.server',
580 coreconfigitem('push', 'pushvars.server',
577 default=False,
581 default=False,
578 )
582 )
579 coreconfigitem('server', 'bundle1',
583 coreconfigitem('server', 'bundle1',
580 default=True,
584 default=True,
581 )
585 )
582 coreconfigitem('server', 'bundle1gd',
586 coreconfigitem('server', 'bundle1gd',
583 default=None,
587 default=None,
584 )
588 )
585 coreconfigitem('server', 'bundle1.pull',
589 coreconfigitem('server', 'bundle1.pull',
586 default=None,
590 default=None,
587 )
591 )
588 coreconfigitem('server', 'bundle1gd.pull',
592 coreconfigitem('server', 'bundle1gd.pull',
589 default=None,
593 default=None,
590 )
594 )
591 coreconfigitem('server', 'bundle1.push',
595 coreconfigitem('server', 'bundle1.push',
592 default=None,
596 default=None,
593 )
597 )
594 coreconfigitem('server', 'bundle1gd.push',
598 coreconfigitem('server', 'bundle1gd.push',
595 default=None,
599 default=None,
596 )
600 )
597 coreconfigitem('server', 'compressionengines',
601 coreconfigitem('server', 'compressionengines',
598 default=list,
602 default=list,
599 )
603 )
600 coreconfigitem('server', 'concurrent-push-mode',
604 coreconfigitem('server', 'concurrent-push-mode',
601 default='strict',
605 default='strict',
602 )
606 )
603 coreconfigitem('server', 'disablefullbundle',
607 coreconfigitem('server', 'disablefullbundle',
604 default=False,
608 default=False,
605 )
609 )
606 coreconfigitem('server', 'maxhttpheaderlen',
610 coreconfigitem('server', 'maxhttpheaderlen',
607 default=1024,
611 default=1024,
608 )
612 )
609 coreconfigitem('server', 'preferuncompressed',
613 coreconfigitem('server', 'preferuncompressed',
610 default=False,
614 default=False,
611 )
615 )
612 coreconfigitem('server', 'uncompressed',
616 coreconfigitem('server', 'uncompressed',
613 default=True,
617 default=True,
614 )
618 )
615 coreconfigitem('server', 'uncompressedallowsecret',
619 coreconfigitem('server', 'uncompressedallowsecret',
616 default=False,
620 default=False,
617 )
621 )
618 coreconfigitem('server', 'validate',
622 coreconfigitem('server', 'validate',
619 default=False,
623 default=False,
620 )
624 )
621 coreconfigitem('server', 'zliblevel',
625 coreconfigitem('server', 'zliblevel',
622 default=-1,
626 default=-1,
623 )
627 )
624 coreconfigitem('smtp', 'host',
628 coreconfigitem('smtp', 'host',
625 default=None,
629 default=None,
626 )
630 )
627 coreconfigitem('smtp', 'local_hostname',
631 coreconfigitem('smtp', 'local_hostname',
628 default=None,
632 default=None,
629 )
633 )
630 coreconfigitem('smtp', 'password',
634 coreconfigitem('smtp', 'password',
631 default=None,
635 default=None,
632 )
636 )
633 coreconfigitem('smtp', 'port',
637 coreconfigitem('smtp', 'port',
634 default=dynamicdefault,
638 default=dynamicdefault,
635 )
639 )
636 coreconfigitem('smtp', 'tls',
640 coreconfigitem('smtp', 'tls',
637 default='none',
641 default='none',
638 )
642 )
639 coreconfigitem('smtp', 'username',
643 coreconfigitem('smtp', 'username',
640 default=None,
644 default=None,
641 )
645 )
642 coreconfigitem('sparse', 'missingwarning',
646 coreconfigitem('sparse', 'missingwarning',
643 default=True,
647 default=True,
644 )
648 )
645 coreconfigitem('trusted', 'groups',
649 coreconfigitem('trusted', 'groups',
646 default=list,
650 default=list,
647 )
651 )
648 coreconfigitem('trusted', 'users',
652 coreconfigitem('trusted', 'users',
649 default=list,
653 default=list,
650 )
654 )
651 coreconfigitem('ui', '_usedassubrepo',
655 coreconfigitem('ui', '_usedassubrepo',
652 default=False,
656 default=False,
653 )
657 )
654 coreconfigitem('ui', 'allowemptycommit',
658 coreconfigitem('ui', 'allowemptycommit',
655 default=False,
659 default=False,
656 )
660 )
657 coreconfigitem('ui', 'archivemeta',
661 coreconfigitem('ui', 'archivemeta',
658 default=True,
662 default=True,
659 )
663 )
660 coreconfigitem('ui', 'askusername',
664 coreconfigitem('ui', 'askusername',
661 default=False,
665 default=False,
662 )
666 )
663 coreconfigitem('ui', 'clonebundlefallback',
667 coreconfigitem('ui', 'clonebundlefallback',
664 default=False,
668 default=False,
665 )
669 )
666 coreconfigitem('ui', 'clonebundleprefers',
670 coreconfigitem('ui', 'clonebundleprefers',
667 default=list,
671 default=list,
668 )
672 )
669 coreconfigitem('ui', 'clonebundles',
673 coreconfigitem('ui', 'clonebundles',
670 default=True,
674 default=True,
671 )
675 )
672 coreconfigitem('ui', 'color',
676 coreconfigitem('ui', 'color',
673 default='auto',
677 default='auto',
674 )
678 )
675 coreconfigitem('ui', 'commitsubrepos',
679 coreconfigitem('ui', 'commitsubrepos',
676 default=False,
680 default=False,
677 )
681 )
678 coreconfigitem('ui', 'debug',
682 coreconfigitem('ui', 'debug',
679 default=False,
683 default=False,
680 )
684 )
681 coreconfigitem('ui', 'debugger',
685 coreconfigitem('ui', 'debugger',
682 default=None,
686 default=None,
683 )
687 )
684 coreconfigitem('ui', 'fallbackencoding',
688 coreconfigitem('ui', 'fallbackencoding',
685 default=None,
689 default=None,
686 )
690 )
687 coreconfigitem('ui', 'forcecwd',
691 coreconfigitem('ui', 'forcecwd',
688 default=None,
692 default=None,
689 )
693 )
690 coreconfigitem('ui', 'forcemerge',
694 coreconfigitem('ui', 'forcemerge',
691 default=None,
695 default=None,
692 )
696 )
693 coreconfigitem('ui', 'formatdebug',
697 coreconfigitem('ui', 'formatdebug',
694 default=False,
698 default=False,
695 )
699 )
696 coreconfigitem('ui', 'formatjson',
700 coreconfigitem('ui', 'formatjson',
697 default=False,
701 default=False,
698 )
702 )
699 coreconfigitem('ui', 'formatted',
703 coreconfigitem('ui', 'formatted',
700 default=None,
704 default=None,
701 )
705 )
702 coreconfigitem('ui', 'graphnodetemplate',
706 coreconfigitem('ui', 'graphnodetemplate',
703 default=None,
707 default=None,
704 )
708 )
705 coreconfigitem('ui', 'http2debuglevel',
709 coreconfigitem('ui', 'http2debuglevel',
706 default=None,
710 default=None,
707 )
711 )
708 coreconfigitem('ui', 'interactive',
712 coreconfigitem('ui', 'interactive',
709 default=None,
713 default=None,
710 )
714 )
711 coreconfigitem('ui', 'interface',
715 coreconfigitem('ui', 'interface',
712 default=None,
716 default=None,
713 )
717 )
714 coreconfigitem('ui', 'interface.chunkselector',
718 coreconfigitem('ui', 'interface.chunkselector',
715 default=None,
719 default=None,
716 )
720 )
717 coreconfigitem('ui', 'logblockedtimes',
721 coreconfigitem('ui', 'logblockedtimes',
718 default=False,
722 default=False,
719 )
723 )
720 coreconfigitem('ui', 'logtemplate',
724 coreconfigitem('ui', 'logtemplate',
721 default=None,
725 default=None,
722 )
726 )
723 coreconfigitem('ui', 'merge',
727 coreconfigitem('ui', 'merge',
724 default=None,
728 default=None,
725 )
729 )
726 coreconfigitem('ui', 'mergemarkers',
730 coreconfigitem('ui', 'mergemarkers',
727 default='basic',
731 default='basic',
728 )
732 )
729 coreconfigitem('ui', 'mergemarkertemplate',
733 coreconfigitem('ui', 'mergemarkertemplate',
730 default=('{node|short} '
734 default=('{node|short} '
731 '{ifeq(tags, "tip", "", '
735 '{ifeq(tags, "tip", "", '
732 'ifeq(tags, "", "", "{tags} "))}'
736 'ifeq(tags, "", "", "{tags} "))}'
733 '{if(bookmarks, "{bookmarks} ")}'
737 '{if(bookmarks, "{bookmarks} ")}'
734 '{ifeq(branch, "default", "", "{branch} ")}'
738 '{ifeq(branch, "default", "", "{branch} ")}'
735 '- {author|user}: {desc|firstline}')
739 '- {author|user}: {desc|firstline}')
736 )
740 )
737 coreconfigitem('ui', 'nontty',
741 coreconfigitem('ui', 'nontty',
738 default=False,
742 default=False,
739 )
743 )
740 coreconfigitem('ui', 'origbackuppath',
744 coreconfigitem('ui', 'origbackuppath',
741 default=None,
745 default=None,
742 )
746 )
743 coreconfigitem('ui', 'paginate',
747 coreconfigitem('ui', 'paginate',
744 default=True,
748 default=True,
745 )
749 )
746 coreconfigitem('ui', 'patch',
750 coreconfigitem('ui', 'patch',
747 default=None,
751 default=None,
748 )
752 )
749 coreconfigitem('ui', 'portablefilenames',
753 coreconfigitem('ui', 'portablefilenames',
750 default='warn',
754 default='warn',
751 )
755 )
752 coreconfigitem('ui', 'promptecho',
756 coreconfigitem('ui', 'promptecho',
753 default=False,
757 default=False,
754 )
758 )
755 coreconfigitem('ui', 'quiet',
759 coreconfigitem('ui', 'quiet',
756 default=False,
760 default=False,
757 )
761 )
758 coreconfigitem('ui', 'quietbookmarkmove',
762 coreconfigitem('ui', 'quietbookmarkmove',
759 default=False,
763 default=False,
760 )
764 )
761 coreconfigitem('ui', 'remotecmd',
765 coreconfigitem('ui', 'remotecmd',
762 default='hg',
766 default='hg',
763 )
767 )
764 coreconfigitem('ui', 'report_untrusted',
768 coreconfigitem('ui', 'report_untrusted',
765 default=True,
769 default=True,
766 )
770 )
767 coreconfigitem('ui', 'rollback',
771 coreconfigitem('ui', 'rollback',
768 default=True,
772 default=True,
769 )
773 )
770 coreconfigitem('ui', 'slash',
774 coreconfigitem('ui', 'slash',
771 default=False,
775 default=False,
772 )
776 )
773 coreconfigitem('ui', 'ssh',
777 coreconfigitem('ui', 'ssh',
774 default='ssh',
778 default='ssh',
775 )
779 )
776 coreconfigitem('ui', 'statuscopies',
780 coreconfigitem('ui', 'statuscopies',
777 default=False,
781 default=False,
778 )
782 )
779 coreconfigitem('ui', 'strict',
783 coreconfigitem('ui', 'strict',
780 default=False,
784 default=False,
781 )
785 )
782 coreconfigitem('ui', 'style',
786 coreconfigitem('ui', 'style',
783 default='',
787 default='',
784 )
788 )
785 coreconfigitem('ui', 'supportcontact',
789 coreconfigitem('ui', 'supportcontact',
786 default=None,
790 default=None,
787 )
791 )
788 coreconfigitem('ui', 'textwidth',
792 coreconfigitem('ui', 'textwidth',
789 default=78,
793 default=78,
790 )
794 )
791 coreconfigitem('ui', 'timeout',
795 coreconfigitem('ui', 'timeout',
792 default='600',
796 default='600',
793 )
797 )
794 coreconfigitem('ui', 'traceback',
798 coreconfigitem('ui', 'traceback',
795 default=False,
799 default=False,
796 )
800 )
797 coreconfigitem('ui', 'tweakdefaults',
801 coreconfigitem('ui', 'tweakdefaults',
798 default=False,
802 default=False,
799 )
803 )
800 coreconfigitem('ui', 'usehttp2',
804 coreconfigitem('ui', 'usehttp2',
801 default=False,
805 default=False,
802 )
806 )
803 coreconfigitem('ui', 'username',
807 coreconfigitem('ui', 'username',
804 alias=[('ui', 'user')]
808 alias=[('ui', 'user')]
805 )
809 )
806 coreconfigitem('ui', 'verbose',
810 coreconfigitem('ui', 'verbose',
807 default=False,
811 default=False,
808 )
812 )
809 coreconfigitem('verify', 'skipflags',
813 coreconfigitem('verify', 'skipflags',
810 default=None,
814 default=None,
811 )
815 )
812 coreconfigitem('web', 'allowbz2',
816 coreconfigitem('web', 'allowbz2',
813 default=False,
817 default=False,
814 )
818 )
815 coreconfigitem('web', 'allowgz',
819 coreconfigitem('web', 'allowgz',
816 default=False,
820 default=False,
817 )
821 )
818 coreconfigitem('web', 'allowpull',
822 coreconfigitem('web', 'allowpull',
819 default=True,
823 default=True,
820 )
824 )
821 coreconfigitem('web', 'allow_push',
825 coreconfigitem('web', 'allow_push',
822 default=list,
826 default=list,
823 )
827 )
824 coreconfigitem('web', 'allowzip',
828 coreconfigitem('web', 'allowzip',
825 default=False,
829 default=False,
826 )
830 )
827 coreconfigitem('web', 'cache',
831 coreconfigitem('web', 'cache',
828 default=True,
832 default=True,
829 )
833 )
830 coreconfigitem('web', 'contact',
834 coreconfigitem('web', 'contact',
831 default=None,
835 default=None,
832 )
836 )
833 coreconfigitem('web', 'deny_push',
837 coreconfigitem('web', 'deny_push',
834 default=list,
838 default=list,
835 )
839 )
836 coreconfigitem('web', 'guessmime',
840 coreconfigitem('web', 'guessmime',
837 default=False,
841 default=False,
838 )
842 )
839 coreconfigitem('web', 'hidden',
843 coreconfigitem('web', 'hidden',
840 default=False,
844 default=False,
841 )
845 )
842 coreconfigitem('web', 'labels',
846 coreconfigitem('web', 'labels',
843 default=list,
847 default=list,
844 )
848 )
845 coreconfigitem('web', 'logoimg',
849 coreconfigitem('web', 'logoimg',
846 default='hglogo.png',
850 default='hglogo.png',
847 )
851 )
848 coreconfigitem('web', 'logourl',
852 coreconfigitem('web', 'logourl',
849 default='https://mercurial-scm.org/',
853 default='https://mercurial-scm.org/',
850 )
854 )
851 coreconfigitem('web', 'accesslog',
855 coreconfigitem('web', 'accesslog',
852 default='-',
856 default='-',
853 )
857 )
854 coreconfigitem('web', 'address',
858 coreconfigitem('web', 'address',
855 default='',
859 default='',
856 )
860 )
857 coreconfigitem('web', 'allow_archive',
861 coreconfigitem('web', 'allow_archive',
858 default=list,
862 default=list,
859 )
863 )
860 coreconfigitem('web', 'allow_read',
864 coreconfigitem('web', 'allow_read',
861 default=list,
865 default=list,
862 )
866 )
863 coreconfigitem('web', 'baseurl',
867 coreconfigitem('web', 'baseurl',
864 default=None,
868 default=None,
865 )
869 )
866 coreconfigitem('web', 'cacerts',
870 coreconfigitem('web', 'cacerts',
867 default=None,
871 default=None,
868 )
872 )
869 coreconfigitem('web', 'certificate',
873 coreconfigitem('web', 'certificate',
870 default=None,
874 default=None,
871 )
875 )
872 coreconfigitem('web', 'collapse',
876 coreconfigitem('web', 'collapse',
873 default=False,
877 default=False,
874 )
878 )
875 coreconfigitem('web', 'csp',
879 coreconfigitem('web', 'csp',
876 default=None,
880 default=None,
877 )
881 )
878 coreconfigitem('web', 'deny_read',
882 coreconfigitem('web', 'deny_read',
879 default=list,
883 default=list,
880 )
884 )
881 coreconfigitem('web', 'descend',
885 coreconfigitem('web', 'descend',
882 default=True,
886 default=True,
883 )
887 )
884 coreconfigitem('web', 'description',
888 coreconfigitem('web', 'description',
885 default="",
889 default="",
886 )
890 )
887 coreconfigitem('web', 'encoding',
891 coreconfigitem('web', 'encoding',
888 default=lambda: encoding.encoding,
892 default=lambda: encoding.encoding,
889 )
893 )
890 coreconfigitem('web', 'errorlog',
894 coreconfigitem('web', 'errorlog',
891 default='-',
895 default='-',
892 )
896 )
893 coreconfigitem('web', 'ipv6',
897 coreconfigitem('web', 'ipv6',
894 default=False,
898 default=False,
895 )
899 )
896 coreconfigitem('web', 'maxchanges',
900 coreconfigitem('web', 'maxchanges',
897 default=10,
901 default=10,
898 )
902 )
899 coreconfigitem('web', 'maxfiles',
903 coreconfigitem('web', 'maxfiles',
900 default=10,
904 default=10,
901 )
905 )
902 coreconfigitem('web', 'maxshortchanges',
906 coreconfigitem('web', 'maxshortchanges',
903 default=60,
907 default=60,
904 )
908 )
905 coreconfigitem('web', 'motd',
909 coreconfigitem('web', 'motd',
906 default='',
910 default='',
907 )
911 )
908 coreconfigitem('web', 'name',
912 coreconfigitem('web', 'name',
909 default=dynamicdefault,
913 default=dynamicdefault,
910 )
914 )
911 coreconfigitem('web', 'port',
915 coreconfigitem('web', 'port',
912 default=8000,
916 default=8000,
913 )
917 )
914 coreconfigitem('web', 'prefix',
918 coreconfigitem('web', 'prefix',
915 default='',
919 default='',
916 )
920 )
917 coreconfigitem('web', 'push_ssl',
921 coreconfigitem('web', 'push_ssl',
918 default=True,
922 default=True,
919 )
923 )
920 coreconfigitem('web', 'refreshinterval',
924 coreconfigitem('web', 'refreshinterval',
921 default=20,
925 default=20,
922 )
926 )
923 coreconfigitem('web', 'stripes',
927 coreconfigitem('web', 'stripes',
924 default=1,
928 default=1,
925 )
929 )
926 coreconfigitem('web', 'style',
930 coreconfigitem('web', 'style',
927 default='paper',
931 default='paper',
928 )
932 )
929 coreconfigitem('web', 'templates',
933 coreconfigitem('web', 'templates',
930 default=None,
934 default=None,
931 )
935 )
932 coreconfigitem('web', 'view',
936 coreconfigitem('web', 'view',
933 default='served',
937 default='served',
934 )
938 )
935 coreconfigitem('worker', 'backgroundclose',
939 coreconfigitem('worker', 'backgroundclose',
936 default=dynamicdefault,
940 default=dynamicdefault,
937 )
941 )
938 # Windows defaults to a limit of 512 open files. A buffer of 128
942 # Windows defaults to a limit of 512 open files. A buffer of 128
939 # should give us enough headway.
943 # should give us enough headway.
940 coreconfigitem('worker', 'backgroundclosemaxqueue',
944 coreconfigitem('worker', 'backgroundclosemaxqueue',
941 default=384,
945 default=384,
942 )
946 )
943 coreconfigitem('worker', 'backgroundcloseminfilecount',
947 coreconfigitem('worker', 'backgroundcloseminfilecount',
944 default=2048,
948 default=2048,
945 )
949 )
946 coreconfigitem('worker', 'backgroundclosethreadcount',
950 coreconfigitem('worker', 'backgroundclosethreadcount',
947 default=4,
951 default=4,
948 )
952 )
949 coreconfigitem('worker', 'numcpus',
953 coreconfigitem('worker', 'numcpus',
950 default=None,
954 default=None,
951 )
955 )
General Comments 0
You need to be logged in to leave comments. Login now