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