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