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