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