##// END OF EJS Templates
configitems: register the 'smtp.port' config
Boris Feld -
r34479:a27718ef default
parent child Browse files
Show More
@@ -1,683 +1,686
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', 'method',
149 coreconfigitem('email', 'method',
150 default='smtp',
150 default='smtp',
151 )
151 )
152 coreconfigitem('experimental', 'bundle-phases',
152 coreconfigitem('experimental', 'bundle-phases',
153 default=False,
153 default=False,
154 )
154 )
155 coreconfigitem('experimental', 'bundle2-advertise',
155 coreconfigitem('experimental', 'bundle2-advertise',
156 default=True,
156 default=True,
157 )
157 )
158 coreconfigitem('experimental', 'bundle2-output-capture',
158 coreconfigitem('experimental', 'bundle2-output-capture',
159 default=False,
159 default=False,
160 )
160 )
161 coreconfigitem('experimental', 'bundle2.pushback',
161 coreconfigitem('experimental', 'bundle2.pushback',
162 default=False,
162 default=False,
163 )
163 )
164 coreconfigitem('experimental', 'bundle2lazylocking',
164 coreconfigitem('experimental', 'bundle2lazylocking',
165 default=False,
165 default=False,
166 )
166 )
167 coreconfigitem('experimental', 'bundlecomplevel',
167 coreconfigitem('experimental', 'bundlecomplevel',
168 default=None,
168 default=None,
169 )
169 )
170 coreconfigitem('experimental', 'changegroup3',
170 coreconfigitem('experimental', 'changegroup3',
171 default=False,
171 default=False,
172 )
172 )
173 coreconfigitem('experimental', 'clientcompressionengines',
173 coreconfigitem('experimental', 'clientcompressionengines',
174 default=list,
174 default=list,
175 )
175 )
176 coreconfigitem('experimental', 'copytrace',
176 coreconfigitem('experimental', 'copytrace',
177 default='on',
177 default='on',
178 )
178 )
179 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
179 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
180 default=100,
180 default=100,
181 )
181 )
182 coreconfigitem('experimental', 'crecordtest',
182 coreconfigitem('experimental', 'crecordtest',
183 default=None,
183 default=None,
184 )
184 )
185 coreconfigitem('experimental', 'editortmpinhg',
185 coreconfigitem('experimental', 'editortmpinhg',
186 default=False,
186 default=False,
187 )
187 )
188 coreconfigitem('experimental', 'stabilization',
188 coreconfigitem('experimental', 'stabilization',
189 default=list,
189 default=list,
190 alias=[('experimental', 'evolution')],
190 alias=[('experimental', 'evolution')],
191 )
191 )
192 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
192 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
193 default=False,
193 default=False,
194 alias=[('experimental', 'evolution.bundle-obsmarker')],
194 alias=[('experimental', 'evolution.bundle-obsmarker')],
195 )
195 )
196 coreconfigitem('experimental', 'stabilization.track-operation',
196 coreconfigitem('experimental', 'stabilization.track-operation',
197 default=True,
197 default=True,
198 alias=[('experimental', 'evolution.track-operation')]
198 alias=[('experimental', 'evolution.track-operation')]
199 )
199 )
200 coreconfigitem('experimental', 'exportableenviron',
200 coreconfigitem('experimental', 'exportableenviron',
201 default=list,
201 default=list,
202 )
202 )
203 coreconfigitem('experimental', 'extendedheader.index',
203 coreconfigitem('experimental', 'extendedheader.index',
204 default=None,
204 default=None,
205 )
205 )
206 coreconfigitem('experimental', 'extendedheader.similarity',
206 coreconfigitem('experimental', 'extendedheader.similarity',
207 default=False,
207 default=False,
208 )
208 )
209 coreconfigitem('experimental', 'format.compression',
209 coreconfigitem('experimental', 'format.compression',
210 default='zlib',
210 default='zlib',
211 )
211 )
212 coreconfigitem('experimental', 'graphshorten',
212 coreconfigitem('experimental', 'graphshorten',
213 default=False,
213 default=False,
214 )
214 )
215 coreconfigitem('experimental', 'hook-track-tags',
215 coreconfigitem('experimental', 'hook-track-tags',
216 default=False,
216 default=False,
217 )
217 )
218 coreconfigitem('experimental', 'httppostargs',
218 coreconfigitem('experimental', 'httppostargs',
219 default=False,
219 default=False,
220 )
220 )
221 coreconfigitem('experimental', 'manifestv2',
221 coreconfigitem('experimental', 'manifestv2',
222 default=False,
222 default=False,
223 )
223 )
224 coreconfigitem('experimental', 'mergedriver',
224 coreconfigitem('experimental', 'mergedriver',
225 default=None,
225 default=None,
226 )
226 )
227 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
227 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
228 default=False,
228 default=False,
229 )
229 )
230 coreconfigitem('experimental', 'rebase.multidest',
230 coreconfigitem('experimental', 'rebase.multidest',
231 default=False,
231 default=False,
232 )
232 )
233 coreconfigitem('experimental', 'revertalternateinteractivemode',
233 coreconfigitem('experimental', 'revertalternateinteractivemode',
234 default=True,
234 default=True,
235 )
235 )
236 coreconfigitem('experimental', 'revlogv2',
236 coreconfigitem('experimental', 'revlogv2',
237 default=None,
237 default=None,
238 )
238 )
239 coreconfigitem('experimental', 'spacemovesdown',
239 coreconfigitem('experimental', 'spacemovesdown',
240 default=False,
240 default=False,
241 )
241 )
242 coreconfigitem('experimental', 'treemanifest',
242 coreconfigitem('experimental', 'treemanifest',
243 default=False,
243 default=False,
244 )
244 )
245 coreconfigitem('experimental', 'updatecheck',
245 coreconfigitem('experimental', 'updatecheck',
246 default=None,
246 default=None,
247 )
247 )
248 coreconfigitem('format', 'aggressivemergedeltas',
248 coreconfigitem('format', 'aggressivemergedeltas',
249 default=False,
249 default=False,
250 )
250 )
251 coreconfigitem('format', 'chunkcachesize',
251 coreconfigitem('format', 'chunkcachesize',
252 default=None,
252 default=None,
253 )
253 )
254 coreconfigitem('format', 'dotencode',
254 coreconfigitem('format', 'dotencode',
255 default=True,
255 default=True,
256 )
256 )
257 coreconfigitem('format', 'generaldelta',
257 coreconfigitem('format', 'generaldelta',
258 default=False,
258 default=False,
259 )
259 )
260 coreconfigitem('format', 'manifestcachesize',
260 coreconfigitem('format', 'manifestcachesize',
261 default=None,
261 default=None,
262 )
262 )
263 coreconfigitem('format', 'maxchainlen',
263 coreconfigitem('format', 'maxchainlen',
264 default=None,
264 default=None,
265 )
265 )
266 coreconfigitem('format', 'obsstore-version',
266 coreconfigitem('format', 'obsstore-version',
267 default=None,
267 default=None,
268 )
268 )
269 coreconfigitem('format', 'usefncache',
269 coreconfigitem('format', 'usefncache',
270 default=True,
270 default=True,
271 )
271 )
272 coreconfigitem('format', 'usegeneraldelta',
272 coreconfigitem('format', 'usegeneraldelta',
273 default=True,
273 default=True,
274 )
274 )
275 coreconfigitem('format', 'usestore',
275 coreconfigitem('format', 'usestore',
276 default=True,
276 default=True,
277 )
277 )
278 coreconfigitem('hostsecurity', 'ciphers',
278 coreconfigitem('hostsecurity', 'ciphers',
279 default=None,
279 default=None,
280 )
280 )
281 coreconfigitem('hostsecurity', 'disabletls10warning',
281 coreconfigitem('hostsecurity', 'disabletls10warning',
282 default=False,
282 default=False,
283 )
283 )
284 coreconfigitem('http_proxy', 'always',
284 coreconfigitem('http_proxy', 'always',
285 default=False,
285 default=False,
286 )
286 )
287 coreconfigitem('http_proxy', 'host',
287 coreconfigitem('http_proxy', 'host',
288 default=None,
288 default=None,
289 )
289 )
290 coreconfigitem('http_proxy', 'no',
290 coreconfigitem('http_proxy', 'no',
291 default=list,
291 default=list,
292 )
292 )
293 coreconfigitem('http_proxy', 'passwd',
293 coreconfigitem('http_proxy', 'passwd',
294 default=None,
294 default=None,
295 )
295 )
296 coreconfigitem('http_proxy', 'user',
296 coreconfigitem('http_proxy', 'user',
297 default=None,
297 default=None,
298 )
298 )
299 coreconfigitem('merge', 'followcopies',
299 coreconfigitem('merge', 'followcopies',
300 default=True,
300 default=True,
301 )
301 )
302 coreconfigitem('pager', 'ignore',
302 coreconfigitem('pager', 'ignore',
303 default=list,
303 default=list,
304 )
304 )
305 coreconfigitem('patch', 'eol',
305 coreconfigitem('patch', 'eol',
306 default='strict',
306 default='strict',
307 )
307 )
308 coreconfigitem('patch', 'fuzz',
308 coreconfigitem('patch', 'fuzz',
309 default=2,
309 default=2,
310 )
310 )
311 coreconfigitem('paths', 'default',
311 coreconfigitem('paths', 'default',
312 default=None,
312 default=None,
313 )
313 )
314 coreconfigitem('paths', 'default-push',
314 coreconfigitem('paths', 'default-push',
315 default=None,
315 default=None,
316 )
316 )
317 coreconfigitem('phases', 'checksubrepos',
317 coreconfigitem('phases', 'checksubrepos',
318 default='follow',
318 default='follow',
319 )
319 )
320 coreconfigitem('phases', 'new-commit',
320 coreconfigitem('phases', 'new-commit',
321 default=dynamicdefault,
321 default=dynamicdefault,
322 )
322 )
323 coreconfigitem('phases', 'publish',
323 coreconfigitem('phases', 'publish',
324 default=True,
324 default=True,
325 )
325 )
326 coreconfigitem('profiling', 'enabled',
326 coreconfigitem('profiling', 'enabled',
327 default=False,
327 default=False,
328 )
328 )
329 coreconfigitem('profiling', 'format',
329 coreconfigitem('profiling', 'format',
330 default='text',
330 default='text',
331 )
331 )
332 coreconfigitem('profiling', 'freq',
332 coreconfigitem('profiling', 'freq',
333 default=1000,
333 default=1000,
334 )
334 )
335 coreconfigitem('profiling', 'limit',
335 coreconfigitem('profiling', 'limit',
336 default=30,
336 default=30,
337 )
337 )
338 coreconfigitem('profiling', 'nested',
338 coreconfigitem('profiling', 'nested',
339 default=0,
339 default=0,
340 )
340 )
341 coreconfigitem('profiling', 'output',
341 coreconfigitem('profiling', 'output',
342 default=None,
342 default=None,
343 )
343 )
344 coreconfigitem('profiling', 'showmax',
344 coreconfigitem('profiling', 'showmax',
345 default=0.999,
345 default=0.999,
346 )
346 )
347 coreconfigitem('profiling', 'showmin',
347 coreconfigitem('profiling', 'showmin',
348 default=dynamicdefault,
348 default=dynamicdefault,
349 )
349 )
350 coreconfigitem('profiling', 'sort',
350 coreconfigitem('profiling', 'sort',
351 default='inlinetime',
351 default='inlinetime',
352 )
352 )
353 coreconfigitem('profiling', 'statformat',
353 coreconfigitem('profiling', 'statformat',
354 default='hotpath',
354 default='hotpath',
355 )
355 )
356 coreconfigitem('profiling', 'type',
356 coreconfigitem('profiling', 'type',
357 default='stat',
357 default='stat',
358 )
358 )
359 coreconfigitem('progress', 'assume-tty',
359 coreconfigitem('progress', 'assume-tty',
360 default=False,
360 default=False,
361 )
361 )
362 coreconfigitem('progress', 'changedelay',
362 coreconfigitem('progress', 'changedelay',
363 default=1,
363 default=1,
364 )
364 )
365 coreconfigitem('progress', 'clear-complete',
365 coreconfigitem('progress', 'clear-complete',
366 default=True,
366 default=True,
367 )
367 )
368 coreconfigitem('progress', 'debug',
368 coreconfigitem('progress', 'debug',
369 default=False,
369 default=False,
370 )
370 )
371 coreconfigitem('progress', 'delay',
371 coreconfigitem('progress', 'delay',
372 default=3,
372 default=3,
373 )
373 )
374 coreconfigitem('progress', 'disable',
374 coreconfigitem('progress', 'disable',
375 default=False,
375 default=False,
376 )
376 )
377 coreconfigitem('progress', 'estimateinterval',
377 coreconfigitem('progress', 'estimateinterval',
378 default=60.0,
378 default=60.0,
379 )
379 )
380 coreconfigitem('progress', 'refresh',
380 coreconfigitem('progress', 'refresh',
381 default=0.1,
381 default=0.1,
382 )
382 )
383 coreconfigitem('progress', 'width',
383 coreconfigitem('progress', 'width',
384 default=dynamicdefault,
384 default=dynamicdefault,
385 )
385 )
386 coreconfigitem('push', 'pushvars.server',
386 coreconfigitem('push', 'pushvars.server',
387 default=False,
387 default=False,
388 )
388 )
389 coreconfigitem('server', 'bundle1',
389 coreconfigitem('server', 'bundle1',
390 default=True,
390 default=True,
391 )
391 )
392 coreconfigitem('server', 'bundle1gd',
392 coreconfigitem('server', 'bundle1gd',
393 default=None,
393 default=None,
394 )
394 )
395 coreconfigitem('server', 'compressionengines',
395 coreconfigitem('server', 'compressionengines',
396 default=list,
396 default=list,
397 )
397 )
398 coreconfigitem('server', 'concurrent-push-mode',
398 coreconfigitem('server', 'concurrent-push-mode',
399 default='strict',
399 default='strict',
400 )
400 )
401 coreconfigitem('server', 'disablefullbundle',
401 coreconfigitem('server', 'disablefullbundle',
402 default=False,
402 default=False,
403 )
403 )
404 coreconfigitem('server', 'maxhttpheaderlen',
404 coreconfigitem('server', 'maxhttpheaderlen',
405 default=1024,
405 default=1024,
406 )
406 )
407 coreconfigitem('server', 'preferuncompressed',
407 coreconfigitem('server', 'preferuncompressed',
408 default=False,
408 default=False,
409 )
409 )
410 coreconfigitem('server', 'uncompressed',
410 coreconfigitem('server', 'uncompressed',
411 default=True,
411 default=True,
412 )
412 )
413 coreconfigitem('server', 'uncompressedallowsecret',
413 coreconfigitem('server', 'uncompressedallowsecret',
414 default=False,
414 default=False,
415 )
415 )
416 coreconfigitem('server', 'validate',
416 coreconfigitem('server', 'validate',
417 default=False,
417 default=False,
418 )
418 )
419 coreconfigitem('server', 'zliblevel',
419 coreconfigitem('server', 'zliblevel',
420 default=-1,
420 default=-1,
421 )
421 )
422 coreconfigitem('smtp', 'host',
422 coreconfigitem('smtp', 'host',
423 default=None,
423 default=None,
424 )
424 )
425 coreconfigitem('smtp', 'local_hostname',
425 coreconfigitem('smtp', 'local_hostname',
426 default=None,
426 default=None,
427 )
427 )
428 coreconfigitem('smtp', 'password',
428 coreconfigitem('smtp', 'password',
429 default=None,
429 default=None,
430 )
430 )
431 coreconfigitem('smtp', 'port',
432 default=dynamicdefault,
433 )
431 coreconfigitem('smtp', 'tls',
434 coreconfigitem('smtp', 'tls',
432 default='none',
435 default='none',
433 )
436 )
434 coreconfigitem('smtp', 'username',
437 coreconfigitem('smtp', 'username',
435 default=None,
438 default=None,
436 )
439 )
437 coreconfigitem('sparse', 'missingwarning',
440 coreconfigitem('sparse', 'missingwarning',
438 default=True,
441 default=True,
439 )
442 )
440 coreconfigitem('trusted', 'groups',
443 coreconfigitem('trusted', 'groups',
441 default=list,
444 default=list,
442 )
445 )
443 coreconfigitem('trusted', 'users',
446 coreconfigitem('trusted', 'users',
444 default=list,
447 default=list,
445 )
448 )
446 coreconfigitem('ui', '_usedassubrepo',
449 coreconfigitem('ui', '_usedassubrepo',
447 default=False,
450 default=False,
448 )
451 )
449 coreconfigitem('ui', 'allowemptycommit',
452 coreconfigitem('ui', 'allowemptycommit',
450 default=False,
453 default=False,
451 )
454 )
452 coreconfigitem('ui', 'archivemeta',
455 coreconfigitem('ui', 'archivemeta',
453 default=True,
456 default=True,
454 )
457 )
455 coreconfigitem('ui', 'askusername',
458 coreconfigitem('ui', 'askusername',
456 default=False,
459 default=False,
457 )
460 )
458 coreconfigitem('ui', 'clonebundlefallback',
461 coreconfigitem('ui', 'clonebundlefallback',
459 default=False,
462 default=False,
460 )
463 )
461 coreconfigitem('ui', 'clonebundleprefers',
464 coreconfigitem('ui', 'clonebundleprefers',
462 default=list,
465 default=list,
463 )
466 )
464 coreconfigitem('ui', 'clonebundles',
467 coreconfigitem('ui', 'clonebundles',
465 default=True,
468 default=True,
466 )
469 )
467 coreconfigitem('ui', 'color',
470 coreconfigitem('ui', 'color',
468 default='auto',
471 default='auto',
469 )
472 )
470 coreconfigitem('ui', 'commitsubrepos',
473 coreconfigitem('ui', 'commitsubrepos',
471 default=False,
474 default=False,
472 )
475 )
473 coreconfigitem('ui', 'debug',
476 coreconfigitem('ui', 'debug',
474 default=False,
477 default=False,
475 )
478 )
476 coreconfigitem('ui', 'debugger',
479 coreconfigitem('ui', 'debugger',
477 default=None,
480 default=None,
478 )
481 )
479 coreconfigitem('ui', 'fallbackencoding',
482 coreconfigitem('ui', 'fallbackencoding',
480 default=None,
483 default=None,
481 )
484 )
482 coreconfigitem('ui', 'forcecwd',
485 coreconfigitem('ui', 'forcecwd',
483 default=None,
486 default=None,
484 )
487 )
485 coreconfigitem('ui', 'forcemerge',
488 coreconfigitem('ui', 'forcemerge',
486 default=None,
489 default=None,
487 )
490 )
488 coreconfigitem('ui', 'formatdebug',
491 coreconfigitem('ui', 'formatdebug',
489 default=False,
492 default=False,
490 )
493 )
491 coreconfigitem('ui', 'formatjson',
494 coreconfigitem('ui', 'formatjson',
492 default=False,
495 default=False,
493 )
496 )
494 coreconfigitem('ui', 'formatted',
497 coreconfigitem('ui', 'formatted',
495 default=None,
498 default=None,
496 )
499 )
497 coreconfigitem('ui', 'graphnodetemplate',
500 coreconfigitem('ui', 'graphnodetemplate',
498 default=None,
501 default=None,
499 )
502 )
500 coreconfigitem('ui', 'http2debuglevel',
503 coreconfigitem('ui', 'http2debuglevel',
501 default=None,
504 default=None,
502 )
505 )
503 coreconfigitem('ui', 'interactive',
506 coreconfigitem('ui', 'interactive',
504 default=None,
507 default=None,
505 )
508 )
506 coreconfigitem('ui', 'interface',
509 coreconfigitem('ui', 'interface',
507 default=None,
510 default=None,
508 )
511 )
509 coreconfigitem('ui', 'logblockedtimes',
512 coreconfigitem('ui', 'logblockedtimes',
510 default=False,
513 default=False,
511 )
514 )
512 coreconfigitem('ui', 'logtemplate',
515 coreconfigitem('ui', 'logtemplate',
513 default=None,
516 default=None,
514 )
517 )
515 coreconfigitem('ui', 'merge',
518 coreconfigitem('ui', 'merge',
516 default=None,
519 default=None,
517 )
520 )
518 coreconfigitem('ui', 'mergemarkers',
521 coreconfigitem('ui', 'mergemarkers',
519 default='basic',
522 default='basic',
520 )
523 )
521 coreconfigitem('ui', 'mergemarkertemplate',
524 coreconfigitem('ui', 'mergemarkertemplate',
522 default=('{node|short} '
525 default=('{node|short} '
523 '{ifeq(tags, "tip", "", '
526 '{ifeq(tags, "tip", "", '
524 'ifeq(tags, "", "", "{tags} "))}'
527 'ifeq(tags, "", "", "{tags} "))}'
525 '{if(bookmarks, "{bookmarks} ")}'
528 '{if(bookmarks, "{bookmarks} ")}'
526 '{ifeq(branch, "default", "", "{branch} ")}'
529 '{ifeq(branch, "default", "", "{branch} ")}'
527 '- {author|user}: {desc|firstline}')
530 '- {author|user}: {desc|firstline}')
528 )
531 )
529 coreconfigitem('ui', 'nontty',
532 coreconfigitem('ui', 'nontty',
530 default=False,
533 default=False,
531 )
534 )
532 coreconfigitem('ui', 'origbackuppath',
535 coreconfigitem('ui', 'origbackuppath',
533 default=None,
536 default=None,
534 )
537 )
535 coreconfigitem('ui', 'paginate',
538 coreconfigitem('ui', 'paginate',
536 default=True,
539 default=True,
537 )
540 )
538 coreconfigitem('ui', 'patch',
541 coreconfigitem('ui', 'patch',
539 default=None,
542 default=None,
540 )
543 )
541 coreconfigitem('ui', 'portablefilenames',
544 coreconfigitem('ui', 'portablefilenames',
542 default='warn',
545 default='warn',
543 )
546 )
544 coreconfigitem('ui', 'promptecho',
547 coreconfigitem('ui', 'promptecho',
545 default=False,
548 default=False,
546 )
549 )
547 coreconfigitem('ui', 'quiet',
550 coreconfigitem('ui', 'quiet',
548 default=False,
551 default=False,
549 )
552 )
550 coreconfigitem('ui', 'quietbookmarkmove',
553 coreconfigitem('ui', 'quietbookmarkmove',
551 default=False,
554 default=False,
552 )
555 )
553 coreconfigitem('ui', 'remotecmd',
556 coreconfigitem('ui', 'remotecmd',
554 default='hg',
557 default='hg',
555 )
558 )
556 coreconfigitem('ui', 'report_untrusted',
559 coreconfigitem('ui', 'report_untrusted',
557 default=True,
560 default=True,
558 )
561 )
559 coreconfigitem('ui', 'rollback',
562 coreconfigitem('ui', 'rollback',
560 default=True,
563 default=True,
561 )
564 )
562 coreconfigitem('ui', 'slash',
565 coreconfigitem('ui', 'slash',
563 default=False,
566 default=False,
564 )
567 )
565 coreconfigitem('ui', 'ssh',
568 coreconfigitem('ui', 'ssh',
566 default='ssh',
569 default='ssh',
567 )
570 )
568 coreconfigitem('ui', 'statuscopies',
571 coreconfigitem('ui', 'statuscopies',
569 default=False,
572 default=False,
570 )
573 )
571 coreconfigitem('ui', 'strict',
574 coreconfigitem('ui', 'strict',
572 default=False,
575 default=False,
573 )
576 )
574 coreconfigitem('ui', 'style',
577 coreconfigitem('ui', 'style',
575 default='',
578 default='',
576 )
579 )
577 coreconfigitem('ui', 'supportcontact',
580 coreconfigitem('ui', 'supportcontact',
578 default=None,
581 default=None,
579 )
582 )
580 coreconfigitem('ui', 'textwidth',
583 coreconfigitem('ui', 'textwidth',
581 default=78,
584 default=78,
582 )
585 )
583 coreconfigitem('ui', 'timeout',
586 coreconfigitem('ui', 'timeout',
584 default='600',
587 default='600',
585 )
588 )
586 coreconfigitem('ui', 'traceback',
589 coreconfigitem('ui', 'traceback',
587 default=False,
590 default=False,
588 )
591 )
589 coreconfigitem('ui', 'tweakdefaults',
592 coreconfigitem('ui', 'tweakdefaults',
590 default=False,
593 default=False,
591 )
594 )
592 coreconfigitem('ui', 'usehttp2',
595 coreconfigitem('ui', 'usehttp2',
593 default=False,
596 default=False,
594 )
597 )
595 coreconfigitem('ui', 'username',
598 coreconfigitem('ui', 'username',
596 alias=[('ui', 'user')]
599 alias=[('ui', 'user')]
597 )
600 )
598 coreconfigitem('ui', 'verbose',
601 coreconfigitem('ui', 'verbose',
599 default=False,
602 default=False,
600 )
603 )
601 coreconfigitem('verify', 'skipflags',
604 coreconfigitem('verify', 'skipflags',
602 default=None,
605 default=None,
603 )
606 )
604 coreconfigitem('web', 'accesslog',
607 coreconfigitem('web', 'accesslog',
605 default='-',
608 default='-',
606 )
609 )
607 coreconfigitem('web', 'address',
610 coreconfigitem('web', 'address',
608 default='',
611 default='',
609 )
612 )
610 coreconfigitem('web', 'allow_archive',
613 coreconfigitem('web', 'allow_archive',
611 default=list,
614 default=list,
612 )
615 )
613 coreconfigitem('web', 'allow_read',
616 coreconfigitem('web', 'allow_read',
614 default=list,
617 default=list,
615 )
618 )
616 coreconfigitem('web', 'baseurl',
619 coreconfigitem('web', 'baseurl',
617 default=None,
620 default=None,
618 )
621 )
619 coreconfigitem('web', 'cacerts',
622 coreconfigitem('web', 'cacerts',
620 default=None,
623 default=None,
621 )
624 )
622 coreconfigitem('web', 'certificate',
625 coreconfigitem('web', 'certificate',
623 default=None,
626 default=None,
624 )
627 )
625 coreconfigitem('web', 'collapse',
628 coreconfigitem('web', 'collapse',
626 default=False,
629 default=False,
627 )
630 )
628 coreconfigitem('web', 'csp',
631 coreconfigitem('web', 'csp',
629 default=None,
632 default=None,
630 )
633 )
631 coreconfigitem('web', 'deny_read',
634 coreconfigitem('web', 'deny_read',
632 default=list,
635 default=list,
633 )
636 )
634 coreconfigitem('web', 'descend',
637 coreconfigitem('web', 'descend',
635 default=True,
638 default=True,
636 )
639 )
637 coreconfigitem('web', 'description',
640 coreconfigitem('web', 'description',
638 default="",
641 default="",
639 )
642 )
640 coreconfigitem('web', 'encoding',
643 coreconfigitem('web', 'encoding',
641 default=lambda: encoding.encoding,
644 default=lambda: encoding.encoding,
642 )
645 )
643 coreconfigitem('web', 'errorlog',
646 coreconfigitem('web', 'errorlog',
644 default='-',
647 default='-',
645 )
648 )
646 coreconfigitem('web', 'ipv6',
649 coreconfigitem('web', 'ipv6',
647 default=False,
650 default=False,
648 )
651 )
649 coreconfigitem('web', 'port',
652 coreconfigitem('web', 'port',
650 default=8000,
653 default=8000,
651 )
654 )
652 coreconfigitem('web', 'prefix',
655 coreconfigitem('web', 'prefix',
653 default='',
656 default='',
654 )
657 )
655 coreconfigitem('web', 'refreshinterval',
658 coreconfigitem('web', 'refreshinterval',
656 default=20,
659 default=20,
657 )
660 )
658 coreconfigitem('web', 'stripes',
661 coreconfigitem('web', 'stripes',
659 default=1,
662 default=1,
660 )
663 )
661 coreconfigitem('web', 'style',
664 coreconfigitem('web', 'style',
662 default='paper',
665 default='paper',
663 )
666 )
664 coreconfigitem('web', 'templates',
667 coreconfigitem('web', 'templates',
665 default=None,
668 default=None,
666 )
669 )
667 coreconfigitem('worker', 'backgroundclose',
670 coreconfigitem('worker', 'backgroundclose',
668 default=dynamicdefault,
671 default=dynamicdefault,
669 )
672 )
670 # Windows defaults to a limit of 512 open files. A buffer of 128
673 # Windows defaults to a limit of 512 open files. A buffer of 128
671 # should give us enough headway.
674 # should give us enough headway.
672 coreconfigitem('worker', 'backgroundclosemaxqueue',
675 coreconfigitem('worker', 'backgroundclosemaxqueue',
673 default=384,
676 default=384,
674 )
677 )
675 coreconfigitem('worker', 'backgroundcloseminfilecount',
678 coreconfigitem('worker', 'backgroundcloseminfilecount',
676 default=2048,
679 default=2048,
677 )
680 )
678 coreconfigitem('worker', 'backgroundclosethreadcount',
681 coreconfigitem('worker', 'backgroundclosethreadcount',
679 default=4,
682 default=4,
680 )
683 )
681 coreconfigitem('worker', 'numcpus',
684 coreconfigitem('worker', 'numcpus',
682 default=None,
685 default=None,
683 )
686 )
General Comments 0
You need to be logged in to leave comments. Login now