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