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