##// END OF EJS Templates
configitems: register the 'email.from' config
Boris Feld -
r34480:ef303dae default
parent child Browse files
Show More
@@ -1,686 +1,689
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
11
12 from . import (
12 from . import (
13 encoding,
13 encoding,
14 error,
14 error,
15 )
15 )
16
16
17 def loadconfigtable(ui, extname, configtable):
17 def loadconfigtable(ui, extname, configtable):
18 """update config item known to the ui with the extension ones"""
18 """update config item known to the ui with the extension ones"""
19 for section, items in configtable.items():
19 for section, items in configtable.items():
20 knownitems = ui._knownconfig.setdefault(section, {})
20 knownitems = ui._knownconfig.setdefault(section, {})
21 knownkeys = set(knownitems)
21 knownkeys = set(knownitems)
22 newkeys = set(items)
22 newkeys = set(items)
23 for key in sorted(knownkeys & newkeys):
23 for key in sorted(knownkeys & newkeys):
24 msg = "extension '%s' overwrite config item '%s.%s'"
24 msg = "extension '%s' overwrite config item '%s.%s'"
25 msg %= (extname, section, key)
25 msg %= (extname, section, key)
26 ui.develwarn(msg, config='warn-config')
26 ui.develwarn(msg, config='warn-config')
27
27
28 knownitems.update(items)
28 knownitems.update(items)
29
29
30 class configitem(object):
30 class configitem(object):
31 """represent a known config item
31 """represent a known config item
32
32
33 :section: the official config section where to find this item,
33 :section: the official config section where to find this item,
34 :name: the official name within the section,
34 :name: the official name within the section,
35 :default: default value for this item,
35 :default: default value for this item,
36 :alias: optional list of tuples as alternatives.
36 :alias: optional list of tuples as alternatives.
37 """
37 """
38
38
39 def __init__(self, section, name, default=None, alias=()):
39 def __init__(self, section, name, default=None, alias=()):
40 self.section = section
40 self.section = section
41 self.name = name
41 self.name = name
42 self.default = default
42 self.default = default
43 self.alias = list(alias)
43 self.alias = list(alias)
44
44
45 coreitems = {}
45 coreitems = {}
46
46
47 def _register(configtable, *args, **kwargs):
47 def _register(configtable, *args, **kwargs):
48 item = configitem(*args, **kwargs)
48 item = configitem(*args, **kwargs)
49 section = configtable.setdefault(item.section, {})
49 section = configtable.setdefault(item.section, {})
50 if item.name in section:
50 if item.name in section:
51 msg = "duplicated config item registration for '%s.%s'"
51 msg = "duplicated config item registration for '%s.%s'"
52 raise error.ProgrammingError(msg % (item.section, item.name))
52 raise error.ProgrammingError(msg % (item.section, item.name))
53 section[item.name] = item
53 section[item.name] = item
54
54
55 # special value for case where the default is derived from other values
55 # special value for case where the default is derived from other values
56 dynamicdefault = object()
56 dynamicdefault = object()
57
57
58 # Registering actual config items
58 # Registering actual config items
59
59
60 def getitemregister(configtable):
60 def getitemregister(configtable):
61 return functools.partial(_register, configtable)
61 return functools.partial(_register, configtable)
62
62
63 coreconfigitem = getitemregister(coreitems)
63 coreconfigitem = getitemregister(coreitems)
64
64
65 coreconfigitem('auth', 'cookiefile',
65 coreconfigitem('auth', 'cookiefile',
66 default=None,
66 default=None,
67 )
67 )
68 # bookmarks.pushing: internal hack for discovery
68 # bookmarks.pushing: internal hack for discovery
69 coreconfigitem('bookmarks', 'pushing',
69 coreconfigitem('bookmarks', 'pushing',
70 default=list,
70 default=list,
71 )
71 )
72 # bundle.mainreporoot: internal hack for bundlerepo
72 # bundle.mainreporoot: internal hack for bundlerepo
73 coreconfigitem('bundle', 'mainreporoot',
73 coreconfigitem('bundle', 'mainreporoot',
74 default='',
74 default='',
75 )
75 )
76 # bundle.reorder: experimental config
76 # bundle.reorder: experimental config
77 coreconfigitem('bundle', 'reorder',
77 coreconfigitem('bundle', 'reorder',
78 default='auto',
78 default='auto',
79 )
79 )
80 coreconfigitem('censor', 'policy',
80 coreconfigitem('censor', 'policy',
81 default='abort',
81 default='abort',
82 )
82 )
83 coreconfigitem('chgserver', 'idletimeout',
83 coreconfigitem('chgserver', 'idletimeout',
84 default=3600,
84 default=3600,
85 )
85 )
86 coreconfigitem('chgserver', 'skiphash',
86 coreconfigitem('chgserver', 'skiphash',
87 default=False,
87 default=False,
88 )
88 )
89 coreconfigitem('cmdserver', 'log',
89 coreconfigitem('cmdserver', 'log',
90 default=None,
90 default=None,
91 )
91 )
92 coreconfigitem('color', 'mode',
92 coreconfigitem('color', 'mode',
93 default='auto',
93 default='auto',
94 )
94 )
95 coreconfigitem('color', 'pagermode',
95 coreconfigitem('color', 'pagermode',
96 default=dynamicdefault,
96 default=dynamicdefault,
97 )
97 )
98 coreconfigitem('commands', 'status.relative',
98 coreconfigitem('commands', 'status.relative',
99 default=False,
99 default=False,
100 )
100 )
101 coreconfigitem('commands', 'status.skipstates',
101 coreconfigitem('commands', 'status.skipstates',
102 default=[],
102 default=[],
103 )
103 )
104 coreconfigitem('commands', 'status.verbose',
104 coreconfigitem('commands', 'status.verbose',
105 default=False,
105 default=False,
106 )
106 )
107 coreconfigitem('commands', 'update.requiredest',
107 coreconfigitem('commands', 'update.requiredest',
108 default=False,
108 default=False,
109 )
109 )
110 coreconfigitem('devel', 'all-warnings',
110 coreconfigitem('devel', 'all-warnings',
111 default=False,
111 default=False,
112 )
112 )
113 coreconfigitem('devel', 'bundle2.debug',
113 coreconfigitem('devel', 'bundle2.debug',
114 default=False,
114 default=False,
115 )
115 )
116 coreconfigitem('devel', 'check-locks',
116 coreconfigitem('devel', 'check-locks',
117 default=False,
117 default=False,
118 )
118 )
119 coreconfigitem('devel', 'check-relroot',
119 coreconfigitem('devel', 'check-relroot',
120 default=False,
120 default=False,
121 )
121 )
122 coreconfigitem('devel', 'default-date',
122 coreconfigitem('devel', 'default-date',
123 default=None,
123 default=None,
124 )
124 )
125 coreconfigitem('devel', 'deprec-warn',
125 coreconfigitem('devel', 'deprec-warn',
126 default=False,
126 default=False,
127 )
127 )
128 coreconfigitem('devel', 'disableloaddefaultcerts',
128 coreconfigitem('devel', 'disableloaddefaultcerts',
129 default=False,
129 default=False,
130 )
130 )
131 coreconfigitem('devel', 'legacy.exchange',
131 coreconfigitem('devel', 'legacy.exchange',
132 default=list,
132 default=list,
133 )
133 )
134 coreconfigitem('devel', 'servercafile',
134 coreconfigitem('devel', 'servercafile',
135 default='',
135 default='',
136 )
136 )
137 coreconfigitem('devel', 'serverexactprotocol',
137 coreconfigitem('devel', 'serverexactprotocol',
138 default='',
138 default='',
139 )
139 )
140 coreconfigitem('devel', 'serverrequirecert',
140 coreconfigitem('devel', 'serverrequirecert',
141 default=False,
141 default=False,
142 )
142 )
143 coreconfigitem('devel', 'strip-obsmarkers',
143 coreconfigitem('devel', 'strip-obsmarkers',
144 default=True,
144 default=True,
145 )
145 )
146 coreconfigitem('email', 'charsets',
146 coreconfigitem('email', 'charsets',
147 default=list,
147 default=list,
148 )
148 )
149 coreconfigitem('email', 'from',
150 default=None,
151 )
149 coreconfigitem('email', 'method',
152 coreconfigitem('email', 'method',
150 default='smtp',
153 default='smtp',
151 )
154 )
152 coreconfigitem('experimental', 'bundle-phases',
155 coreconfigitem('experimental', 'bundle-phases',
153 default=False,
156 default=False,
154 )
157 )
155 coreconfigitem('experimental', 'bundle2-advertise',
158 coreconfigitem('experimental', 'bundle2-advertise',
156 default=True,
159 default=True,
157 )
160 )
158 coreconfigitem('experimental', 'bundle2-output-capture',
161 coreconfigitem('experimental', 'bundle2-output-capture',
159 default=False,
162 default=False,
160 )
163 )
161 coreconfigitem('experimental', 'bundle2.pushback',
164 coreconfigitem('experimental', 'bundle2.pushback',
162 default=False,
165 default=False,
163 )
166 )
164 coreconfigitem('experimental', 'bundle2lazylocking',
167 coreconfigitem('experimental', 'bundle2lazylocking',
165 default=False,
168 default=False,
166 )
169 )
167 coreconfigitem('experimental', 'bundlecomplevel',
170 coreconfigitem('experimental', 'bundlecomplevel',
168 default=None,
171 default=None,
169 )
172 )
170 coreconfigitem('experimental', 'changegroup3',
173 coreconfigitem('experimental', 'changegroup3',
171 default=False,
174 default=False,
172 )
175 )
173 coreconfigitem('experimental', 'clientcompressionengines',
176 coreconfigitem('experimental', 'clientcompressionengines',
174 default=list,
177 default=list,
175 )
178 )
176 coreconfigitem('experimental', 'copytrace',
179 coreconfigitem('experimental', 'copytrace',
177 default='on',
180 default='on',
178 )
181 )
179 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
182 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
180 default=100,
183 default=100,
181 )
184 )
182 coreconfigitem('experimental', 'crecordtest',
185 coreconfigitem('experimental', 'crecordtest',
183 default=None,
186 default=None,
184 )
187 )
185 coreconfigitem('experimental', 'editortmpinhg',
188 coreconfigitem('experimental', 'editortmpinhg',
186 default=False,
189 default=False,
187 )
190 )
188 coreconfigitem('experimental', 'stabilization',
191 coreconfigitem('experimental', 'stabilization',
189 default=list,
192 default=list,
190 alias=[('experimental', 'evolution')],
193 alias=[('experimental', 'evolution')],
191 )
194 )
192 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
195 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
193 default=False,
196 default=False,
194 alias=[('experimental', 'evolution.bundle-obsmarker')],
197 alias=[('experimental', 'evolution.bundle-obsmarker')],
195 )
198 )
196 coreconfigitem('experimental', 'stabilization.track-operation',
199 coreconfigitem('experimental', 'stabilization.track-operation',
197 default=True,
200 default=True,
198 alias=[('experimental', 'evolution.track-operation')]
201 alias=[('experimental', 'evolution.track-operation')]
199 )
202 )
200 coreconfigitem('experimental', 'exportableenviron',
203 coreconfigitem('experimental', 'exportableenviron',
201 default=list,
204 default=list,
202 )
205 )
203 coreconfigitem('experimental', 'extendedheader.index',
206 coreconfigitem('experimental', 'extendedheader.index',
204 default=None,
207 default=None,
205 )
208 )
206 coreconfigitem('experimental', 'extendedheader.similarity',
209 coreconfigitem('experimental', 'extendedheader.similarity',
207 default=False,
210 default=False,
208 )
211 )
209 coreconfigitem('experimental', 'format.compression',
212 coreconfigitem('experimental', 'format.compression',
210 default='zlib',
213 default='zlib',
211 )
214 )
212 coreconfigitem('experimental', 'graphshorten',
215 coreconfigitem('experimental', 'graphshorten',
213 default=False,
216 default=False,
214 )
217 )
215 coreconfigitem('experimental', 'hook-track-tags',
218 coreconfigitem('experimental', 'hook-track-tags',
216 default=False,
219 default=False,
217 )
220 )
218 coreconfigitem('experimental', 'httppostargs',
221 coreconfigitem('experimental', 'httppostargs',
219 default=False,
222 default=False,
220 )
223 )
221 coreconfigitem('experimental', 'manifestv2',
224 coreconfigitem('experimental', 'manifestv2',
222 default=False,
225 default=False,
223 )
226 )
224 coreconfigitem('experimental', 'mergedriver',
227 coreconfigitem('experimental', 'mergedriver',
225 default=None,
228 default=None,
226 )
229 )
227 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
230 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
228 default=False,
231 default=False,
229 )
232 )
230 coreconfigitem('experimental', 'rebase.multidest',
233 coreconfigitem('experimental', 'rebase.multidest',
231 default=False,
234 default=False,
232 )
235 )
233 coreconfigitem('experimental', 'revertalternateinteractivemode',
236 coreconfigitem('experimental', 'revertalternateinteractivemode',
234 default=True,
237 default=True,
235 )
238 )
236 coreconfigitem('experimental', 'revlogv2',
239 coreconfigitem('experimental', 'revlogv2',
237 default=None,
240 default=None,
238 )
241 )
239 coreconfigitem('experimental', 'spacemovesdown',
242 coreconfigitem('experimental', 'spacemovesdown',
240 default=False,
243 default=False,
241 )
244 )
242 coreconfigitem('experimental', 'treemanifest',
245 coreconfigitem('experimental', 'treemanifest',
243 default=False,
246 default=False,
244 )
247 )
245 coreconfigitem('experimental', 'updatecheck',
248 coreconfigitem('experimental', 'updatecheck',
246 default=None,
249 default=None,
247 )
250 )
248 coreconfigitem('format', 'aggressivemergedeltas',
251 coreconfigitem('format', 'aggressivemergedeltas',
249 default=False,
252 default=False,
250 )
253 )
251 coreconfigitem('format', 'chunkcachesize',
254 coreconfigitem('format', 'chunkcachesize',
252 default=None,
255 default=None,
253 )
256 )
254 coreconfigitem('format', 'dotencode',
257 coreconfigitem('format', 'dotencode',
255 default=True,
258 default=True,
256 )
259 )
257 coreconfigitem('format', 'generaldelta',
260 coreconfigitem('format', 'generaldelta',
258 default=False,
261 default=False,
259 )
262 )
260 coreconfigitem('format', 'manifestcachesize',
263 coreconfigitem('format', 'manifestcachesize',
261 default=None,
264 default=None,
262 )
265 )
263 coreconfigitem('format', 'maxchainlen',
266 coreconfigitem('format', 'maxchainlen',
264 default=None,
267 default=None,
265 )
268 )
266 coreconfigitem('format', 'obsstore-version',
269 coreconfigitem('format', 'obsstore-version',
267 default=None,
270 default=None,
268 )
271 )
269 coreconfigitem('format', 'usefncache',
272 coreconfigitem('format', 'usefncache',
270 default=True,
273 default=True,
271 )
274 )
272 coreconfigitem('format', 'usegeneraldelta',
275 coreconfigitem('format', 'usegeneraldelta',
273 default=True,
276 default=True,
274 )
277 )
275 coreconfigitem('format', 'usestore',
278 coreconfigitem('format', 'usestore',
276 default=True,
279 default=True,
277 )
280 )
278 coreconfigitem('hostsecurity', 'ciphers',
281 coreconfigitem('hostsecurity', 'ciphers',
279 default=None,
282 default=None,
280 )
283 )
281 coreconfigitem('hostsecurity', 'disabletls10warning',
284 coreconfigitem('hostsecurity', 'disabletls10warning',
282 default=False,
285 default=False,
283 )
286 )
284 coreconfigitem('http_proxy', 'always',
287 coreconfigitem('http_proxy', 'always',
285 default=False,
288 default=False,
286 )
289 )
287 coreconfigitem('http_proxy', 'host',
290 coreconfigitem('http_proxy', 'host',
288 default=None,
291 default=None,
289 )
292 )
290 coreconfigitem('http_proxy', 'no',
293 coreconfigitem('http_proxy', 'no',
291 default=list,
294 default=list,
292 )
295 )
293 coreconfigitem('http_proxy', 'passwd',
296 coreconfigitem('http_proxy', 'passwd',
294 default=None,
297 default=None,
295 )
298 )
296 coreconfigitem('http_proxy', 'user',
299 coreconfigitem('http_proxy', 'user',
297 default=None,
300 default=None,
298 )
301 )
299 coreconfigitem('merge', 'followcopies',
302 coreconfigitem('merge', 'followcopies',
300 default=True,
303 default=True,
301 )
304 )
302 coreconfigitem('pager', 'ignore',
305 coreconfigitem('pager', 'ignore',
303 default=list,
306 default=list,
304 )
307 )
305 coreconfigitem('patch', 'eol',
308 coreconfigitem('patch', 'eol',
306 default='strict',
309 default='strict',
307 )
310 )
308 coreconfigitem('patch', 'fuzz',
311 coreconfigitem('patch', 'fuzz',
309 default=2,
312 default=2,
310 )
313 )
311 coreconfigitem('paths', 'default',
314 coreconfigitem('paths', 'default',
312 default=None,
315 default=None,
313 )
316 )
314 coreconfigitem('paths', 'default-push',
317 coreconfigitem('paths', 'default-push',
315 default=None,
318 default=None,
316 )
319 )
317 coreconfigitem('phases', 'checksubrepos',
320 coreconfigitem('phases', 'checksubrepos',
318 default='follow',
321 default='follow',
319 )
322 )
320 coreconfigitem('phases', 'new-commit',
323 coreconfigitem('phases', 'new-commit',
321 default=dynamicdefault,
324 default=dynamicdefault,
322 )
325 )
323 coreconfigitem('phases', 'publish',
326 coreconfigitem('phases', 'publish',
324 default=True,
327 default=True,
325 )
328 )
326 coreconfigitem('profiling', 'enabled',
329 coreconfigitem('profiling', 'enabled',
327 default=False,
330 default=False,
328 )
331 )
329 coreconfigitem('profiling', 'format',
332 coreconfigitem('profiling', 'format',
330 default='text',
333 default='text',
331 )
334 )
332 coreconfigitem('profiling', 'freq',
335 coreconfigitem('profiling', 'freq',
333 default=1000,
336 default=1000,
334 )
337 )
335 coreconfigitem('profiling', 'limit',
338 coreconfigitem('profiling', 'limit',
336 default=30,
339 default=30,
337 )
340 )
338 coreconfigitem('profiling', 'nested',
341 coreconfigitem('profiling', 'nested',
339 default=0,
342 default=0,
340 )
343 )
341 coreconfigitem('profiling', 'output',
344 coreconfigitem('profiling', 'output',
342 default=None,
345 default=None,
343 )
346 )
344 coreconfigitem('profiling', 'showmax',
347 coreconfigitem('profiling', 'showmax',
345 default=0.999,
348 default=0.999,
346 )
349 )
347 coreconfigitem('profiling', 'showmin',
350 coreconfigitem('profiling', 'showmin',
348 default=dynamicdefault,
351 default=dynamicdefault,
349 )
352 )
350 coreconfigitem('profiling', 'sort',
353 coreconfigitem('profiling', 'sort',
351 default='inlinetime',
354 default='inlinetime',
352 )
355 )
353 coreconfigitem('profiling', 'statformat',
356 coreconfigitem('profiling', 'statformat',
354 default='hotpath',
357 default='hotpath',
355 )
358 )
356 coreconfigitem('profiling', 'type',
359 coreconfigitem('profiling', 'type',
357 default='stat',
360 default='stat',
358 )
361 )
359 coreconfigitem('progress', 'assume-tty',
362 coreconfigitem('progress', 'assume-tty',
360 default=False,
363 default=False,
361 )
364 )
362 coreconfigitem('progress', 'changedelay',
365 coreconfigitem('progress', 'changedelay',
363 default=1,
366 default=1,
364 )
367 )
365 coreconfigitem('progress', 'clear-complete',
368 coreconfigitem('progress', 'clear-complete',
366 default=True,
369 default=True,
367 )
370 )
368 coreconfigitem('progress', 'debug',
371 coreconfigitem('progress', 'debug',
369 default=False,
372 default=False,
370 )
373 )
371 coreconfigitem('progress', 'delay',
374 coreconfigitem('progress', 'delay',
372 default=3,
375 default=3,
373 )
376 )
374 coreconfigitem('progress', 'disable',
377 coreconfigitem('progress', 'disable',
375 default=False,
378 default=False,
376 )
379 )
377 coreconfigitem('progress', 'estimateinterval',
380 coreconfigitem('progress', 'estimateinterval',
378 default=60.0,
381 default=60.0,
379 )
382 )
380 coreconfigitem('progress', 'refresh',
383 coreconfigitem('progress', 'refresh',
381 default=0.1,
384 default=0.1,
382 )
385 )
383 coreconfigitem('progress', 'width',
386 coreconfigitem('progress', 'width',
384 default=dynamicdefault,
387 default=dynamicdefault,
385 )
388 )
386 coreconfigitem('push', 'pushvars.server',
389 coreconfigitem('push', 'pushvars.server',
387 default=False,
390 default=False,
388 )
391 )
389 coreconfigitem('server', 'bundle1',
392 coreconfigitem('server', 'bundle1',
390 default=True,
393 default=True,
391 )
394 )
392 coreconfigitem('server', 'bundle1gd',
395 coreconfigitem('server', 'bundle1gd',
393 default=None,
396 default=None,
394 )
397 )
395 coreconfigitem('server', 'compressionengines',
398 coreconfigitem('server', 'compressionengines',
396 default=list,
399 default=list,
397 )
400 )
398 coreconfigitem('server', 'concurrent-push-mode',
401 coreconfigitem('server', 'concurrent-push-mode',
399 default='strict',
402 default='strict',
400 )
403 )
401 coreconfigitem('server', 'disablefullbundle',
404 coreconfigitem('server', 'disablefullbundle',
402 default=False,
405 default=False,
403 )
406 )
404 coreconfigitem('server', 'maxhttpheaderlen',
407 coreconfigitem('server', 'maxhttpheaderlen',
405 default=1024,
408 default=1024,
406 )
409 )
407 coreconfigitem('server', 'preferuncompressed',
410 coreconfigitem('server', 'preferuncompressed',
408 default=False,
411 default=False,
409 )
412 )
410 coreconfigitem('server', 'uncompressed',
413 coreconfigitem('server', 'uncompressed',
411 default=True,
414 default=True,
412 )
415 )
413 coreconfigitem('server', 'uncompressedallowsecret',
416 coreconfigitem('server', 'uncompressedallowsecret',
414 default=False,
417 default=False,
415 )
418 )
416 coreconfigitem('server', 'validate',
419 coreconfigitem('server', 'validate',
417 default=False,
420 default=False,
418 )
421 )
419 coreconfigitem('server', 'zliblevel',
422 coreconfigitem('server', 'zliblevel',
420 default=-1,
423 default=-1,
421 )
424 )
422 coreconfigitem('smtp', 'host',
425 coreconfigitem('smtp', 'host',
423 default=None,
426 default=None,
424 )
427 )
425 coreconfigitem('smtp', 'local_hostname',
428 coreconfigitem('smtp', 'local_hostname',
426 default=None,
429 default=None,
427 )
430 )
428 coreconfigitem('smtp', 'password',
431 coreconfigitem('smtp', 'password',
429 default=None,
432 default=None,
430 )
433 )
431 coreconfigitem('smtp', 'port',
434 coreconfigitem('smtp', 'port',
432 default=dynamicdefault,
435 default=dynamicdefault,
433 )
436 )
434 coreconfigitem('smtp', 'tls',
437 coreconfigitem('smtp', 'tls',
435 default='none',
438 default='none',
436 )
439 )
437 coreconfigitem('smtp', 'username',
440 coreconfigitem('smtp', 'username',
438 default=None,
441 default=None,
439 )
442 )
440 coreconfigitem('sparse', 'missingwarning',
443 coreconfigitem('sparse', 'missingwarning',
441 default=True,
444 default=True,
442 )
445 )
443 coreconfigitem('trusted', 'groups',
446 coreconfigitem('trusted', 'groups',
444 default=list,
447 default=list,
445 )
448 )
446 coreconfigitem('trusted', 'users',
449 coreconfigitem('trusted', 'users',
447 default=list,
450 default=list,
448 )
451 )
449 coreconfigitem('ui', '_usedassubrepo',
452 coreconfigitem('ui', '_usedassubrepo',
450 default=False,
453 default=False,
451 )
454 )
452 coreconfigitem('ui', 'allowemptycommit',
455 coreconfigitem('ui', 'allowemptycommit',
453 default=False,
456 default=False,
454 )
457 )
455 coreconfigitem('ui', 'archivemeta',
458 coreconfigitem('ui', 'archivemeta',
456 default=True,
459 default=True,
457 )
460 )
458 coreconfigitem('ui', 'askusername',
461 coreconfigitem('ui', 'askusername',
459 default=False,
462 default=False,
460 )
463 )
461 coreconfigitem('ui', 'clonebundlefallback',
464 coreconfigitem('ui', 'clonebundlefallback',
462 default=False,
465 default=False,
463 )
466 )
464 coreconfigitem('ui', 'clonebundleprefers',
467 coreconfigitem('ui', 'clonebundleprefers',
465 default=list,
468 default=list,
466 )
469 )
467 coreconfigitem('ui', 'clonebundles',
470 coreconfigitem('ui', 'clonebundles',
468 default=True,
471 default=True,
469 )
472 )
470 coreconfigitem('ui', 'color',
473 coreconfigitem('ui', 'color',
471 default='auto',
474 default='auto',
472 )
475 )
473 coreconfigitem('ui', 'commitsubrepos',
476 coreconfigitem('ui', 'commitsubrepos',
474 default=False,
477 default=False,
475 )
478 )
476 coreconfigitem('ui', 'debug',
479 coreconfigitem('ui', 'debug',
477 default=False,
480 default=False,
478 )
481 )
479 coreconfigitem('ui', 'debugger',
482 coreconfigitem('ui', 'debugger',
480 default=None,
483 default=None,
481 )
484 )
482 coreconfigitem('ui', 'fallbackencoding',
485 coreconfigitem('ui', 'fallbackencoding',
483 default=None,
486 default=None,
484 )
487 )
485 coreconfigitem('ui', 'forcecwd',
488 coreconfigitem('ui', 'forcecwd',
486 default=None,
489 default=None,
487 )
490 )
488 coreconfigitem('ui', 'forcemerge',
491 coreconfigitem('ui', 'forcemerge',
489 default=None,
492 default=None,
490 )
493 )
491 coreconfigitem('ui', 'formatdebug',
494 coreconfigitem('ui', 'formatdebug',
492 default=False,
495 default=False,
493 )
496 )
494 coreconfigitem('ui', 'formatjson',
497 coreconfigitem('ui', 'formatjson',
495 default=False,
498 default=False,
496 )
499 )
497 coreconfigitem('ui', 'formatted',
500 coreconfigitem('ui', 'formatted',
498 default=None,
501 default=None,
499 )
502 )
500 coreconfigitem('ui', 'graphnodetemplate',
503 coreconfigitem('ui', 'graphnodetemplate',
501 default=None,
504 default=None,
502 )
505 )
503 coreconfigitem('ui', 'http2debuglevel',
506 coreconfigitem('ui', 'http2debuglevel',
504 default=None,
507 default=None,
505 )
508 )
506 coreconfigitem('ui', 'interactive',
509 coreconfigitem('ui', 'interactive',
507 default=None,
510 default=None,
508 )
511 )
509 coreconfigitem('ui', 'interface',
512 coreconfigitem('ui', 'interface',
510 default=None,
513 default=None,
511 )
514 )
512 coreconfigitem('ui', 'logblockedtimes',
515 coreconfigitem('ui', 'logblockedtimes',
513 default=False,
516 default=False,
514 )
517 )
515 coreconfigitem('ui', 'logtemplate',
518 coreconfigitem('ui', 'logtemplate',
516 default=None,
519 default=None,
517 )
520 )
518 coreconfigitem('ui', 'merge',
521 coreconfigitem('ui', 'merge',
519 default=None,
522 default=None,
520 )
523 )
521 coreconfigitem('ui', 'mergemarkers',
524 coreconfigitem('ui', 'mergemarkers',
522 default='basic',
525 default='basic',
523 )
526 )
524 coreconfigitem('ui', 'mergemarkertemplate',
527 coreconfigitem('ui', 'mergemarkertemplate',
525 default=('{node|short} '
528 default=('{node|short} '
526 '{ifeq(tags, "tip", "", '
529 '{ifeq(tags, "tip", "", '
527 'ifeq(tags, "", "", "{tags} "))}'
530 'ifeq(tags, "", "", "{tags} "))}'
528 '{if(bookmarks, "{bookmarks} ")}'
531 '{if(bookmarks, "{bookmarks} ")}'
529 '{ifeq(branch, "default", "", "{branch} ")}'
532 '{ifeq(branch, "default", "", "{branch} ")}'
530 '- {author|user}: {desc|firstline}')
533 '- {author|user}: {desc|firstline}')
531 )
534 )
532 coreconfigitem('ui', 'nontty',
535 coreconfigitem('ui', 'nontty',
533 default=False,
536 default=False,
534 )
537 )
535 coreconfigitem('ui', 'origbackuppath',
538 coreconfigitem('ui', 'origbackuppath',
536 default=None,
539 default=None,
537 )
540 )
538 coreconfigitem('ui', 'paginate',
541 coreconfigitem('ui', 'paginate',
539 default=True,
542 default=True,
540 )
543 )
541 coreconfigitem('ui', 'patch',
544 coreconfigitem('ui', 'patch',
542 default=None,
545 default=None,
543 )
546 )
544 coreconfigitem('ui', 'portablefilenames',
547 coreconfigitem('ui', 'portablefilenames',
545 default='warn',
548 default='warn',
546 )
549 )
547 coreconfigitem('ui', 'promptecho',
550 coreconfigitem('ui', 'promptecho',
548 default=False,
551 default=False,
549 )
552 )
550 coreconfigitem('ui', 'quiet',
553 coreconfigitem('ui', 'quiet',
551 default=False,
554 default=False,
552 )
555 )
553 coreconfigitem('ui', 'quietbookmarkmove',
556 coreconfigitem('ui', 'quietbookmarkmove',
554 default=False,
557 default=False,
555 )
558 )
556 coreconfigitem('ui', 'remotecmd',
559 coreconfigitem('ui', 'remotecmd',
557 default='hg',
560 default='hg',
558 )
561 )
559 coreconfigitem('ui', 'report_untrusted',
562 coreconfigitem('ui', 'report_untrusted',
560 default=True,
563 default=True,
561 )
564 )
562 coreconfigitem('ui', 'rollback',
565 coreconfigitem('ui', 'rollback',
563 default=True,
566 default=True,
564 )
567 )
565 coreconfigitem('ui', 'slash',
568 coreconfigitem('ui', 'slash',
566 default=False,
569 default=False,
567 )
570 )
568 coreconfigitem('ui', 'ssh',
571 coreconfigitem('ui', 'ssh',
569 default='ssh',
572 default='ssh',
570 )
573 )
571 coreconfigitem('ui', 'statuscopies',
574 coreconfigitem('ui', 'statuscopies',
572 default=False,
575 default=False,
573 )
576 )
574 coreconfigitem('ui', 'strict',
577 coreconfigitem('ui', 'strict',
575 default=False,
578 default=False,
576 )
579 )
577 coreconfigitem('ui', 'style',
580 coreconfigitem('ui', 'style',
578 default='',
581 default='',
579 )
582 )
580 coreconfigitem('ui', 'supportcontact',
583 coreconfigitem('ui', 'supportcontact',
581 default=None,
584 default=None,
582 )
585 )
583 coreconfigitem('ui', 'textwidth',
586 coreconfigitem('ui', 'textwidth',
584 default=78,
587 default=78,
585 )
588 )
586 coreconfigitem('ui', 'timeout',
589 coreconfigitem('ui', 'timeout',
587 default='600',
590 default='600',
588 )
591 )
589 coreconfigitem('ui', 'traceback',
592 coreconfigitem('ui', 'traceback',
590 default=False,
593 default=False,
591 )
594 )
592 coreconfigitem('ui', 'tweakdefaults',
595 coreconfigitem('ui', 'tweakdefaults',
593 default=False,
596 default=False,
594 )
597 )
595 coreconfigitem('ui', 'usehttp2',
598 coreconfigitem('ui', 'usehttp2',
596 default=False,
599 default=False,
597 )
600 )
598 coreconfigitem('ui', 'username',
601 coreconfigitem('ui', 'username',
599 alias=[('ui', 'user')]
602 alias=[('ui', 'user')]
600 )
603 )
601 coreconfigitem('ui', 'verbose',
604 coreconfigitem('ui', 'verbose',
602 default=False,
605 default=False,
603 )
606 )
604 coreconfigitem('verify', 'skipflags',
607 coreconfigitem('verify', 'skipflags',
605 default=None,
608 default=None,
606 )
609 )
607 coreconfigitem('web', 'accesslog',
610 coreconfigitem('web', 'accesslog',
608 default='-',
611 default='-',
609 )
612 )
610 coreconfigitem('web', 'address',
613 coreconfigitem('web', 'address',
611 default='',
614 default='',
612 )
615 )
613 coreconfigitem('web', 'allow_archive',
616 coreconfigitem('web', 'allow_archive',
614 default=list,
617 default=list,
615 )
618 )
616 coreconfigitem('web', 'allow_read',
619 coreconfigitem('web', 'allow_read',
617 default=list,
620 default=list,
618 )
621 )
619 coreconfigitem('web', 'baseurl',
622 coreconfigitem('web', 'baseurl',
620 default=None,
623 default=None,
621 )
624 )
622 coreconfigitem('web', 'cacerts',
625 coreconfigitem('web', 'cacerts',
623 default=None,
626 default=None,
624 )
627 )
625 coreconfigitem('web', 'certificate',
628 coreconfigitem('web', 'certificate',
626 default=None,
629 default=None,
627 )
630 )
628 coreconfigitem('web', 'collapse',
631 coreconfigitem('web', 'collapse',
629 default=False,
632 default=False,
630 )
633 )
631 coreconfigitem('web', 'csp',
634 coreconfigitem('web', 'csp',
632 default=None,
635 default=None,
633 )
636 )
634 coreconfigitem('web', 'deny_read',
637 coreconfigitem('web', 'deny_read',
635 default=list,
638 default=list,
636 )
639 )
637 coreconfigitem('web', 'descend',
640 coreconfigitem('web', 'descend',
638 default=True,
641 default=True,
639 )
642 )
640 coreconfigitem('web', 'description',
643 coreconfigitem('web', 'description',
641 default="",
644 default="",
642 )
645 )
643 coreconfigitem('web', 'encoding',
646 coreconfigitem('web', 'encoding',
644 default=lambda: encoding.encoding,
647 default=lambda: encoding.encoding,
645 )
648 )
646 coreconfigitem('web', 'errorlog',
649 coreconfigitem('web', 'errorlog',
647 default='-',
650 default='-',
648 )
651 )
649 coreconfigitem('web', 'ipv6',
652 coreconfigitem('web', 'ipv6',
650 default=False,
653 default=False,
651 )
654 )
652 coreconfigitem('web', 'port',
655 coreconfigitem('web', 'port',
653 default=8000,
656 default=8000,
654 )
657 )
655 coreconfigitem('web', 'prefix',
658 coreconfigitem('web', 'prefix',
656 default='',
659 default='',
657 )
660 )
658 coreconfigitem('web', 'refreshinterval',
661 coreconfigitem('web', 'refreshinterval',
659 default=20,
662 default=20,
660 )
663 )
661 coreconfigitem('web', 'stripes',
664 coreconfigitem('web', 'stripes',
662 default=1,
665 default=1,
663 )
666 )
664 coreconfigitem('web', 'style',
667 coreconfigitem('web', 'style',
665 default='paper',
668 default='paper',
666 )
669 )
667 coreconfigitem('web', 'templates',
670 coreconfigitem('web', 'templates',
668 default=None,
671 default=None,
669 )
672 )
670 coreconfigitem('worker', 'backgroundclose',
673 coreconfigitem('worker', 'backgroundclose',
671 default=dynamicdefault,
674 default=dynamicdefault,
672 )
675 )
673 # Windows defaults to a limit of 512 open files. A buffer of 128
676 # Windows defaults to a limit of 512 open files. A buffer of 128
674 # should give us enough headway.
677 # should give us enough headway.
675 coreconfigitem('worker', 'backgroundclosemaxqueue',
678 coreconfigitem('worker', 'backgroundclosemaxqueue',
676 default=384,
679 default=384,
677 )
680 )
678 coreconfigitem('worker', 'backgroundcloseminfilecount',
681 coreconfigitem('worker', 'backgroundcloseminfilecount',
679 default=2048,
682 default=2048,
680 )
683 )
681 coreconfigitem('worker', 'backgroundclosethreadcount',
684 coreconfigitem('worker', 'backgroundclosethreadcount',
682 default=4,
685 default=4,
683 )
686 )
684 coreconfigitem('worker', 'numcpus',
687 coreconfigitem('worker', 'numcpus',
685 default=None,
688 default=None,
686 )
689 )
General Comments 0
You need to be logged in to leave comments. Login now