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