##// END OF EJS Templates
configitems: fixup default value of annotate config option...
Boris Feld -
r34739:1c9128b7 default
parent child Browse files
Show More
@@ -1,979 +1,979 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=False,
108 )
108 )
109 coreconfigitem('annotate', 'showfunc',
109 coreconfigitem('annotate', 'showfunc',
110 default=None,
110 default=False,
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=False,
117 )
117 )
118 coreconfigitem('annotate', 'ignorews',
118 coreconfigitem('annotate', 'ignorews',
119 default=None,
119 default=False,
120 )
120 )
121 coreconfigitem('annotate', 'ignorewsamount',
121 coreconfigitem('annotate', 'ignorewsamount',
122 default=None,
122 default=False,
123 )
123 )
124 coreconfigitem('annotate', 'ignoreblanklines',
124 coreconfigitem('annotate', 'ignoreblanklines',
125 default=None,
125 default=False,
126 )
126 )
127 coreconfigitem('annotate', 'ignorewseol',
127 coreconfigitem('annotate', 'ignorewseol',
128 default=None,
128 default=False,
129 )
129 )
130 coreconfigitem('annotate', 'nobinary',
130 coreconfigitem('annotate', 'nobinary',
131 default=None,
131 default=False,
132 )
132 )
133 coreconfigitem('annotate', 'noprefix',
133 coreconfigitem('annotate', 'noprefix',
134 default=None,
134 default=False,
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.check',
182 coreconfigitem('commands', 'update.check',
183 default=None,
183 default=None,
184 )
184 )
185 coreconfigitem('commands', 'update.requiredest',
185 coreconfigitem('commands', 'update.requiredest',
186 default=False,
186 default=False,
187 )
187 )
188 coreconfigitem('committemplate', '.*',
188 coreconfigitem('committemplate', '.*',
189 default=None,
189 default=None,
190 generic=True,
190 generic=True,
191 )
191 )
192 coreconfigitem('debug', 'dirstate.delaywrite',
192 coreconfigitem('debug', 'dirstate.delaywrite',
193 default=0,
193 default=0,
194 )
194 )
195 coreconfigitem('defaults', '.*',
195 coreconfigitem('defaults', '.*',
196 default=None,
196 default=None,
197 generic=True,
197 generic=True,
198 )
198 )
199 coreconfigitem('devel', 'all-warnings',
199 coreconfigitem('devel', 'all-warnings',
200 default=False,
200 default=False,
201 )
201 )
202 coreconfigitem('devel', 'bundle2.debug',
202 coreconfigitem('devel', 'bundle2.debug',
203 default=False,
203 default=False,
204 )
204 )
205 coreconfigitem('devel', 'cache-vfs',
205 coreconfigitem('devel', 'cache-vfs',
206 default=None,
206 default=None,
207 )
207 )
208 coreconfigitem('devel', 'check-locks',
208 coreconfigitem('devel', 'check-locks',
209 default=False,
209 default=False,
210 )
210 )
211 coreconfigitem('devel', 'check-relroot',
211 coreconfigitem('devel', 'check-relroot',
212 default=False,
212 default=False,
213 )
213 )
214 coreconfigitem('devel', 'default-date',
214 coreconfigitem('devel', 'default-date',
215 default=None,
215 default=None,
216 )
216 )
217 coreconfigitem('devel', 'deprec-warn',
217 coreconfigitem('devel', 'deprec-warn',
218 default=False,
218 default=False,
219 )
219 )
220 coreconfigitem('devel', 'disableloaddefaultcerts',
220 coreconfigitem('devel', 'disableloaddefaultcerts',
221 default=False,
221 default=False,
222 )
222 )
223 coreconfigitem('devel', 'warn-empty-changegroup',
223 coreconfigitem('devel', 'warn-empty-changegroup',
224 default=False,
224 default=False,
225 )
225 )
226 coreconfigitem('devel', 'legacy.exchange',
226 coreconfigitem('devel', 'legacy.exchange',
227 default=list,
227 default=list,
228 )
228 )
229 coreconfigitem('devel', 'servercafile',
229 coreconfigitem('devel', 'servercafile',
230 default='',
230 default='',
231 )
231 )
232 coreconfigitem('devel', 'serverexactprotocol',
232 coreconfigitem('devel', 'serverexactprotocol',
233 default='',
233 default='',
234 )
234 )
235 coreconfigitem('devel', 'serverrequirecert',
235 coreconfigitem('devel', 'serverrequirecert',
236 default=False,
236 default=False,
237 )
237 )
238 coreconfigitem('devel', 'strip-obsmarkers',
238 coreconfigitem('devel', 'strip-obsmarkers',
239 default=True,
239 default=True,
240 )
240 )
241 coreconfigitem('devel', 'warn-config',
241 coreconfigitem('devel', 'warn-config',
242 default=None,
242 default=None,
243 )
243 )
244 coreconfigitem('devel', 'warn-config-default',
244 coreconfigitem('devel', 'warn-config-default',
245 default=None,
245 default=None,
246 )
246 )
247 coreconfigitem('devel', 'user.obsmarker',
247 coreconfigitem('devel', 'user.obsmarker',
248 default=None,
248 default=None,
249 )
249 )
250 coreconfigitem('diff', 'nodates',
250 coreconfigitem('diff', 'nodates',
251 default=False,
251 default=False,
252 )
252 )
253 coreconfigitem('diff', 'showfunc',
253 coreconfigitem('diff', 'showfunc',
254 default=False,
254 default=False,
255 )
255 )
256 coreconfigitem('diff', 'unified',
256 coreconfigitem('diff', 'unified',
257 default=None,
257 default=None,
258 )
258 )
259 coreconfigitem('diff', 'git',
259 coreconfigitem('diff', 'git',
260 default=False,
260 default=False,
261 )
261 )
262 coreconfigitem('diff', 'ignorews',
262 coreconfigitem('diff', 'ignorews',
263 default=False,
263 default=False,
264 )
264 )
265 coreconfigitem('diff', 'ignorewsamount',
265 coreconfigitem('diff', 'ignorewsamount',
266 default=False,
266 default=False,
267 )
267 )
268 coreconfigitem('diff', 'ignoreblanklines',
268 coreconfigitem('diff', 'ignoreblanklines',
269 default=False,
269 default=False,
270 )
270 )
271 coreconfigitem('diff', 'ignorewseol',
271 coreconfigitem('diff', 'ignorewseol',
272 default=False,
272 default=False,
273 )
273 )
274 coreconfigitem('diff', 'nobinary',
274 coreconfigitem('diff', 'nobinary',
275 default=False,
275 default=False,
276 )
276 )
277 coreconfigitem('diff', 'noprefix',
277 coreconfigitem('diff', 'noprefix',
278 default=False,
278 default=False,
279 )
279 )
280 coreconfigitem('email', 'bcc',
280 coreconfigitem('email', 'bcc',
281 default=None,
281 default=None,
282 )
282 )
283 coreconfigitem('email', 'cc',
283 coreconfigitem('email', 'cc',
284 default=None,
284 default=None,
285 )
285 )
286 coreconfigitem('email', 'charsets',
286 coreconfigitem('email', 'charsets',
287 default=list,
287 default=list,
288 )
288 )
289 coreconfigitem('email', 'from',
289 coreconfigitem('email', 'from',
290 default=None,
290 default=None,
291 )
291 )
292 coreconfigitem('email', 'method',
292 coreconfigitem('email', 'method',
293 default='smtp',
293 default='smtp',
294 )
294 )
295 coreconfigitem('email', 'reply-to',
295 coreconfigitem('email', 'reply-to',
296 default=None,
296 default=None,
297 )
297 )
298 coreconfigitem('experimental', 'allowdivergence',
298 coreconfigitem('experimental', 'allowdivergence',
299 default=False,
299 default=False,
300 )
300 )
301 coreconfigitem('experimental', 'archivemetatemplate',
301 coreconfigitem('experimental', 'archivemetatemplate',
302 default=dynamicdefault,
302 default=dynamicdefault,
303 )
303 )
304 coreconfigitem('experimental', 'bundle-phases',
304 coreconfigitem('experimental', 'bundle-phases',
305 default=False,
305 default=False,
306 )
306 )
307 coreconfigitem('experimental', 'bundle2-advertise',
307 coreconfigitem('experimental', 'bundle2-advertise',
308 default=True,
308 default=True,
309 )
309 )
310 coreconfigitem('experimental', 'bundle2-output-capture',
310 coreconfigitem('experimental', 'bundle2-output-capture',
311 default=False,
311 default=False,
312 )
312 )
313 coreconfigitem('experimental', 'bundle2.pushback',
313 coreconfigitem('experimental', 'bundle2.pushback',
314 default=False,
314 default=False,
315 )
315 )
316 coreconfigitem('experimental', 'bundle2lazylocking',
316 coreconfigitem('experimental', 'bundle2lazylocking',
317 default=False,
317 default=False,
318 )
318 )
319 coreconfigitem('experimental', 'bundlecomplevel',
319 coreconfigitem('experimental', 'bundlecomplevel',
320 default=None,
320 default=None,
321 )
321 )
322 coreconfigitem('experimental', 'changegroup3',
322 coreconfigitem('experimental', 'changegroup3',
323 default=False,
323 default=False,
324 )
324 )
325 coreconfigitem('experimental', 'clientcompressionengines',
325 coreconfigitem('experimental', 'clientcompressionengines',
326 default=list,
326 default=list,
327 )
327 )
328 coreconfigitem('experimental', 'copytrace',
328 coreconfigitem('experimental', 'copytrace',
329 default='on',
329 default='on',
330 )
330 )
331 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
331 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
332 default=100,
332 default=100,
333 )
333 )
334 coreconfigitem('experimental', 'crecordtest',
334 coreconfigitem('experimental', 'crecordtest',
335 default=None,
335 default=None,
336 )
336 )
337 coreconfigitem('experimental', 'editortmpinhg',
337 coreconfigitem('experimental', 'editortmpinhg',
338 default=False,
338 default=False,
339 )
339 )
340 coreconfigitem('experimental', 'maxdeltachainspan',
340 coreconfigitem('experimental', 'maxdeltachainspan',
341 default=-1,
341 default=-1,
342 )
342 )
343 coreconfigitem('experimental', 'mmapindexthreshold',
343 coreconfigitem('experimental', 'mmapindexthreshold',
344 default=None,
344 default=None,
345 )
345 )
346 coreconfigitem('experimental', 'nonnormalparanoidcheck',
346 coreconfigitem('experimental', 'nonnormalparanoidcheck',
347 default=False,
347 default=False,
348 )
348 )
349 coreconfigitem('experimental', 'stabilization',
349 coreconfigitem('experimental', 'stabilization',
350 default=list,
350 default=list,
351 alias=[('experimental', 'evolution')],
351 alias=[('experimental', 'evolution')],
352 )
352 )
353 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
353 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
354 default=False,
354 default=False,
355 alias=[('experimental', 'evolution.bundle-obsmarker')],
355 alias=[('experimental', 'evolution.bundle-obsmarker')],
356 )
356 )
357 coreconfigitem('experimental', 'stabilization.track-operation',
357 coreconfigitem('experimental', 'stabilization.track-operation',
358 default=True,
358 default=True,
359 alias=[('experimental', 'evolution.track-operation')]
359 alias=[('experimental', 'evolution.track-operation')]
360 )
360 )
361 coreconfigitem('experimental', 'exportableenviron',
361 coreconfigitem('experimental', 'exportableenviron',
362 default=list,
362 default=list,
363 )
363 )
364 coreconfigitem('experimental', 'extendedheader.index',
364 coreconfigitem('experimental', 'extendedheader.index',
365 default=None,
365 default=None,
366 )
366 )
367 coreconfigitem('experimental', 'extendedheader.similarity',
367 coreconfigitem('experimental', 'extendedheader.similarity',
368 default=False,
368 default=False,
369 )
369 )
370 coreconfigitem('experimental', 'format.compression',
370 coreconfigitem('experimental', 'format.compression',
371 default='zlib',
371 default='zlib',
372 )
372 )
373 coreconfigitem('experimental', 'graphshorten',
373 coreconfigitem('experimental', 'graphshorten',
374 default=False,
374 default=False,
375 )
375 )
376 coreconfigitem('experimental', 'graphstyle.parent',
376 coreconfigitem('experimental', 'graphstyle.parent',
377 default=dynamicdefault,
377 default=dynamicdefault,
378 )
378 )
379 coreconfigitem('experimental', 'graphstyle.missing',
379 coreconfigitem('experimental', 'graphstyle.missing',
380 default=dynamicdefault,
380 default=dynamicdefault,
381 )
381 )
382 coreconfigitem('experimental', 'graphstyle.grandparent',
382 coreconfigitem('experimental', 'graphstyle.grandparent',
383 default=dynamicdefault,
383 default=dynamicdefault,
384 )
384 )
385 coreconfigitem('experimental', 'hook-track-tags',
385 coreconfigitem('experimental', 'hook-track-tags',
386 default=False,
386 default=False,
387 )
387 )
388 coreconfigitem('experimental', 'httppostargs',
388 coreconfigitem('experimental', 'httppostargs',
389 default=False,
389 default=False,
390 )
390 )
391 coreconfigitem('experimental', 'manifestv2',
391 coreconfigitem('experimental', 'manifestv2',
392 default=False,
392 default=False,
393 )
393 )
394 coreconfigitem('experimental', 'mergedriver',
394 coreconfigitem('experimental', 'mergedriver',
395 default=None,
395 default=None,
396 )
396 )
397 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
397 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
398 default=False,
398 default=False,
399 )
399 )
400 coreconfigitem('experimental', 'rebase.multidest',
400 coreconfigitem('experimental', 'rebase.multidest',
401 default=False,
401 default=False,
402 )
402 )
403 coreconfigitem('experimental', 'revertalternateinteractivemode',
403 coreconfigitem('experimental', 'revertalternateinteractivemode',
404 default=True,
404 default=True,
405 )
405 )
406 coreconfigitem('experimental', 'revlogv2',
406 coreconfigitem('experimental', 'revlogv2',
407 default=None,
407 default=None,
408 )
408 )
409 coreconfigitem('experimental', 'spacemovesdown',
409 coreconfigitem('experimental', 'spacemovesdown',
410 default=False,
410 default=False,
411 )
411 )
412 coreconfigitem('experimental', 'treemanifest',
412 coreconfigitem('experimental', 'treemanifest',
413 default=False,
413 default=False,
414 )
414 )
415 # Deprecated, remove after 4.4 release
415 # Deprecated, remove after 4.4 release
416 coreconfigitem('experimental', 'updatecheck',
416 coreconfigitem('experimental', 'updatecheck',
417 default=None,
417 default=None,
418 )
418 )
419 coreconfigitem('extensions', '.*',
419 coreconfigitem('extensions', '.*',
420 default=None,
420 default=None,
421 generic=True,
421 generic=True,
422 )
422 )
423 coreconfigitem('format', 'aggressivemergedeltas',
423 coreconfigitem('format', 'aggressivemergedeltas',
424 default=False,
424 default=False,
425 )
425 )
426 coreconfigitem('format', 'chunkcachesize',
426 coreconfigitem('format', 'chunkcachesize',
427 default=None,
427 default=None,
428 )
428 )
429 coreconfigitem('format', 'dotencode',
429 coreconfigitem('format', 'dotencode',
430 default=True,
430 default=True,
431 )
431 )
432 coreconfigitem('format', 'generaldelta',
432 coreconfigitem('format', 'generaldelta',
433 default=False,
433 default=False,
434 )
434 )
435 coreconfigitem('format', 'manifestcachesize',
435 coreconfigitem('format', 'manifestcachesize',
436 default=None,
436 default=None,
437 )
437 )
438 coreconfigitem('format', 'maxchainlen',
438 coreconfigitem('format', 'maxchainlen',
439 default=None,
439 default=None,
440 )
440 )
441 coreconfigitem('format', 'obsstore-version',
441 coreconfigitem('format', 'obsstore-version',
442 default=None,
442 default=None,
443 )
443 )
444 coreconfigitem('format', 'usefncache',
444 coreconfigitem('format', 'usefncache',
445 default=True,
445 default=True,
446 )
446 )
447 coreconfigitem('format', 'usegeneraldelta',
447 coreconfigitem('format', 'usegeneraldelta',
448 default=True,
448 default=True,
449 )
449 )
450 coreconfigitem('format', 'usestore',
450 coreconfigitem('format', 'usestore',
451 default=True,
451 default=True,
452 )
452 )
453 coreconfigitem('hooks', '.*',
453 coreconfigitem('hooks', '.*',
454 default=dynamicdefault,
454 default=dynamicdefault,
455 generic=True,
455 generic=True,
456 )
456 )
457 coreconfigitem('hostsecurity', 'ciphers',
457 coreconfigitem('hostsecurity', 'ciphers',
458 default=None,
458 default=None,
459 )
459 )
460 coreconfigitem('hostsecurity', 'disabletls10warning',
460 coreconfigitem('hostsecurity', 'disabletls10warning',
461 default=False,
461 default=False,
462 )
462 )
463 coreconfigitem('http_proxy', 'always',
463 coreconfigitem('http_proxy', 'always',
464 default=False,
464 default=False,
465 )
465 )
466 coreconfigitem('http_proxy', 'host',
466 coreconfigitem('http_proxy', 'host',
467 default=None,
467 default=None,
468 )
468 )
469 coreconfigitem('http_proxy', 'no',
469 coreconfigitem('http_proxy', 'no',
470 default=list,
470 default=list,
471 )
471 )
472 coreconfigitem('http_proxy', 'passwd',
472 coreconfigitem('http_proxy', 'passwd',
473 default=None,
473 default=None,
474 )
474 )
475 coreconfigitem('http_proxy', 'user',
475 coreconfigitem('http_proxy', 'user',
476 default=None,
476 default=None,
477 )
477 )
478 coreconfigitem('logtoprocess', 'commandexception',
478 coreconfigitem('logtoprocess', 'commandexception',
479 default=None,
479 default=None,
480 )
480 )
481 coreconfigitem('logtoprocess', 'commandfinish',
481 coreconfigitem('logtoprocess', 'commandfinish',
482 default=None,
482 default=None,
483 )
483 )
484 coreconfigitem('logtoprocess', 'command',
484 coreconfigitem('logtoprocess', 'command',
485 default=None,
485 default=None,
486 )
486 )
487 coreconfigitem('logtoprocess', 'develwarn',
487 coreconfigitem('logtoprocess', 'develwarn',
488 default=None,
488 default=None,
489 )
489 )
490 coreconfigitem('logtoprocess', 'uiblocked',
490 coreconfigitem('logtoprocess', 'uiblocked',
491 default=None,
491 default=None,
492 )
492 )
493 coreconfigitem('merge', 'checkunknown',
493 coreconfigitem('merge', 'checkunknown',
494 default='abort',
494 default='abort',
495 )
495 )
496 coreconfigitem('merge', 'checkignored',
496 coreconfigitem('merge', 'checkignored',
497 default='abort',
497 default='abort',
498 )
498 )
499 coreconfigitem('merge', 'followcopies',
499 coreconfigitem('merge', 'followcopies',
500 default=True,
500 default=True,
501 )
501 )
502 coreconfigitem('merge', 'preferancestor',
502 coreconfigitem('merge', 'preferancestor',
503 default=lambda: ['*'],
503 default=lambda: ['*'],
504 )
504 )
505 coreconfigitem('pager', 'attend-.*',
505 coreconfigitem('pager', 'attend-.*',
506 default=dynamicdefault,
506 default=dynamicdefault,
507 generic=True,
507 generic=True,
508 )
508 )
509 coreconfigitem('pager', 'ignore',
509 coreconfigitem('pager', 'ignore',
510 default=list,
510 default=list,
511 )
511 )
512 coreconfigitem('pager', 'pager',
512 coreconfigitem('pager', 'pager',
513 default=dynamicdefault,
513 default=dynamicdefault,
514 )
514 )
515 coreconfigitem('patch', 'eol',
515 coreconfigitem('patch', 'eol',
516 default='strict',
516 default='strict',
517 )
517 )
518 coreconfigitem('patch', 'fuzz',
518 coreconfigitem('patch', 'fuzz',
519 default=2,
519 default=2,
520 )
520 )
521 coreconfigitem('paths', 'default',
521 coreconfigitem('paths', 'default',
522 default=None,
522 default=None,
523 )
523 )
524 coreconfigitem('paths', 'default-push',
524 coreconfigitem('paths', 'default-push',
525 default=None,
525 default=None,
526 )
526 )
527 coreconfigitem('paths', '.*',
527 coreconfigitem('paths', '.*',
528 default=None,
528 default=None,
529 generic=True,
529 generic=True,
530 )
530 )
531 coreconfigitem('phases', 'checksubrepos',
531 coreconfigitem('phases', 'checksubrepos',
532 default='follow',
532 default='follow',
533 )
533 )
534 coreconfigitem('phases', 'new-commit',
534 coreconfigitem('phases', 'new-commit',
535 default='draft',
535 default='draft',
536 )
536 )
537 coreconfigitem('phases', 'publish',
537 coreconfigitem('phases', 'publish',
538 default=True,
538 default=True,
539 )
539 )
540 coreconfigitem('profiling', 'enabled',
540 coreconfigitem('profiling', 'enabled',
541 default=False,
541 default=False,
542 )
542 )
543 coreconfigitem('profiling', 'format',
543 coreconfigitem('profiling', 'format',
544 default='text',
544 default='text',
545 )
545 )
546 coreconfigitem('profiling', 'freq',
546 coreconfigitem('profiling', 'freq',
547 default=1000,
547 default=1000,
548 )
548 )
549 coreconfigitem('profiling', 'limit',
549 coreconfigitem('profiling', 'limit',
550 default=30,
550 default=30,
551 )
551 )
552 coreconfigitem('profiling', 'nested',
552 coreconfigitem('profiling', 'nested',
553 default=0,
553 default=0,
554 )
554 )
555 coreconfigitem('profiling', 'output',
555 coreconfigitem('profiling', 'output',
556 default=None,
556 default=None,
557 )
557 )
558 coreconfigitem('profiling', 'showmax',
558 coreconfigitem('profiling', 'showmax',
559 default=0.999,
559 default=0.999,
560 )
560 )
561 coreconfigitem('profiling', 'showmin',
561 coreconfigitem('profiling', 'showmin',
562 default=dynamicdefault,
562 default=dynamicdefault,
563 )
563 )
564 coreconfigitem('profiling', 'sort',
564 coreconfigitem('profiling', 'sort',
565 default='inlinetime',
565 default='inlinetime',
566 )
566 )
567 coreconfigitem('profiling', 'statformat',
567 coreconfigitem('profiling', 'statformat',
568 default='hotpath',
568 default='hotpath',
569 )
569 )
570 coreconfigitem('profiling', 'type',
570 coreconfigitem('profiling', 'type',
571 default='stat',
571 default='stat',
572 )
572 )
573 coreconfigitem('progress', 'assume-tty',
573 coreconfigitem('progress', 'assume-tty',
574 default=False,
574 default=False,
575 )
575 )
576 coreconfigitem('progress', 'changedelay',
576 coreconfigitem('progress', 'changedelay',
577 default=1,
577 default=1,
578 )
578 )
579 coreconfigitem('progress', 'clear-complete',
579 coreconfigitem('progress', 'clear-complete',
580 default=True,
580 default=True,
581 )
581 )
582 coreconfigitem('progress', 'debug',
582 coreconfigitem('progress', 'debug',
583 default=False,
583 default=False,
584 )
584 )
585 coreconfigitem('progress', 'delay',
585 coreconfigitem('progress', 'delay',
586 default=3,
586 default=3,
587 )
587 )
588 coreconfigitem('progress', 'disable',
588 coreconfigitem('progress', 'disable',
589 default=False,
589 default=False,
590 )
590 )
591 coreconfigitem('progress', 'estimateinterval',
591 coreconfigitem('progress', 'estimateinterval',
592 default=60.0,
592 default=60.0,
593 )
593 )
594 coreconfigitem('progress', 'refresh',
594 coreconfigitem('progress', 'refresh',
595 default=0.1,
595 default=0.1,
596 )
596 )
597 coreconfigitem('progress', 'width',
597 coreconfigitem('progress', 'width',
598 default=dynamicdefault,
598 default=dynamicdefault,
599 )
599 )
600 coreconfigitem('push', 'pushvars.server',
600 coreconfigitem('push', 'pushvars.server',
601 default=False,
601 default=False,
602 )
602 )
603 coreconfigitem('server', 'bundle1',
603 coreconfigitem('server', 'bundle1',
604 default=True,
604 default=True,
605 )
605 )
606 coreconfigitem('server', 'bundle1gd',
606 coreconfigitem('server', 'bundle1gd',
607 default=None,
607 default=None,
608 )
608 )
609 coreconfigitem('server', 'bundle1.pull',
609 coreconfigitem('server', 'bundle1.pull',
610 default=None,
610 default=None,
611 )
611 )
612 coreconfigitem('server', 'bundle1gd.pull',
612 coreconfigitem('server', 'bundle1gd.pull',
613 default=None,
613 default=None,
614 )
614 )
615 coreconfigitem('server', 'bundle1.push',
615 coreconfigitem('server', 'bundle1.push',
616 default=None,
616 default=None,
617 )
617 )
618 coreconfigitem('server', 'bundle1gd.push',
618 coreconfigitem('server', 'bundle1gd.push',
619 default=None,
619 default=None,
620 )
620 )
621 coreconfigitem('server', 'compressionengines',
621 coreconfigitem('server', 'compressionengines',
622 default=list,
622 default=list,
623 )
623 )
624 coreconfigitem('server', 'concurrent-push-mode',
624 coreconfigitem('server', 'concurrent-push-mode',
625 default='strict',
625 default='strict',
626 )
626 )
627 coreconfigitem('server', 'disablefullbundle',
627 coreconfigitem('server', 'disablefullbundle',
628 default=False,
628 default=False,
629 )
629 )
630 coreconfigitem('server', 'maxhttpheaderlen',
630 coreconfigitem('server', 'maxhttpheaderlen',
631 default=1024,
631 default=1024,
632 )
632 )
633 coreconfigitem('server', 'preferuncompressed',
633 coreconfigitem('server', 'preferuncompressed',
634 default=False,
634 default=False,
635 )
635 )
636 coreconfigitem('server', 'uncompressed',
636 coreconfigitem('server', 'uncompressed',
637 default=True,
637 default=True,
638 )
638 )
639 coreconfigitem('server', 'uncompressedallowsecret',
639 coreconfigitem('server', 'uncompressedallowsecret',
640 default=False,
640 default=False,
641 )
641 )
642 coreconfigitem('server', 'validate',
642 coreconfigitem('server', 'validate',
643 default=False,
643 default=False,
644 )
644 )
645 coreconfigitem('server', 'zliblevel',
645 coreconfigitem('server', 'zliblevel',
646 default=-1,
646 default=-1,
647 )
647 )
648 coreconfigitem('smtp', 'host',
648 coreconfigitem('smtp', 'host',
649 default=None,
649 default=None,
650 )
650 )
651 coreconfigitem('smtp', 'local_hostname',
651 coreconfigitem('smtp', 'local_hostname',
652 default=None,
652 default=None,
653 )
653 )
654 coreconfigitem('smtp', 'password',
654 coreconfigitem('smtp', 'password',
655 default=None,
655 default=None,
656 )
656 )
657 coreconfigitem('smtp', 'port',
657 coreconfigitem('smtp', 'port',
658 default=dynamicdefault,
658 default=dynamicdefault,
659 )
659 )
660 coreconfigitem('smtp', 'tls',
660 coreconfigitem('smtp', 'tls',
661 default='none',
661 default='none',
662 )
662 )
663 coreconfigitem('smtp', 'username',
663 coreconfigitem('smtp', 'username',
664 default=None,
664 default=None,
665 )
665 )
666 coreconfigitem('sparse', 'missingwarning',
666 coreconfigitem('sparse', 'missingwarning',
667 default=True,
667 default=True,
668 )
668 )
669 coreconfigitem('templates', '.*',
669 coreconfigitem('templates', '.*',
670 default=None,
670 default=None,
671 generic=True,
671 generic=True,
672 )
672 )
673 coreconfigitem('trusted', 'groups',
673 coreconfigitem('trusted', 'groups',
674 default=list,
674 default=list,
675 )
675 )
676 coreconfigitem('trusted', 'users',
676 coreconfigitem('trusted', 'users',
677 default=list,
677 default=list,
678 )
678 )
679 coreconfigitem('ui', '_usedassubrepo',
679 coreconfigitem('ui', '_usedassubrepo',
680 default=False,
680 default=False,
681 )
681 )
682 coreconfigitem('ui', 'allowemptycommit',
682 coreconfigitem('ui', 'allowemptycommit',
683 default=False,
683 default=False,
684 )
684 )
685 coreconfigitem('ui', 'archivemeta',
685 coreconfigitem('ui', 'archivemeta',
686 default=True,
686 default=True,
687 )
687 )
688 coreconfigitem('ui', 'askusername',
688 coreconfigitem('ui', 'askusername',
689 default=False,
689 default=False,
690 )
690 )
691 coreconfigitem('ui', 'clonebundlefallback',
691 coreconfigitem('ui', 'clonebundlefallback',
692 default=False,
692 default=False,
693 )
693 )
694 coreconfigitem('ui', 'clonebundleprefers',
694 coreconfigitem('ui', 'clonebundleprefers',
695 default=list,
695 default=list,
696 )
696 )
697 coreconfigitem('ui', 'clonebundles',
697 coreconfigitem('ui', 'clonebundles',
698 default=True,
698 default=True,
699 )
699 )
700 coreconfigitem('ui', 'color',
700 coreconfigitem('ui', 'color',
701 default='auto',
701 default='auto',
702 )
702 )
703 coreconfigitem('ui', 'commitsubrepos',
703 coreconfigitem('ui', 'commitsubrepos',
704 default=False,
704 default=False,
705 )
705 )
706 coreconfigitem('ui', 'debug',
706 coreconfigitem('ui', 'debug',
707 default=False,
707 default=False,
708 )
708 )
709 coreconfigitem('ui', 'debugger',
709 coreconfigitem('ui', 'debugger',
710 default=None,
710 default=None,
711 )
711 )
712 coreconfigitem('ui', 'fallbackencoding',
712 coreconfigitem('ui', 'fallbackencoding',
713 default=None,
713 default=None,
714 )
714 )
715 coreconfigitem('ui', 'forcecwd',
715 coreconfigitem('ui', 'forcecwd',
716 default=None,
716 default=None,
717 )
717 )
718 coreconfigitem('ui', 'forcemerge',
718 coreconfigitem('ui', 'forcemerge',
719 default=None,
719 default=None,
720 )
720 )
721 coreconfigitem('ui', 'formatdebug',
721 coreconfigitem('ui', 'formatdebug',
722 default=False,
722 default=False,
723 )
723 )
724 coreconfigitem('ui', 'formatjson',
724 coreconfigitem('ui', 'formatjson',
725 default=False,
725 default=False,
726 )
726 )
727 coreconfigitem('ui', 'formatted',
727 coreconfigitem('ui', 'formatted',
728 default=None,
728 default=None,
729 )
729 )
730 coreconfigitem('ui', 'graphnodetemplate',
730 coreconfigitem('ui', 'graphnodetemplate',
731 default=None,
731 default=None,
732 )
732 )
733 coreconfigitem('ui', 'http2debuglevel',
733 coreconfigitem('ui', 'http2debuglevel',
734 default=None,
734 default=None,
735 )
735 )
736 coreconfigitem('ui', 'interactive',
736 coreconfigitem('ui', 'interactive',
737 default=None,
737 default=None,
738 )
738 )
739 coreconfigitem('ui', 'interface',
739 coreconfigitem('ui', 'interface',
740 default=None,
740 default=None,
741 )
741 )
742 coreconfigitem('ui', 'interface.chunkselector',
742 coreconfigitem('ui', 'interface.chunkselector',
743 default=None,
743 default=None,
744 )
744 )
745 coreconfigitem('ui', 'logblockedtimes',
745 coreconfigitem('ui', 'logblockedtimes',
746 default=False,
746 default=False,
747 )
747 )
748 coreconfigitem('ui', 'logtemplate',
748 coreconfigitem('ui', 'logtemplate',
749 default=None,
749 default=None,
750 )
750 )
751 coreconfigitem('ui', 'merge',
751 coreconfigitem('ui', 'merge',
752 default=None,
752 default=None,
753 )
753 )
754 coreconfigitem('ui', 'mergemarkers',
754 coreconfigitem('ui', 'mergemarkers',
755 default='basic',
755 default='basic',
756 )
756 )
757 coreconfigitem('ui', 'mergemarkertemplate',
757 coreconfigitem('ui', 'mergemarkertemplate',
758 default=('{node|short} '
758 default=('{node|short} '
759 '{ifeq(tags, "tip", "", '
759 '{ifeq(tags, "tip", "", '
760 'ifeq(tags, "", "", "{tags} "))}'
760 'ifeq(tags, "", "", "{tags} "))}'
761 '{if(bookmarks, "{bookmarks} ")}'
761 '{if(bookmarks, "{bookmarks} ")}'
762 '{ifeq(branch, "default", "", "{branch} ")}'
762 '{ifeq(branch, "default", "", "{branch} ")}'
763 '- {author|user}: {desc|firstline}')
763 '- {author|user}: {desc|firstline}')
764 )
764 )
765 coreconfigitem('ui', 'nontty',
765 coreconfigitem('ui', 'nontty',
766 default=False,
766 default=False,
767 )
767 )
768 coreconfigitem('ui', 'origbackuppath',
768 coreconfigitem('ui', 'origbackuppath',
769 default=None,
769 default=None,
770 )
770 )
771 coreconfigitem('ui', 'paginate',
771 coreconfigitem('ui', 'paginate',
772 default=True,
772 default=True,
773 )
773 )
774 coreconfigitem('ui', 'patch',
774 coreconfigitem('ui', 'patch',
775 default=None,
775 default=None,
776 )
776 )
777 coreconfigitem('ui', 'portablefilenames',
777 coreconfigitem('ui', 'portablefilenames',
778 default='warn',
778 default='warn',
779 )
779 )
780 coreconfigitem('ui', 'promptecho',
780 coreconfigitem('ui', 'promptecho',
781 default=False,
781 default=False,
782 )
782 )
783 coreconfigitem('ui', 'quiet',
783 coreconfigitem('ui', 'quiet',
784 default=False,
784 default=False,
785 )
785 )
786 coreconfigitem('ui', 'quietbookmarkmove',
786 coreconfigitem('ui', 'quietbookmarkmove',
787 default=False,
787 default=False,
788 )
788 )
789 coreconfigitem('ui', 'remotecmd',
789 coreconfigitem('ui', 'remotecmd',
790 default='hg',
790 default='hg',
791 )
791 )
792 coreconfigitem('ui', 'report_untrusted',
792 coreconfigitem('ui', 'report_untrusted',
793 default=True,
793 default=True,
794 )
794 )
795 coreconfigitem('ui', 'rollback',
795 coreconfigitem('ui', 'rollback',
796 default=True,
796 default=True,
797 )
797 )
798 coreconfigitem('ui', 'slash',
798 coreconfigitem('ui', 'slash',
799 default=False,
799 default=False,
800 )
800 )
801 coreconfigitem('ui', 'ssh',
801 coreconfigitem('ui', 'ssh',
802 default='ssh',
802 default='ssh',
803 )
803 )
804 coreconfigitem('ui', 'statuscopies',
804 coreconfigitem('ui', 'statuscopies',
805 default=False,
805 default=False,
806 )
806 )
807 coreconfigitem('ui', 'strict',
807 coreconfigitem('ui', 'strict',
808 default=False,
808 default=False,
809 )
809 )
810 coreconfigitem('ui', 'style',
810 coreconfigitem('ui', 'style',
811 default='',
811 default='',
812 )
812 )
813 coreconfigitem('ui', 'supportcontact',
813 coreconfigitem('ui', 'supportcontact',
814 default=None,
814 default=None,
815 )
815 )
816 coreconfigitem('ui', 'textwidth',
816 coreconfigitem('ui', 'textwidth',
817 default=78,
817 default=78,
818 )
818 )
819 coreconfigitem('ui', 'timeout',
819 coreconfigitem('ui', 'timeout',
820 default='600',
820 default='600',
821 )
821 )
822 coreconfigitem('ui', 'traceback',
822 coreconfigitem('ui', 'traceback',
823 default=False,
823 default=False,
824 )
824 )
825 coreconfigitem('ui', 'tweakdefaults',
825 coreconfigitem('ui', 'tweakdefaults',
826 default=False,
826 default=False,
827 )
827 )
828 coreconfigitem('ui', 'usehttp2',
828 coreconfigitem('ui', 'usehttp2',
829 default=False,
829 default=False,
830 )
830 )
831 coreconfigitem('ui', 'username',
831 coreconfigitem('ui', 'username',
832 alias=[('ui', 'user')]
832 alias=[('ui', 'user')]
833 )
833 )
834 coreconfigitem('ui', 'verbose',
834 coreconfigitem('ui', 'verbose',
835 default=False,
835 default=False,
836 )
836 )
837 coreconfigitem('verify', 'skipflags',
837 coreconfigitem('verify', 'skipflags',
838 default=None,
838 default=None,
839 )
839 )
840 coreconfigitem('web', 'allowbz2',
840 coreconfigitem('web', 'allowbz2',
841 default=False,
841 default=False,
842 )
842 )
843 coreconfigitem('web', 'allowgz',
843 coreconfigitem('web', 'allowgz',
844 default=False,
844 default=False,
845 )
845 )
846 coreconfigitem('web', 'allowpull',
846 coreconfigitem('web', 'allowpull',
847 default=True,
847 default=True,
848 )
848 )
849 coreconfigitem('web', 'allow_push',
849 coreconfigitem('web', 'allow_push',
850 default=list,
850 default=list,
851 )
851 )
852 coreconfigitem('web', 'allowzip',
852 coreconfigitem('web', 'allowzip',
853 default=False,
853 default=False,
854 )
854 )
855 coreconfigitem('web', 'cache',
855 coreconfigitem('web', 'cache',
856 default=True,
856 default=True,
857 )
857 )
858 coreconfigitem('web', 'contact',
858 coreconfigitem('web', 'contact',
859 default=None,
859 default=None,
860 )
860 )
861 coreconfigitem('web', 'deny_push',
861 coreconfigitem('web', 'deny_push',
862 default=list,
862 default=list,
863 )
863 )
864 coreconfigitem('web', 'guessmime',
864 coreconfigitem('web', 'guessmime',
865 default=False,
865 default=False,
866 )
866 )
867 coreconfigitem('web', 'hidden',
867 coreconfigitem('web', 'hidden',
868 default=False,
868 default=False,
869 )
869 )
870 coreconfigitem('web', 'labels',
870 coreconfigitem('web', 'labels',
871 default=list,
871 default=list,
872 )
872 )
873 coreconfigitem('web', 'logoimg',
873 coreconfigitem('web', 'logoimg',
874 default='hglogo.png',
874 default='hglogo.png',
875 )
875 )
876 coreconfigitem('web', 'logourl',
876 coreconfigitem('web', 'logourl',
877 default='https://mercurial-scm.org/',
877 default='https://mercurial-scm.org/',
878 )
878 )
879 coreconfigitem('web', 'accesslog',
879 coreconfigitem('web', 'accesslog',
880 default='-',
880 default='-',
881 )
881 )
882 coreconfigitem('web', 'address',
882 coreconfigitem('web', 'address',
883 default='',
883 default='',
884 )
884 )
885 coreconfigitem('web', 'allow_archive',
885 coreconfigitem('web', 'allow_archive',
886 default=list,
886 default=list,
887 )
887 )
888 coreconfigitem('web', 'allow_read',
888 coreconfigitem('web', 'allow_read',
889 default=list,
889 default=list,
890 )
890 )
891 coreconfigitem('web', 'baseurl',
891 coreconfigitem('web', 'baseurl',
892 default=None,
892 default=None,
893 )
893 )
894 coreconfigitem('web', 'cacerts',
894 coreconfigitem('web', 'cacerts',
895 default=None,
895 default=None,
896 )
896 )
897 coreconfigitem('web', 'certificate',
897 coreconfigitem('web', 'certificate',
898 default=None,
898 default=None,
899 )
899 )
900 coreconfigitem('web', 'collapse',
900 coreconfigitem('web', 'collapse',
901 default=False,
901 default=False,
902 )
902 )
903 coreconfigitem('web', 'csp',
903 coreconfigitem('web', 'csp',
904 default=None,
904 default=None,
905 )
905 )
906 coreconfigitem('web', 'deny_read',
906 coreconfigitem('web', 'deny_read',
907 default=list,
907 default=list,
908 )
908 )
909 coreconfigitem('web', 'descend',
909 coreconfigitem('web', 'descend',
910 default=True,
910 default=True,
911 )
911 )
912 coreconfigitem('web', 'description',
912 coreconfigitem('web', 'description',
913 default="",
913 default="",
914 )
914 )
915 coreconfigitem('web', 'encoding',
915 coreconfigitem('web', 'encoding',
916 default=lambda: encoding.encoding,
916 default=lambda: encoding.encoding,
917 )
917 )
918 coreconfigitem('web', 'errorlog',
918 coreconfigitem('web', 'errorlog',
919 default='-',
919 default='-',
920 )
920 )
921 coreconfigitem('web', 'ipv6',
921 coreconfigitem('web', 'ipv6',
922 default=False,
922 default=False,
923 )
923 )
924 coreconfigitem('web', 'maxchanges',
924 coreconfigitem('web', 'maxchanges',
925 default=10,
925 default=10,
926 )
926 )
927 coreconfigitem('web', 'maxfiles',
927 coreconfigitem('web', 'maxfiles',
928 default=10,
928 default=10,
929 )
929 )
930 coreconfigitem('web', 'maxshortchanges',
930 coreconfigitem('web', 'maxshortchanges',
931 default=60,
931 default=60,
932 )
932 )
933 coreconfigitem('web', 'motd',
933 coreconfigitem('web', 'motd',
934 default='',
934 default='',
935 )
935 )
936 coreconfigitem('web', 'name',
936 coreconfigitem('web', 'name',
937 default=dynamicdefault,
937 default=dynamicdefault,
938 )
938 )
939 coreconfigitem('web', 'port',
939 coreconfigitem('web', 'port',
940 default=8000,
940 default=8000,
941 )
941 )
942 coreconfigitem('web', 'prefix',
942 coreconfigitem('web', 'prefix',
943 default='',
943 default='',
944 )
944 )
945 coreconfigitem('web', 'push_ssl',
945 coreconfigitem('web', 'push_ssl',
946 default=True,
946 default=True,
947 )
947 )
948 coreconfigitem('web', 'refreshinterval',
948 coreconfigitem('web', 'refreshinterval',
949 default=20,
949 default=20,
950 )
950 )
951 coreconfigitem('web', 'stripes',
951 coreconfigitem('web', 'stripes',
952 default=1,
952 default=1,
953 )
953 )
954 coreconfigitem('web', 'style',
954 coreconfigitem('web', 'style',
955 default='paper',
955 default='paper',
956 )
956 )
957 coreconfigitem('web', 'templates',
957 coreconfigitem('web', 'templates',
958 default=None,
958 default=None,
959 )
959 )
960 coreconfigitem('web', 'view',
960 coreconfigitem('web', 'view',
961 default='served',
961 default='served',
962 )
962 )
963 coreconfigitem('worker', 'backgroundclose',
963 coreconfigitem('worker', 'backgroundclose',
964 default=dynamicdefault,
964 default=dynamicdefault,
965 )
965 )
966 # Windows defaults to a limit of 512 open files. A buffer of 128
966 # Windows defaults to a limit of 512 open files. A buffer of 128
967 # should give us enough headway.
967 # should give us enough headway.
968 coreconfigitem('worker', 'backgroundclosemaxqueue',
968 coreconfigitem('worker', 'backgroundclosemaxqueue',
969 default=384,
969 default=384,
970 )
970 )
971 coreconfigitem('worker', 'backgroundcloseminfilecount',
971 coreconfigitem('worker', 'backgroundcloseminfilecount',
972 default=2048,
972 default=2048,
973 )
973 )
974 coreconfigitem('worker', 'backgroundclosethreadcount',
974 coreconfigitem('worker', 'backgroundclosethreadcount',
975 default=4,
975 default=4,
976 )
976 )
977 coreconfigitem('worker', 'numcpus',
977 coreconfigitem('worker', 'numcpus',
978 default=None,
978 default=None,
979 )
979 )
General Comments 0
You need to be logged in to leave comments. Login now