##// END OF EJS Templates
configitems: register the 'profiling.showmin' config
Boris Feld -
r34412:f5c16e65 default
parent child Browse files
Show More
@@ -1,674 +1,677 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('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', 'publish',
320 coreconfigitem('phases', 'publish',
321 default=True,
321 default=True,
322 )
322 )
323 coreconfigitem('profiling', 'enabled',
323 coreconfigitem('profiling', 'enabled',
324 default=False,
324 default=False,
325 )
325 )
326 coreconfigitem('profiling', 'format',
326 coreconfigitem('profiling', 'format',
327 default='text',
327 default='text',
328 )
328 )
329 coreconfigitem('profiling', 'freq',
329 coreconfigitem('profiling', 'freq',
330 default=1000,
330 default=1000,
331 )
331 )
332 coreconfigitem('profiling', 'limit',
332 coreconfigitem('profiling', 'limit',
333 default=30,
333 default=30,
334 )
334 )
335 coreconfigitem('profiling', 'nested',
335 coreconfigitem('profiling', 'nested',
336 default=0,
336 default=0,
337 )
337 )
338 coreconfigitem('profiling', 'output',
338 coreconfigitem('profiling', 'output',
339 default=None,
339 default=None,
340 )
340 )
341 coreconfigitem('profiling', 'showmax',
341 coreconfigitem('profiling', 'showmax',
342 default=0.999,
342 default=0.999,
343 )
343 )
344 coreconfigitem('profiling', 'showmin',
345 default=dynamicdefault,
346 )
344 coreconfigitem('profiling', 'sort',
347 coreconfigitem('profiling', 'sort',
345 default='inlinetime',
348 default='inlinetime',
346 )
349 )
347 coreconfigitem('profiling', 'statformat',
350 coreconfigitem('profiling', 'statformat',
348 default='hotpath',
351 default='hotpath',
349 )
352 )
350 coreconfigitem('progress', 'assume-tty',
353 coreconfigitem('progress', 'assume-tty',
351 default=False,
354 default=False,
352 )
355 )
353 coreconfigitem('progress', 'changedelay',
356 coreconfigitem('progress', 'changedelay',
354 default=1,
357 default=1,
355 )
358 )
356 coreconfigitem('progress', 'clear-complete',
359 coreconfigitem('progress', 'clear-complete',
357 default=True,
360 default=True,
358 )
361 )
359 coreconfigitem('progress', 'debug',
362 coreconfigitem('progress', 'debug',
360 default=False,
363 default=False,
361 )
364 )
362 coreconfigitem('progress', 'delay',
365 coreconfigitem('progress', 'delay',
363 default=3,
366 default=3,
364 )
367 )
365 coreconfigitem('progress', 'disable',
368 coreconfigitem('progress', 'disable',
366 default=False,
369 default=False,
367 )
370 )
368 coreconfigitem('progress', 'estimateinterval',
371 coreconfigitem('progress', 'estimateinterval',
369 default=60.0,
372 default=60.0,
370 )
373 )
371 coreconfigitem('progress', 'refresh',
374 coreconfigitem('progress', 'refresh',
372 default=0.1,
375 default=0.1,
373 )
376 )
374 coreconfigitem('progress', 'width',
377 coreconfigitem('progress', 'width',
375 default=dynamicdefault,
378 default=dynamicdefault,
376 )
379 )
377 coreconfigitem('push', 'pushvars.server',
380 coreconfigitem('push', 'pushvars.server',
378 default=False,
381 default=False,
379 )
382 )
380 coreconfigitem('server', 'bundle1',
383 coreconfigitem('server', 'bundle1',
381 default=True,
384 default=True,
382 )
385 )
383 coreconfigitem('server', 'bundle1gd',
386 coreconfigitem('server', 'bundle1gd',
384 default=None,
387 default=None,
385 )
388 )
386 coreconfigitem('server', 'compressionengines',
389 coreconfigitem('server', 'compressionengines',
387 default=list,
390 default=list,
388 )
391 )
389 coreconfigitem('server', 'concurrent-push-mode',
392 coreconfigitem('server', 'concurrent-push-mode',
390 default='strict',
393 default='strict',
391 )
394 )
392 coreconfigitem('server', 'disablefullbundle',
395 coreconfigitem('server', 'disablefullbundle',
393 default=False,
396 default=False,
394 )
397 )
395 coreconfigitem('server', 'maxhttpheaderlen',
398 coreconfigitem('server', 'maxhttpheaderlen',
396 default=1024,
399 default=1024,
397 )
400 )
398 coreconfigitem('server', 'preferuncompressed',
401 coreconfigitem('server', 'preferuncompressed',
399 default=False,
402 default=False,
400 )
403 )
401 coreconfigitem('server', 'uncompressed',
404 coreconfigitem('server', 'uncompressed',
402 default=True,
405 default=True,
403 )
406 )
404 coreconfigitem('server', 'uncompressedallowsecret',
407 coreconfigitem('server', 'uncompressedallowsecret',
405 default=False,
408 default=False,
406 )
409 )
407 coreconfigitem('server', 'validate',
410 coreconfigitem('server', 'validate',
408 default=False,
411 default=False,
409 )
412 )
410 coreconfigitem('server', 'zliblevel',
413 coreconfigitem('server', 'zliblevel',
411 default=-1,
414 default=-1,
412 )
415 )
413 coreconfigitem('smtp', 'host',
416 coreconfigitem('smtp', 'host',
414 default=None,
417 default=None,
415 )
418 )
416 coreconfigitem('smtp', 'local_hostname',
419 coreconfigitem('smtp', 'local_hostname',
417 default=None,
420 default=None,
418 )
421 )
419 coreconfigitem('smtp', 'password',
422 coreconfigitem('smtp', 'password',
420 default=None,
423 default=None,
421 )
424 )
422 coreconfigitem('smtp', 'tls',
425 coreconfigitem('smtp', 'tls',
423 default='none',
426 default='none',
424 )
427 )
425 coreconfigitem('smtp', 'username',
428 coreconfigitem('smtp', 'username',
426 default=None,
429 default=None,
427 )
430 )
428 coreconfigitem('sparse', 'missingwarning',
431 coreconfigitem('sparse', 'missingwarning',
429 default=True,
432 default=True,
430 )
433 )
431 coreconfigitem('trusted', 'groups',
434 coreconfigitem('trusted', 'groups',
432 default=list,
435 default=list,
433 )
436 )
434 coreconfigitem('trusted', 'users',
437 coreconfigitem('trusted', 'users',
435 default=list,
438 default=list,
436 )
439 )
437 coreconfigitem('ui', '_usedassubrepo',
440 coreconfigitem('ui', '_usedassubrepo',
438 default=False,
441 default=False,
439 )
442 )
440 coreconfigitem('ui', 'allowemptycommit',
443 coreconfigitem('ui', 'allowemptycommit',
441 default=False,
444 default=False,
442 )
445 )
443 coreconfigitem('ui', 'archivemeta',
446 coreconfigitem('ui', 'archivemeta',
444 default=True,
447 default=True,
445 )
448 )
446 coreconfigitem('ui', 'askusername',
449 coreconfigitem('ui', 'askusername',
447 default=False,
450 default=False,
448 )
451 )
449 coreconfigitem('ui', 'clonebundlefallback',
452 coreconfigitem('ui', 'clonebundlefallback',
450 default=False,
453 default=False,
451 )
454 )
452 coreconfigitem('ui', 'clonebundleprefers',
455 coreconfigitem('ui', 'clonebundleprefers',
453 default=list,
456 default=list,
454 )
457 )
455 coreconfigitem('ui', 'clonebundles',
458 coreconfigitem('ui', 'clonebundles',
456 default=True,
459 default=True,
457 )
460 )
458 coreconfigitem('ui', 'color',
461 coreconfigitem('ui', 'color',
459 default='auto',
462 default='auto',
460 )
463 )
461 coreconfigitem('ui', 'commitsubrepos',
464 coreconfigitem('ui', 'commitsubrepos',
462 default=False,
465 default=False,
463 )
466 )
464 coreconfigitem('ui', 'debug',
467 coreconfigitem('ui', 'debug',
465 default=False,
468 default=False,
466 )
469 )
467 coreconfigitem('ui', 'debugger',
470 coreconfigitem('ui', 'debugger',
468 default=None,
471 default=None,
469 )
472 )
470 coreconfigitem('ui', 'fallbackencoding',
473 coreconfigitem('ui', 'fallbackencoding',
471 default=None,
474 default=None,
472 )
475 )
473 coreconfigitem('ui', 'forcecwd',
476 coreconfigitem('ui', 'forcecwd',
474 default=None,
477 default=None,
475 )
478 )
476 coreconfigitem('ui', 'forcemerge',
479 coreconfigitem('ui', 'forcemerge',
477 default=None,
480 default=None,
478 )
481 )
479 coreconfigitem('ui', 'formatdebug',
482 coreconfigitem('ui', 'formatdebug',
480 default=False,
483 default=False,
481 )
484 )
482 coreconfigitem('ui', 'formatjson',
485 coreconfigitem('ui', 'formatjson',
483 default=False,
486 default=False,
484 )
487 )
485 coreconfigitem('ui', 'formatted',
488 coreconfigitem('ui', 'formatted',
486 default=None,
489 default=None,
487 )
490 )
488 coreconfigitem('ui', 'graphnodetemplate',
491 coreconfigitem('ui', 'graphnodetemplate',
489 default=None,
492 default=None,
490 )
493 )
491 coreconfigitem('ui', 'http2debuglevel',
494 coreconfigitem('ui', 'http2debuglevel',
492 default=None,
495 default=None,
493 )
496 )
494 coreconfigitem('ui', 'interactive',
497 coreconfigitem('ui', 'interactive',
495 default=None,
498 default=None,
496 )
499 )
497 coreconfigitem('ui', 'interface',
500 coreconfigitem('ui', 'interface',
498 default=None,
501 default=None,
499 )
502 )
500 coreconfigitem('ui', 'logblockedtimes',
503 coreconfigitem('ui', 'logblockedtimes',
501 default=False,
504 default=False,
502 )
505 )
503 coreconfigitem('ui', 'logtemplate',
506 coreconfigitem('ui', 'logtemplate',
504 default=None,
507 default=None,
505 )
508 )
506 coreconfigitem('ui', 'merge',
509 coreconfigitem('ui', 'merge',
507 default=None,
510 default=None,
508 )
511 )
509 coreconfigitem('ui', 'mergemarkers',
512 coreconfigitem('ui', 'mergemarkers',
510 default='basic',
513 default='basic',
511 )
514 )
512 coreconfigitem('ui', 'mergemarkertemplate',
515 coreconfigitem('ui', 'mergemarkertemplate',
513 default=('{node|short} '
516 default=('{node|short} '
514 '{ifeq(tags, "tip", "", '
517 '{ifeq(tags, "tip", "", '
515 'ifeq(tags, "", "", "{tags} "))}'
518 'ifeq(tags, "", "", "{tags} "))}'
516 '{if(bookmarks, "{bookmarks} ")}'
519 '{if(bookmarks, "{bookmarks} ")}'
517 '{ifeq(branch, "default", "", "{branch} ")}'
520 '{ifeq(branch, "default", "", "{branch} ")}'
518 '- {author|user}: {desc|firstline}')
521 '- {author|user}: {desc|firstline}')
519 )
522 )
520 coreconfigitem('ui', 'nontty',
523 coreconfigitem('ui', 'nontty',
521 default=False,
524 default=False,
522 )
525 )
523 coreconfigitem('ui', 'origbackuppath',
526 coreconfigitem('ui', 'origbackuppath',
524 default=None,
527 default=None,
525 )
528 )
526 coreconfigitem('ui', 'paginate',
529 coreconfigitem('ui', 'paginate',
527 default=True,
530 default=True,
528 )
531 )
529 coreconfigitem('ui', 'patch',
532 coreconfigitem('ui', 'patch',
530 default=None,
533 default=None,
531 )
534 )
532 coreconfigitem('ui', 'portablefilenames',
535 coreconfigitem('ui', 'portablefilenames',
533 default='warn',
536 default='warn',
534 )
537 )
535 coreconfigitem('ui', 'promptecho',
538 coreconfigitem('ui', 'promptecho',
536 default=False,
539 default=False,
537 )
540 )
538 coreconfigitem('ui', 'quiet',
541 coreconfigitem('ui', 'quiet',
539 default=False,
542 default=False,
540 )
543 )
541 coreconfigitem('ui', 'quietbookmarkmove',
544 coreconfigitem('ui', 'quietbookmarkmove',
542 default=False,
545 default=False,
543 )
546 )
544 coreconfigitem('ui', 'remotecmd',
547 coreconfigitem('ui', 'remotecmd',
545 default='hg',
548 default='hg',
546 )
549 )
547 coreconfigitem('ui', 'report_untrusted',
550 coreconfigitem('ui', 'report_untrusted',
548 default=True,
551 default=True,
549 )
552 )
550 coreconfigitem('ui', 'rollback',
553 coreconfigitem('ui', 'rollback',
551 default=True,
554 default=True,
552 )
555 )
553 coreconfigitem('ui', 'slash',
556 coreconfigitem('ui', 'slash',
554 default=False,
557 default=False,
555 )
558 )
556 coreconfigitem('ui', 'ssh',
559 coreconfigitem('ui', 'ssh',
557 default='ssh',
560 default='ssh',
558 )
561 )
559 coreconfigitem('ui', 'statuscopies',
562 coreconfigitem('ui', 'statuscopies',
560 default=False,
563 default=False,
561 )
564 )
562 coreconfigitem('ui', 'strict',
565 coreconfigitem('ui', 'strict',
563 default=False,
566 default=False,
564 )
567 )
565 coreconfigitem('ui', 'style',
568 coreconfigitem('ui', 'style',
566 default='',
569 default='',
567 )
570 )
568 coreconfigitem('ui', 'supportcontact',
571 coreconfigitem('ui', 'supportcontact',
569 default=None,
572 default=None,
570 )
573 )
571 coreconfigitem('ui', 'textwidth',
574 coreconfigitem('ui', 'textwidth',
572 default=78,
575 default=78,
573 )
576 )
574 coreconfigitem('ui', 'timeout',
577 coreconfigitem('ui', 'timeout',
575 default='600',
578 default='600',
576 )
579 )
577 coreconfigitem('ui', 'traceback',
580 coreconfigitem('ui', 'traceback',
578 default=False,
581 default=False,
579 )
582 )
580 coreconfigitem('ui', 'tweakdefaults',
583 coreconfigitem('ui', 'tweakdefaults',
581 default=False,
584 default=False,
582 )
585 )
583 coreconfigitem('ui', 'usehttp2',
586 coreconfigitem('ui', 'usehttp2',
584 default=False,
587 default=False,
585 )
588 )
586 coreconfigitem('ui', 'username',
589 coreconfigitem('ui', 'username',
587 alias=[('ui', 'user')]
590 alias=[('ui', 'user')]
588 )
591 )
589 coreconfigitem('ui', 'verbose',
592 coreconfigitem('ui', 'verbose',
590 default=False,
593 default=False,
591 )
594 )
592 coreconfigitem('verify', 'skipflags',
595 coreconfigitem('verify', 'skipflags',
593 default=None,
596 default=None,
594 )
597 )
595 coreconfigitem('web', 'accesslog',
598 coreconfigitem('web', 'accesslog',
596 default='-',
599 default='-',
597 )
600 )
598 coreconfigitem('web', 'address',
601 coreconfigitem('web', 'address',
599 default='',
602 default='',
600 )
603 )
601 coreconfigitem('web', 'allow_archive',
604 coreconfigitem('web', 'allow_archive',
602 default=list,
605 default=list,
603 )
606 )
604 coreconfigitem('web', 'allow_read',
607 coreconfigitem('web', 'allow_read',
605 default=list,
608 default=list,
606 )
609 )
607 coreconfigitem('web', 'baseurl',
610 coreconfigitem('web', 'baseurl',
608 default=None,
611 default=None,
609 )
612 )
610 coreconfigitem('web', 'cacerts',
613 coreconfigitem('web', 'cacerts',
611 default=None,
614 default=None,
612 )
615 )
613 coreconfigitem('web', 'certificate',
616 coreconfigitem('web', 'certificate',
614 default=None,
617 default=None,
615 )
618 )
616 coreconfigitem('web', 'collapse',
619 coreconfigitem('web', 'collapse',
617 default=False,
620 default=False,
618 )
621 )
619 coreconfigitem('web', 'csp',
622 coreconfigitem('web', 'csp',
620 default=None,
623 default=None,
621 )
624 )
622 coreconfigitem('web', 'deny_read',
625 coreconfigitem('web', 'deny_read',
623 default=list,
626 default=list,
624 )
627 )
625 coreconfigitem('web', 'descend',
628 coreconfigitem('web', 'descend',
626 default=True,
629 default=True,
627 )
630 )
628 coreconfigitem('web', 'description',
631 coreconfigitem('web', 'description',
629 default="",
632 default="",
630 )
633 )
631 coreconfigitem('web', 'encoding',
634 coreconfigitem('web', 'encoding',
632 default=lambda: encoding.encoding,
635 default=lambda: encoding.encoding,
633 )
636 )
634 coreconfigitem('web', 'errorlog',
637 coreconfigitem('web', 'errorlog',
635 default='-',
638 default='-',
636 )
639 )
637 coreconfigitem('web', 'ipv6',
640 coreconfigitem('web', 'ipv6',
638 default=False,
641 default=False,
639 )
642 )
640 coreconfigitem('web', 'port',
643 coreconfigitem('web', 'port',
641 default=8000,
644 default=8000,
642 )
645 )
643 coreconfigitem('web', 'prefix',
646 coreconfigitem('web', 'prefix',
644 default='',
647 default='',
645 )
648 )
646 coreconfigitem('web', 'refreshinterval',
649 coreconfigitem('web', 'refreshinterval',
647 default=20,
650 default=20,
648 )
651 )
649 coreconfigitem('web', 'stripes',
652 coreconfigitem('web', 'stripes',
650 default=1,
653 default=1,
651 )
654 )
652 coreconfigitem('web', 'style',
655 coreconfigitem('web', 'style',
653 default='paper',
656 default='paper',
654 )
657 )
655 coreconfigitem('web', 'templates',
658 coreconfigitem('web', 'templates',
656 default=None,
659 default=None,
657 )
660 )
658 coreconfigitem('worker', 'backgroundclose',
661 coreconfigitem('worker', 'backgroundclose',
659 default=dynamicdefault,
662 default=dynamicdefault,
660 )
663 )
661 # Windows defaults to a limit of 512 open files. A buffer of 128
664 # Windows defaults to a limit of 512 open files. A buffer of 128
662 # should give us enough headway.
665 # should give us enough headway.
663 coreconfigitem('worker', 'backgroundclosemaxqueue',
666 coreconfigitem('worker', 'backgroundclosemaxqueue',
664 default=384,
667 default=384,
665 )
668 )
666 coreconfigitem('worker', 'backgroundcloseminfilecount',
669 coreconfigitem('worker', 'backgroundcloseminfilecount',
667 default=2048,
670 default=2048,
668 )
671 )
669 coreconfigitem('worker', 'backgroundclosethreadcount',
672 coreconfigitem('worker', 'backgroundclosethreadcount',
670 default=4,
673 default=4,
671 )
674 )
672 coreconfigitem('worker', 'numcpus',
675 coreconfigitem('worker', 'numcpus',
673 default=None,
676 default=None,
674 )
677 )
General Comments 0
You need to be logged in to leave comments. Login now