##// END OF EJS Templates
revlogv2: drop "sidedatacompression" from the list of todos...
marmoute -
r48173:8aa3968c default
parent child Browse files
Show More
@@ -1,2719 +1,2718 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 import re
11 import re
12
12
13 from . import (
13 from . import (
14 encoding,
14 encoding,
15 error,
15 error,
16 )
16 )
17
17
18
18
19 def loadconfigtable(ui, extname, configtable):
19 def loadconfigtable(ui, extname, configtable):
20 """update config item known to the ui with the extension ones"""
20 """update config item known to the ui with the extension ones"""
21 for section, items in sorted(configtable.items()):
21 for section, items in sorted(configtable.items()):
22 knownitems = ui._knownconfig.setdefault(section, itemregister())
22 knownitems = ui._knownconfig.setdefault(section, itemregister())
23 knownkeys = set(knownitems)
23 knownkeys = set(knownitems)
24 newkeys = set(items)
24 newkeys = set(items)
25 for key in sorted(knownkeys & newkeys):
25 for key in sorted(knownkeys & newkeys):
26 msg = b"extension '%s' overwrite config item '%s.%s'"
26 msg = b"extension '%s' overwrite config item '%s.%s'"
27 msg %= (extname, section, key)
27 msg %= (extname, section, key)
28 ui.develwarn(msg, config=b'warn-config')
28 ui.develwarn(msg, config=b'warn-config')
29
29
30 knownitems.update(items)
30 knownitems.update(items)
31
31
32
32
33 class configitem(object):
33 class configitem(object):
34 """represent a known config item
34 """represent a known config item
35
35
36 :section: the official config section where to find this item,
36 :section: the official config section where to find this item,
37 :name: the official name within the section,
37 :name: the official name within the section,
38 :default: default value for this item,
38 :default: default value for this item,
39 :alias: optional list of tuples as alternatives,
39 :alias: optional list of tuples as alternatives,
40 :generic: this is a generic definition, match name using regular expression.
40 :generic: this is a generic definition, match name using regular expression.
41 """
41 """
42
42
43 def __init__(
43 def __init__(
44 self,
44 self,
45 section,
45 section,
46 name,
46 name,
47 default=None,
47 default=None,
48 alias=(),
48 alias=(),
49 generic=False,
49 generic=False,
50 priority=0,
50 priority=0,
51 experimental=False,
51 experimental=False,
52 ):
52 ):
53 self.section = section
53 self.section = section
54 self.name = name
54 self.name = name
55 self.default = default
55 self.default = default
56 self.alias = list(alias)
56 self.alias = list(alias)
57 self.generic = generic
57 self.generic = generic
58 self.priority = priority
58 self.priority = priority
59 self.experimental = experimental
59 self.experimental = experimental
60 self._re = None
60 self._re = None
61 if generic:
61 if generic:
62 self._re = re.compile(self.name)
62 self._re = re.compile(self.name)
63
63
64
64
65 class itemregister(dict):
65 class itemregister(dict):
66 """A specialized dictionary that can handle wild-card selection"""
66 """A specialized dictionary that can handle wild-card selection"""
67
67
68 def __init__(self):
68 def __init__(self):
69 super(itemregister, self).__init__()
69 super(itemregister, self).__init__()
70 self._generics = set()
70 self._generics = set()
71
71
72 def update(self, other):
72 def update(self, other):
73 super(itemregister, self).update(other)
73 super(itemregister, self).update(other)
74 self._generics.update(other._generics)
74 self._generics.update(other._generics)
75
75
76 def __setitem__(self, key, item):
76 def __setitem__(self, key, item):
77 super(itemregister, self).__setitem__(key, item)
77 super(itemregister, self).__setitem__(key, item)
78 if item.generic:
78 if item.generic:
79 self._generics.add(item)
79 self._generics.add(item)
80
80
81 def get(self, key):
81 def get(self, key):
82 baseitem = super(itemregister, self).get(key)
82 baseitem = super(itemregister, self).get(key)
83 if baseitem is not None and not baseitem.generic:
83 if baseitem is not None and not baseitem.generic:
84 return baseitem
84 return baseitem
85
85
86 # search for a matching generic item
86 # search for a matching generic item
87 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
87 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
88 for item in generics:
88 for item in generics:
89 # we use 'match' instead of 'search' to make the matching simpler
89 # we use 'match' instead of 'search' to make the matching simpler
90 # for people unfamiliar with regular expression. Having the match
90 # for people unfamiliar with regular expression. Having the match
91 # rooted to the start of the string will produce less surprising
91 # rooted to the start of the string will produce less surprising
92 # result for user writing simple regex for sub-attribute.
92 # result for user writing simple regex for sub-attribute.
93 #
93 #
94 # For example using "color\..*" match produces an unsurprising
94 # For example using "color\..*" match produces an unsurprising
95 # result, while using search could suddenly match apparently
95 # result, while using search could suddenly match apparently
96 # unrelated configuration that happens to contains "color."
96 # unrelated configuration that happens to contains "color."
97 # anywhere. This is a tradeoff where we favor requiring ".*" on
97 # anywhere. This is a tradeoff where we favor requiring ".*" on
98 # some match to avoid the need to prefix most pattern with "^".
98 # some match to avoid the need to prefix most pattern with "^".
99 # The "^" seems more error prone.
99 # The "^" seems more error prone.
100 if item._re.match(key):
100 if item._re.match(key):
101 return item
101 return item
102
102
103 return None
103 return None
104
104
105
105
106 coreitems = {}
106 coreitems = {}
107
107
108
108
109 def _register(configtable, *args, **kwargs):
109 def _register(configtable, *args, **kwargs):
110 item = configitem(*args, **kwargs)
110 item = configitem(*args, **kwargs)
111 section = configtable.setdefault(item.section, itemregister())
111 section = configtable.setdefault(item.section, itemregister())
112 if item.name in section:
112 if item.name in section:
113 msg = b"duplicated config item registration for '%s.%s'"
113 msg = b"duplicated config item registration for '%s.%s'"
114 raise error.ProgrammingError(msg % (item.section, item.name))
114 raise error.ProgrammingError(msg % (item.section, item.name))
115 section[item.name] = item
115 section[item.name] = item
116
116
117
117
118 # special value for case where the default is derived from other values
118 # special value for case where the default is derived from other values
119 dynamicdefault = object()
119 dynamicdefault = object()
120
120
121 # Registering actual config items
121 # Registering actual config items
122
122
123
123
124 def getitemregister(configtable):
124 def getitemregister(configtable):
125 f = functools.partial(_register, configtable)
125 f = functools.partial(_register, configtable)
126 # export pseudo enum as configitem.*
126 # export pseudo enum as configitem.*
127 f.dynamicdefault = dynamicdefault
127 f.dynamicdefault = dynamicdefault
128 return f
128 return f
129
129
130
130
131 coreconfigitem = getitemregister(coreitems)
131 coreconfigitem = getitemregister(coreitems)
132
132
133
133
134 def _registerdiffopts(section, configprefix=b''):
134 def _registerdiffopts(section, configprefix=b''):
135 coreconfigitem(
135 coreconfigitem(
136 section,
136 section,
137 configprefix + b'nodates',
137 configprefix + b'nodates',
138 default=False,
138 default=False,
139 )
139 )
140 coreconfigitem(
140 coreconfigitem(
141 section,
141 section,
142 configprefix + b'showfunc',
142 configprefix + b'showfunc',
143 default=False,
143 default=False,
144 )
144 )
145 coreconfigitem(
145 coreconfigitem(
146 section,
146 section,
147 configprefix + b'unified',
147 configprefix + b'unified',
148 default=None,
148 default=None,
149 )
149 )
150 coreconfigitem(
150 coreconfigitem(
151 section,
151 section,
152 configprefix + b'git',
152 configprefix + b'git',
153 default=False,
153 default=False,
154 )
154 )
155 coreconfigitem(
155 coreconfigitem(
156 section,
156 section,
157 configprefix + b'ignorews',
157 configprefix + b'ignorews',
158 default=False,
158 default=False,
159 )
159 )
160 coreconfigitem(
160 coreconfigitem(
161 section,
161 section,
162 configprefix + b'ignorewsamount',
162 configprefix + b'ignorewsamount',
163 default=False,
163 default=False,
164 )
164 )
165 coreconfigitem(
165 coreconfigitem(
166 section,
166 section,
167 configprefix + b'ignoreblanklines',
167 configprefix + b'ignoreblanklines',
168 default=False,
168 default=False,
169 )
169 )
170 coreconfigitem(
170 coreconfigitem(
171 section,
171 section,
172 configprefix + b'ignorewseol',
172 configprefix + b'ignorewseol',
173 default=False,
173 default=False,
174 )
174 )
175 coreconfigitem(
175 coreconfigitem(
176 section,
176 section,
177 configprefix + b'nobinary',
177 configprefix + b'nobinary',
178 default=False,
178 default=False,
179 )
179 )
180 coreconfigitem(
180 coreconfigitem(
181 section,
181 section,
182 configprefix + b'noprefix',
182 configprefix + b'noprefix',
183 default=False,
183 default=False,
184 )
184 )
185 coreconfigitem(
185 coreconfigitem(
186 section,
186 section,
187 configprefix + b'word-diff',
187 configprefix + b'word-diff',
188 default=False,
188 default=False,
189 )
189 )
190
190
191
191
192 coreconfigitem(
192 coreconfigitem(
193 b'alias',
193 b'alias',
194 b'.*',
194 b'.*',
195 default=dynamicdefault,
195 default=dynamicdefault,
196 generic=True,
196 generic=True,
197 )
197 )
198 coreconfigitem(
198 coreconfigitem(
199 b'auth',
199 b'auth',
200 b'cookiefile',
200 b'cookiefile',
201 default=None,
201 default=None,
202 )
202 )
203 _registerdiffopts(section=b'annotate')
203 _registerdiffopts(section=b'annotate')
204 # bookmarks.pushing: internal hack for discovery
204 # bookmarks.pushing: internal hack for discovery
205 coreconfigitem(
205 coreconfigitem(
206 b'bookmarks',
206 b'bookmarks',
207 b'pushing',
207 b'pushing',
208 default=list,
208 default=list,
209 )
209 )
210 # bundle.mainreporoot: internal hack for bundlerepo
210 # bundle.mainreporoot: internal hack for bundlerepo
211 coreconfigitem(
211 coreconfigitem(
212 b'bundle',
212 b'bundle',
213 b'mainreporoot',
213 b'mainreporoot',
214 default=b'',
214 default=b'',
215 )
215 )
216 coreconfigitem(
216 coreconfigitem(
217 b'censor',
217 b'censor',
218 b'policy',
218 b'policy',
219 default=b'abort',
219 default=b'abort',
220 experimental=True,
220 experimental=True,
221 )
221 )
222 coreconfigitem(
222 coreconfigitem(
223 b'chgserver',
223 b'chgserver',
224 b'idletimeout',
224 b'idletimeout',
225 default=3600,
225 default=3600,
226 )
226 )
227 coreconfigitem(
227 coreconfigitem(
228 b'chgserver',
228 b'chgserver',
229 b'skiphash',
229 b'skiphash',
230 default=False,
230 default=False,
231 )
231 )
232 coreconfigitem(
232 coreconfigitem(
233 b'cmdserver',
233 b'cmdserver',
234 b'log',
234 b'log',
235 default=None,
235 default=None,
236 )
236 )
237 coreconfigitem(
237 coreconfigitem(
238 b'cmdserver',
238 b'cmdserver',
239 b'max-log-files',
239 b'max-log-files',
240 default=7,
240 default=7,
241 )
241 )
242 coreconfigitem(
242 coreconfigitem(
243 b'cmdserver',
243 b'cmdserver',
244 b'max-log-size',
244 b'max-log-size',
245 default=b'1 MB',
245 default=b'1 MB',
246 )
246 )
247 coreconfigitem(
247 coreconfigitem(
248 b'cmdserver',
248 b'cmdserver',
249 b'max-repo-cache',
249 b'max-repo-cache',
250 default=0,
250 default=0,
251 experimental=True,
251 experimental=True,
252 )
252 )
253 coreconfigitem(
253 coreconfigitem(
254 b'cmdserver',
254 b'cmdserver',
255 b'message-encodings',
255 b'message-encodings',
256 default=list,
256 default=list,
257 )
257 )
258 coreconfigitem(
258 coreconfigitem(
259 b'cmdserver',
259 b'cmdserver',
260 b'track-log',
260 b'track-log',
261 default=lambda: [b'chgserver', b'cmdserver', b'repocache'],
261 default=lambda: [b'chgserver', b'cmdserver', b'repocache'],
262 )
262 )
263 coreconfigitem(
263 coreconfigitem(
264 b'cmdserver',
264 b'cmdserver',
265 b'shutdown-on-interrupt',
265 b'shutdown-on-interrupt',
266 default=True,
266 default=True,
267 )
267 )
268 coreconfigitem(
268 coreconfigitem(
269 b'color',
269 b'color',
270 b'.*',
270 b'.*',
271 default=None,
271 default=None,
272 generic=True,
272 generic=True,
273 )
273 )
274 coreconfigitem(
274 coreconfigitem(
275 b'color',
275 b'color',
276 b'mode',
276 b'mode',
277 default=b'auto',
277 default=b'auto',
278 )
278 )
279 coreconfigitem(
279 coreconfigitem(
280 b'color',
280 b'color',
281 b'pagermode',
281 b'pagermode',
282 default=dynamicdefault,
282 default=dynamicdefault,
283 )
283 )
284 coreconfigitem(
284 coreconfigitem(
285 b'command-templates',
285 b'command-templates',
286 b'graphnode',
286 b'graphnode',
287 default=None,
287 default=None,
288 alias=[(b'ui', b'graphnodetemplate')],
288 alias=[(b'ui', b'graphnodetemplate')],
289 )
289 )
290 coreconfigitem(
290 coreconfigitem(
291 b'command-templates',
291 b'command-templates',
292 b'log',
292 b'log',
293 default=None,
293 default=None,
294 alias=[(b'ui', b'logtemplate')],
294 alias=[(b'ui', b'logtemplate')],
295 )
295 )
296 coreconfigitem(
296 coreconfigitem(
297 b'command-templates',
297 b'command-templates',
298 b'mergemarker',
298 b'mergemarker',
299 default=(
299 default=(
300 b'{node|short} '
300 b'{node|short} '
301 b'{ifeq(tags, "tip", "", '
301 b'{ifeq(tags, "tip", "", '
302 b'ifeq(tags, "", "", "{tags} "))}'
302 b'ifeq(tags, "", "", "{tags} "))}'
303 b'{if(bookmarks, "{bookmarks} ")}'
303 b'{if(bookmarks, "{bookmarks} ")}'
304 b'{ifeq(branch, "default", "", "{branch} ")}'
304 b'{ifeq(branch, "default", "", "{branch} ")}'
305 b'- {author|user}: {desc|firstline}'
305 b'- {author|user}: {desc|firstline}'
306 ),
306 ),
307 alias=[(b'ui', b'mergemarkertemplate')],
307 alias=[(b'ui', b'mergemarkertemplate')],
308 )
308 )
309 coreconfigitem(
309 coreconfigitem(
310 b'command-templates',
310 b'command-templates',
311 b'pre-merge-tool-output',
311 b'pre-merge-tool-output',
312 default=None,
312 default=None,
313 alias=[(b'ui', b'pre-merge-tool-output-template')],
313 alias=[(b'ui', b'pre-merge-tool-output-template')],
314 )
314 )
315 coreconfigitem(
315 coreconfigitem(
316 b'command-templates',
316 b'command-templates',
317 b'oneline-summary',
317 b'oneline-summary',
318 default=None,
318 default=None,
319 )
319 )
320 coreconfigitem(
320 coreconfigitem(
321 b'command-templates',
321 b'command-templates',
322 b'oneline-summary.*',
322 b'oneline-summary.*',
323 default=dynamicdefault,
323 default=dynamicdefault,
324 generic=True,
324 generic=True,
325 )
325 )
326 _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.')
326 _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.')
327 coreconfigitem(
327 coreconfigitem(
328 b'commands',
328 b'commands',
329 b'commit.post-status',
329 b'commit.post-status',
330 default=False,
330 default=False,
331 )
331 )
332 coreconfigitem(
332 coreconfigitem(
333 b'commands',
333 b'commands',
334 b'grep.all-files',
334 b'grep.all-files',
335 default=False,
335 default=False,
336 experimental=True,
336 experimental=True,
337 )
337 )
338 coreconfigitem(
338 coreconfigitem(
339 b'commands',
339 b'commands',
340 b'merge.require-rev',
340 b'merge.require-rev',
341 default=False,
341 default=False,
342 )
342 )
343 coreconfigitem(
343 coreconfigitem(
344 b'commands',
344 b'commands',
345 b'push.require-revs',
345 b'push.require-revs',
346 default=False,
346 default=False,
347 )
347 )
348 coreconfigitem(
348 coreconfigitem(
349 b'commands',
349 b'commands',
350 b'resolve.confirm',
350 b'resolve.confirm',
351 default=False,
351 default=False,
352 )
352 )
353 coreconfigitem(
353 coreconfigitem(
354 b'commands',
354 b'commands',
355 b'resolve.explicit-re-merge',
355 b'resolve.explicit-re-merge',
356 default=False,
356 default=False,
357 )
357 )
358 coreconfigitem(
358 coreconfigitem(
359 b'commands',
359 b'commands',
360 b'resolve.mark-check',
360 b'resolve.mark-check',
361 default=b'none',
361 default=b'none',
362 )
362 )
363 _registerdiffopts(section=b'commands', configprefix=b'revert.interactive.')
363 _registerdiffopts(section=b'commands', configprefix=b'revert.interactive.')
364 coreconfigitem(
364 coreconfigitem(
365 b'commands',
365 b'commands',
366 b'show.aliasprefix',
366 b'show.aliasprefix',
367 default=list,
367 default=list,
368 )
368 )
369 coreconfigitem(
369 coreconfigitem(
370 b'commands',
370 b'commands',
371 b'status.relative',
371 b'status.relative',
372 default=False,
372 default=False,
373 )
373 )
374 coreconfigitem(
374 coreconfigitem(
375 b'commands',
375 b'commands',
376 b'status.skipstates',
376 b'status.skipstates',
377 default=[],
377 default=[],
378 experimental=True,
378 experimental=True,
379 )
379 )
380 coreconfigitem(
380 coreconfigitem(
381 b'commands',
381 b'commands',
382 b'status.terse',
382 b'status.terse',
383 default=b'',
383 default=b'',
384 )
384 )
385 coreconfigitem(
385 coreconfigitem(
386 b'commands',
386 b'commands',
387 b'status.verbose',
387 b'status.verbose',
388 default=False,
388 default=False,
389 )
389 )
390 coreconfigitem(
390 coreconfigitem(
391 b'commands',
391 b'commands',
392 b'update.check',
392 b'update.check',
393 default=None,
393 default=None,
394 )
394 )
395 coreconfigitem(
395 coreconfigitem(
396 b'commands',
396 b'commands',
397 b'update.requiredest',
397 b'update.requiredest',
398 default=False,
398 default=False,
399 )
399 )
400 coreconfigitem(
400 coreconfigitem(
401 b'committemplate',
401 b'committemplate',
402 b'.*',
402 b'.*',
403 default=None,
403 default=None,
404 generic=True,
404 generic=True,
405 )
405 )
406 coreconfigitem(
406 coreconfigitem(
407 b'convert',
407 b'convert',
408 b'bzr.saverev',
408 b'bzr.saverev',
409 default=True,
409 default=True,
410 )
410 )
411 coreconfigitem(
411 coreconfigitem(
412 b'convert',
412 b'convert',
413 b'cvsps.cache',
413 b'cvsps.cache',
414 default=True,
414 default=True,
415 )
415 )
416 coreconfigitem(
416 coreconfigitem(
417 b'convert',
417 b'convert',
418 b'cvsps.fuzz',
418 b'cvsps.fuzz',
419 default=60,
419 default=60,
420 )
420 )
421 coreconfigitem(
421 coreconfigitem(
422 b'convert',
422 b'convert',
423 b'cvsps.logencoding',
423 b'cvsps.logencoding',
424 default=None,
424 default=None,
425 )
425 )
426 coreconfigitem(
426 coreconfigitem(
427 b'convert',
427 b'convert',
428 b'cvsps.mergefrom',
428 b'cvsps.mergefrom',
429 default=None,
429 default=None,
430 )
430 )
431 coreconfigitem(
431 coreconfigitem(
432 b'convert',
432 b'convert',
433 b'cvsps.mergeto',
433 b'cvsps.mergeto',
434 default=None,
434 default=None,
435 )
435 )
436 coreconfigitem(
436 coreconfigitem(
437 b'convert',
437 b'convert',
438 b'git.committeractions',
438 b'git.committeractions',
439 default=lambda: [b'messagedifferent'],
439 default=lambda: [b'messagedifferent'],
440 )
440 )
441 coreconfigitem(
441 coreconfigitem(
442 b'convert',
442 b'convert',
443 b'git.extrakeys',
443 b'git.extrakeys',
444 default=list,
444 default=list,
445 )
445 )
446 coreconfigitem(
446 coreconfigitem(
447 b'convert',
447 b'convert',
448 b'git.findcopiesharder',
448 b'git.findcopiesharder',
449 default=False,
449 default=False,
450 )
450 )
451 coreconfigitem(
451 coreconfigitem(
452 b'convert',
452 b'convert',
453 b'git.remoteprefix',
453 b'git.remoteprefix',
454 default=b'remote',
454 default=b'remote',
455 )
455 )
456 coreconfigitem(
456 coreconfigitem(
457 b'convert',
457 b'convert',
458 b'git.renamelimit',
458 b'git.renamelimit',
459 default=400,
459 default=400,
460 )
460 )
461 coreconfigitem(
461 coreconfigitem(
462 b'convert',
462 b'convert',
463 b'git.saverev',
463 b'git.saverev',
464 default=True,
464 default=True,
465 )
465 )
466 coreconfigitem(
466 coreconfigitem(
467 b'convert',
467 b'convert',
468 b'git.similarity',
468 b'git.similarity',
469 default=50,
469 default=50,
470 )
470 )
471 coreconfigitem(
471 coreconfigitem(
472 b'convert',
472 b'convert',
473 b'git.skipsubmodules',
473 b'git.skipsubmodules',
474 default=False,
474 default=False,
475 )
475 )
476 coreconfigitem(
476 coreconfigitem(
477 b'convert',
477 b'convert',
478 b'hg.clonebranches',
478 b'hg.clonebranches',
479 default=False,
479 default=False,
480 )
480 )
481 coreconfigitem(
481 coreconfigitem(
482 b'convert',
482 b'convert',
483 b'hg.ignoreerrors',
483 b'hg.ignoreerrors',
484 default=False,
484 default=False,
485 )
485 )
486 coreconfigitem(
486 coreconfigitem(
487 b'convert',
487 b'convert',
488 b'hg.preserve-hash',
488 b'hg.preserve-hash',
489 default=False,
489 default=False,
490 )
490 )
491 coreconfigitem(
491 coreconfigitem(
492 b'convert',
492 b'convert',
493 b'hg.revs',
493 b'hg.revs',
494 default=None,
494 default=None,
495 )
495 )
496 coreconfigitem(
496 coreconfigitem(
497 b'convert',
497 b'convert',
498 b'hg.saverev',
498 b'hg.saverev',
499 default=False,
499 default=False,
500 )
500 )
501 coreconfigitem(
501 coreconfigitem(
502 b'convert',
502 b'convert',
503 b'hg.sourcename',
503 b'hg.sourcename',
504 default=None,
504 default=None,
505 )
505 )
506 coreconfigitem(
506 coreconfigitem(
507 b'convert',
507 b'convert',
508 b'hg.startrev',
508 b'hg.startrev',
509 default=None,
509 default=None,
510 )
510 )
511 coreconfigitem(
511 coreconfigitem(
512 b'convert',
512 b'convert',
513 b'hg.tagsbranch',
513 b'hg.tagsbranch',
514 default=b'default',
514 default=b'default',
515 )
515 )
516 coreconfigitem(
516 coreconfigitem(
517 b'convert',
517 b'convert',
518 b'hg.usebranchnames',
518 b'hg.usebranchnames',
519 default=True,
519 default=True,
520 )
520 )
521 coreconfigitem(
521 coreconfigitem(
522 b'convert',
522 b'convert',
523 b'ignoreancestorcheck',
523 b'ignoreancestorcheck',
524 default=False,
524 default=False,
525 experimental=True,
525 experimental=True,
526 )
526 )
527 coreconfigitem(
527 coreconfigitem(
528 b'convert',
528 b'convert',
529 b'localtimezone',
529 b'localtimezone',
530 default=False,
530 default=False,
531 )
531 )
532 coreconfigitem(
532 coreconfigitem(
533 b'convert',
533 b'convert',
534 b'p4.encoding',
534 b'p4.encoding',
535 default=dynamicdefault,
535 default=dynamicdefault,
536 )
536 )
537 coreconfigitem(
537 coreconfigitem(
538 b'convert',
538 b'convert',
539 b'p4.startrev',
539 b'p4.startrev',
540 default=0,
540 default=0,
541 )
541 )
542 coreconfigitem(
542 coreconfigitem(
543 b'convert',
543 b'convert',
544 b'skiptags',
544 b'skiptags',
545 default=False,
545 default=False,
546 )
546 )
547 coreconfigitem(
547 coreconfigitem(
548 b'convert',
548 b'convert',
549 b'svn.debugsvnlog',
549 b'svn.debugsvnlog',
550 default=True,
550 default=True,
551 )
551 )
552 coreconfigitem(
552 coreconfigitem(
553 b'convert',
553 b'convert',
554 b'svn.trunk',
554 b'svn.trunk',
555 default=None,
555 default=None,
556 )
556 )
557 coreconfigitem(
557 coreconfigitem(
558 b'convert',
558 b'convert',
559 b'svn.tags',
559 b'svn.tags',
560 default=None,
560 default=None,
561 )
561 )
562 coreconfigitem(
562 coreconfigitem(
563 b'convert',
563 b'convert',
564 b'svn.branches',
564 b'svn.branches',
565 default=None,
565 default=None,
566 )
566 )
567 coreconfigitem(
567 coreconfigitem(
568 b'convert',
568 b'convert',
569 b'svn.startrev',
569 b'svn.startrev',
570 default=0,
570 default=0,
571 )
571 )
572 coreconfigitem(
572 coreconfigitem(
573 b'convert',
573 b'convert',
574 b'svn.dangerous-set-commit-dates',
574 b'svn.dangerous-set-commit-dates',
575 default=False,
575 default=False,
576 )
576 )
577 coreconfigitem(
577 coreconfigitem(
578 b'debug',
578 b'debug',
579 b'dirstate.delaywrite',
579 b'dirstate.delaywrite',
580 default=0,
580 default=0,
581 )
581 )
582 coreconfigitem(
582 coreconfigitem(
583 b'debug',
583 b'debug',
584 b'revlog.verifyposition.changelog',
584 b'revlog.verifyposition.changelog',
585 default=b'',
585 default=b'',
586 )
586 )
587 coreconfigitem(
587 coreconfigitem(
588 b'defaults',
588 b'defaults',
589 b'.*',
589 b'.*',
590 default=None,
590 default=None,
591 generic=True,
591 generic=True,
592 )
592 )
593 coreconfigitem(
593 coreconfigitem(
594 b'devel',
594 b'devel',
595 b'all-warnings',
595 b'all-warnings',
596 default=False,
596 default=False,
597 )
597 )
598 coreconfigitem(
598 coreconfigitem(
599 b'devel',
599 b'devel',
600 b'bundle2.debug',
600 b'bundle2.debug',
601 default=False,
601 default=False,
602 )
602 )
603 coreconfigitem(
603 coreconfigitem(
604 b'devel',
604 b'devel',
605 b'bundle.delta',
605 b'bundle.delta',
606 default=b'',
606 default=b'',
607 )
607 )
608 coreconfigitem(
608 coreconfigitem(
609 b'devel',
609 b'devel',
610 b'cache-vfs',
610 b'cache-vfs',
611 default=None,
611 default=None,
612 )
612 )
613 coreconfigitem(
613 coreconfigitem(
614 b'devel',
614 b'devel',
615 b'check-locks',
615 b'check-locks',
616 default=False,
616 default=False,
617 )
617 )
618 coreconfigitem(
618 coreconfigitem(
619 b'devel',
619 b'devel',
620 b'check-relroot',
620 b'check-relroot',
621 default=False,
621 default=False,
622 )
622 )
623 # Track copy information for all file, not just "added" one (very slow)
623 # Track copy information for all file, not just "added" one (very slow)
624 coreconfigitem(
624 coreconfigitem(
625 b'devel',
625 b'devel',
626 b'copy-tracing.trace-all-files',
626 b'copy-tracing.trace-all-files',
627 default=False,
627 default=False,
628 )
628 )
629 coreconfigitem(
629 coreconfigitem(
630 b'devel',
630 b'devel',
631 b'default-date',
631 b'default-date',
632 default=None,
632 default=None,
633 )
633 )
634 coreconfigitem(
634 coreconfigitem(
635 b'devel',
635 b'devel',
636 b'deprec-warn',
636 b'deprec-warn',
637 default=False,
637 default=False,
638 )
638 )
639 coreconfigitem(
639 coreconfigitem(
640 b'devel',
640 b'devel',
641 b'disableloaddefaultcerts',
641 b'disableloaddefaultcerts',
642 default=False,
642 default=False,
643 )
643 )
644 coreconfigitem(
644 coreconfigitem(
645 b'devel',
645 b'devel',
646 b'warn-empty-changegroup',
646 b'warn-empty-changegroup',
647 default=False,
647 default=False,
648 )
648 )
649 coreconfigitem(
649 coreconfigitem(
650 b'devel',
650 b'devel',
651 b'legacy.exchange',
651 b'legacy.exchange',
652 default=list,
652 default=list,
653 )
653 )
654 # When True, revlogs use a special reference version of the nodemap, that is not
654 # When True, revlogs use a special reference version of the nodemap, that is not
655 # performant but is "known" to behave properly.
655 # performant but is "known" to behave properly.
656 coreconfigitem(
656 coreconfigitem(
657 b'devel',
657 b'devel',
658 b'persistent-nodemap',
658 b'persistent-nodemap',
659 default=False,
659 default=False,
660 )
660 )
661 coreconfigitem(
661 coreconfigitem(
662 b'devel',
662 b'devel',
663 b'servercafile',
663 b'servercafile',
664 default=b'',
664 default=b'',
665 )
665 )
666 coreconfigitem(
666 coreconfigitem(
667 b'devel',
667 b'devel',
668 b'serverexactprotocol',
668 b'serverexactprotocol',
669 default=b'',
669 default=b'',
670 )
670 )
671 coreconfigitem(
671 coreconfigitem(
672 b'devel',
672 b'devel',
673 b'serverrequirecert',
673 b'serverrequirecert',
674 default=False,
674 default=False,
675 )
675 )
676 coreconfigitem(
676 coreconfigitem(
677 b'devel',
677 b'devel',
678 b'strip-obsmarkers',
678 b'strip-obsmarkers',
679 default=True,
679 default=True,
680 )
680 )
681 coreconfigitem(
681 coreconfigitem(
682 b'devel',
682 b'devel',
683 b'warn-config',
683 b'warn-config',
684 default=None,
684 default=None,
685 )
685 )
686 coreconfigitem(
686 coreconfigitem(
687 b'devel',
687 b'devel',
688 b'warn-config-default',
688 b'warn-config-default',
689 default=None,
689 default=None,
690 )
690 )
691 coreconfigitem(
691 coreconfigitem(
692 b'devel',
692 b'devel',
693 b'user.obsmarker',
693 b'user.obsmarker',
694 default=None,
694 default=None,
695 )
695 )
696 coreconfigitem(
696 coreconfigitem(
697 b'devel',
697 b'devel',
698 b'warn-config-unknown',
698 b'warn-config-unknown',
699 default=None,
699 default=None,
700 )
700 )
701 coreconfigitem(
701 coreconfigitem(
702 b'devel',
702 b'devel',
703 b'debug.copies',
703 b'debug.copies',
704 default=False,
704 default=False,
705 )
705 )
706 coreconfigitem(
706 coreconfigitem(
707 b'devel',
707 b'devel',
708 b'copy-tracing.multi-thread',
708 b'copy-tracing.multi-thread',
709 default=True,
709 default=True,
710 )
710 )
711 coreconfigitem(
711 coreconfigitem(
712 b'devel',
712 b'devel',
713 b'debug.extensions',
713 b'debug.extensions',
714 default=False,
714 default=False,
715 )
715 )
716 coreconfigitem(
716 coreconfigitem(
717 b'devel',
717 b'devel',
718 b'debug.repo-filters',
718 b'debug.repo-filters',
719 default=False,
719 default=False,
720 )
720 )
721 coreconfigitem(
721 coreconfigitem(
722 b'devel',
722 b'devel',
723 b'debug.peer-request',
723 b'debug.peer-request',
724 default=False,
724 default=False,
725 )
725 )
726 # If discovery.exchange-heads is False, the discovery will not start with
726 # If discovery.exchange-heads is False, the discovery will not start with
727 # remote head fetching and local head querying.
727 # remote head fetching and local head querying.
728 coreconfigitem(
728 coreconfigitem(
729 b'devel',
729 b'devel',
730 b'discovery.exchange-heads',
730 b'discovery.exchange-heads',
731 default=True,
731 default=True,
732 )
732 )
733 # If discovery.grow-sample is False, the sample size used in set discovery will
733 # If discovery.grow-sample is False, the sample size used in set discovery will
734 # not be increased through the process
734 # not be increased through the process
735 coreconfigitem(
735 coreconfigitem(
736 b'devel',
736 b'devel',
737 b'discovery.grow-sample',
737 b'discovery.grow-sample',
738 default=True,
738 default=True,
739 )
739 )
740 # When discovery.grow-sample.dynamic is True, the default, the sample size is
740 # When discovery.grow-sample.dynamic is True, the default, the sample size is
741 # adapted to the shape of the undecided set (it is set to the max of:
741 # adapted to the shape of the undecided set (it is set to the max of:
742 # <target-size>, len(roots(undecided)), len(heads(undecided)
742 # <target-size>, len(roots(undecided)), len(heads(undecided)
743 coreconfigitem(
743 coreconfigitem(
744 b'devel',
744 b'devel',
745 b'discovery.grow-sample.dynamic',
745 b'discovery.grow-sample.dynamic',
746 default=True,
746 default=True,
747 )
747 )
748 # discovery.grow-sample.rate control the rate at which the sample grow
748 # discovery.grow-sample.rate control the rate at which the sample grow
749 coreconfigitem(
749 coreconfigitem(
750 b'devel',
750 b'devel',
751 b'discovery.grow-sample.rate',
751 b'discovery.grow-sample.rate',
752 default=1.05,
752 default=1.05,
753 )
753 )
754 # If discovery.randomize is False, random sampling during discovery are
754 # If discovery.randomize is False, random sampling during discovery are
755 # deterministic. It is meant for integration tests.
755 # deterministic. It is meant for integration tests.
756 coreconfigitem(
756 coreconfigitem(
757 b'devel',
757 b'devel',
758 b'discovery.randomize',
758 b'discovery.randomize',
759 default=True,
759 default=True,
760 )
760 )
761 # Control the initial size of the discovery sample
761 # Control the initial size of the discovery sample
762 coreconfigitem(
762 coreconfigitem(
763 b'devel',
763 b'devel',
764 b'discovery.sample-size',
764 b'discovery.sample-size',
765 default=200,
765 default=200,
766 )
766 )
767 # Control the initial size of the discovery for initial change
767 # Control the initial size of the discovery for initial change
768 coreconfigitem(
768 coreconfigitem(
769 b'devel',
769 b'devel',
770 b'discovery.sample-size.initial',
770 b'discovery.sample-size.initial',
771 default=100,
771 default=100,
772 )
772 )
773 _registerdiffopts(section=b'diff')
773 _registerdiffopts(section=b'diff')
774 coreconfigitem(
774 coreconfigitem(
775 b'diff',
775 b'diff',
776 b'merge',
776 b'merge',
777 default=False,
777 default=False,
778 experimental=True,
778 experimental=True,
779 )
779 )
780 coreconfigitem(
780 coreconfigitem(
781 b'email',
781 b'email',
782 b'bcc',
782 b'bcc',
783 default=None,
783 default=None,
784 )
784 )
785 coreconfigitem(
785 coreconfigitem(
786 b'email',
786 b'email',
787 b'cc',
787 b'cc',
788 default=None,
788 default=None,
789 )
789 )
790 coreconfigitem(
790 coreconfigitem(
791 b'email',
791 b'email',
792 b'charsets',
792 b'charsets',
793 default=list,
793 default=list,
794 )
794 )
795 coreconfigitem(
795 coreconfigitem(
796 b'email',
796 b'email',
797 b'from',
797 b'from',
798 default=None,
798 default=None,
799 )
799 )
800 coreconfigitem(
800 coreconfigitem(
801 b'email',
801 b'email',
802 b'method',
802 b'method',
803 default=b'smtp',
803 default=b'smtp',
804 )
804 )
805 coreconfigitem(
805 coreconfigitem(
806 b'email',
806 b'email',
807 b'reply-to',
807 b'reply-to',
808 default=None,
808 default=None,
809 )
809 )
810 coreconfigitem(
810 coreconfigitem(
811 b'email',
811 b'email',
812 b'to',
812 b'to',
813 default=None,
813 default=None,
814 )
814 )
815 coreconfigitem(
815 coreconfigitem(
816 b'experimental',
816 b'experimental',
817 b'archivemetatemplate',
817 b'archivemetatemplate',
818 default=dynamicdefault,
818 default=dynamicdefault,
819 )
819 )
820 coreconfigitem(
820 coreconfigitem(
821 b'experimental',
821 b'experimental',
822 b'auto-publish',
822 b'auto-publish',
823 default=b'publish',
823 default=b'publish',
824 )
824 )
825 coreconfigitem(
825 coreconfigitem(
826 b'experimental',
826 b'experimental',
827 b'bundle-phases',
827 b'bundle-phases',
828 default=False,
828 default=False,
829 )
829 )
830 coreconfigitem(
830 coreconfigitem(
831 b'experimental',
831 b'experimental',
832 b'bundle2-advertise',
832 b'bundle2-advertise',
833 default=True,
833 default=True,
834 )
834 )
835 coreconfigitem(
835 coreconfigitem(
836 b'experimental',
836 b'experimental',
837 b'bundle2-output-capture',
837 b'bundle2-output-capture',
838 default=False,
838 default=False,
839 )
839 )
840 coreconfigitem(
840 coreconfigitem(
841 b'experimental',
841 b'experimental',
842 b'bundle2.pushback',
842 b'bundle2.pushback',
843 default=False,
843 default=False,
844 )
844 )
845 coreconfigitem(
845 coreconfigitem(
846 b'experimental',
846 b'experimental',
847 b'bundle2lazylocking',
847 b'bundle2lazylocking',
848 default=False,
848 default=False,
849 )
849 )
850 coreconfigitem(
850 coreconfigitem(
851 b'experimental',
851 b'experimental',
852 b'bundlecomplevel',
852 b'bundlecomplevel',
853 default=None,
853 default=None,
854 )
854 )
855 coreconfigitem(
855 coreconfigitem(
856 b'experimental',
856 b'experimental',
857 b'bundlecomplevel.bzip2',
857 b'bundlecomplevel.bzip2',
858 default=None,
858 default=None,
859 )
859 )
860 coreconfigitem(
860 coreconfigitem(
861 b'experimental',
861 b'experimental',
862 b'bundlecomplevel.gzip',
862 b'bundlecomplevel.gzip',
863 default=None,
863 default=None,
864 )
864 )
865 coreconfigitem(
865 coreconfigitem(
866 b'experimental',
866 b'experimental',
867 b'bundlecomplevel.none',
867 b'bundlecomplevel.none',
868 default=None,
868 default=None,
869 )
869 )
870 coreconfigitem(
870 coreconfigitem(
871 b'experimental',
871 b'experimental',
872 b'bundlecomplevel.zstd',
872 b'bundlecomplevel.zstd',
873 default=None,
873 default=None,
874 )
874 )
875 coreconfigitem(
875 coreconfigitem(
876 b'experimental',
876 b'experimental',
877 b'bundlecompthreads',
877 b'bundlecompthreads',
878 default=None,
878 default=None,
879 )
879 )
880 coreconfigitem(
880 coreconfigitem(
881 b'experimental',
881 b'experimental',
882 b'bundlecompthreads.bzip2',
882 b'bundlecompthreads.bzip2',
883 default=None,
883 default=None,
884 )
884 )
885 coreconfigitem(
885 coreconfigitem(
886 b'experimental',
886 b'experimental',
887 b'bundlecompthreads.gzip',
887 b'bundlecompthreads.gzip',
888 default=None,
888 default=None,
889 )
889 )
890 coreconfigitem(
890 coreconfigitem(
891 b'experimental',
891 b'experimental',
892 b'bundlecompthreads.none',
892 b'bundlecompthreads.none',
893 default=None,
893 default=None,
894 )
894 )
895 coreconfigitem(
895 coreconfigitem(
896 b'experimental',
896 b'experimental',
897 b'bundlecompthreads.zstd',
897 b'bundlecompthreads.zstd',
898 default=None,
898 default=None,
899 )
899 )
900 coreconfigitem(
900 coreconfigitem(
901 b'experimental',
901 b'experimental',
902 b'changegroup3',
902 b'changegroup3',
903 default=False,
903 default=False,
904 )
904 )
905 coreconfigitem(
905 coreconfigitem(
906 b'experimental',
906 b'experimental',
907 b'changegroup4',
907 b'changegroup4',
908 default=False,
908 default=False,
909 )
909 )
910 coreconfigitem(
910 coreconfigitem(
911 b'experimental',
911 b'experimental',
912 b'cleanup-as-archived',
912 b'cleanup-as-archived',
913 default=False,
913 default=False,
914 )
914 )
915 coreconfigitem(
915 coreconfigitem(
916 b'experimental',
916 b'experimental',
917 b'clientcompressionengines',
917 b'clientcompressionengines',
918 default=list,
918 default=list,
919 )
919 )
920 coreconfigitem(
920 coreconfigitem(
921 b'experimental',
921 b'experimental',
922 b'copytrace',
922 b'copytrace',
923 default=b'on',
923 default=b'on',
924 )
924 )
925 coreconfigitem(
925 coreconfigitem(
926 b'experimental',
926 b'experimental',
927 b'copytrace.movecandidateslimit',
927 b'copytrace.movecandidateslimit',
928 default=100,
928 default=100,
929 )
929 )
930 coreconfigitem(
930 coreconfigitem(
931 b'experimental',
931 b'experimental',
932 b'copytrace.sourcecommitlimit',
932 b'copytrace.sourcecommitlimit',
933 default=100,
933 default=100,
934 )
934 )
935 coreconfigitem(
935 coreconfigitem(
936 b'experimental',
936 b'experimental',
937 b'copies.read-from',
937 b'copies.read-from',
938 default=b"filelog-only",
938 default=b"filelog-only",
939 )
939 )
940 coreconfigitem(
940 coreconfigitem(
941 b'experimental',
941 b'experimental',
942 b'copies.write-to',
942 b'copies.write-to',
943 default=b'filelog-only',
943 default=b'filelog-only',
944 )
944 )
945 coreconfigitem(
945 coreconfigitem(
946 b'experimental',
946 b'experimental',
947 b'crecordtest',
947 b'crecordtest',
948 default=None,
948 default=None,
949 )
949 )
950 coreconfigitem(
950 coreconfigitem(
951 b'experimental',
951 b'experimental',
952 b'directaccess',
952 b'directaccess',
953 default=False,
953 default=False,
954 )
954 )
955 coreconfigitem(
955 coreconfigitem(
956 b'experimental',
956 b'experimental',
957 b'directaccess.revnums',
957 b'directaccess.revnums',
958 default=False,
958 default=False,
959 )
959 )
960 coreconfigitem(
960 coreconfigitem(
961 b'experimental',
961 b'experimental',
962 b'dirstate-tree.in-memory',
962 b'dirstate-tree.in-memory',
963 default=False,
963 default=False,
964 )
964 )
965 coreconfigitem(
965 coreconfigitem(
966 b'experimental',
966 b'experimental',
967 b'editortmpinhg',
967 b'editortmpinhg',
968 default=False,
968 default=False,
969 )
969 )
970 coreconfigitem(
970 coreconfigitem(
971 b'experimental',
971 b'experimental',
972 b'evolution',
972 b'evolution',
973 default=list,
973 default=list,
974 )
974 )
975 coreconfigitem(
975 coreconfigitem(
976 b'experimental',
976 b'experimental',
977 b'evolution.allowdivergence',
977 b'evolution.allowdivergence',
978 default=False,
978 default=False,
979 alias=[(b'experimental', b'allowdivergence')],
979 alias=[(b'experimental', b'allowdivergence')],
980 )
980 )
981 coreconfigitem(
981 coreconfigitem(
982 b'experimental',
982 b'experimental',
983 b'evolution.allowunstable',
983 b'evolution.allowunstable',
984 default=None,
984 default=None,
985 )
985 )
986 coreconfigitem(
986 coreconfigitem(
987 b'experimental',
987 b'experimental',
988 b'evolution.createmarkers',
988 b'evolution.createmarkers',
989 default=None,
989 default=None,
990 )
990 )
991 coreconfigitem(
991 coreconfigitem(
992 b'experimental',
992 b'experimental',
993 b'evolution.effect-flags',
993 b'evolution.effect-flags',
994 default=True,
994 default=True,
995 alias=[(b'experimental', b'effect-flags')],
995 alias=[(b'experimental', b'effect-flags')],
996 )
996 )
997 coreconfigitem(
997 coreconfigitem(
998 b'experimental',
998 b'experimental',
999 b'evolution.exchange',
999 b'evolution.exchange',
1000 default=None,
1000 default=None,
1001 )
1001 )
1002 coreconfigitem(
1002 coreconfigitem(
1003 b'experimental',
1003 b'experimental',
1004 b'evolution.bundle-obsmarker',
1004 b'evolution.bundle-obsmarker',
1005 default=False,
1005 default=False,
1006 )
1006 )
1007 coreconfigitem(
1007 coreconfigitem(
1008 b'experimental',
1008 b'experimental',
1009 b'evolution.bundle-obsmarker:mandatory',
1009 b'evolution.bundle-obsmarker:mandatory',
1010 default=True,
1010 default=True,
1011 )
1011 )
1012 coreconfigitem(
1012 coreconfigitem(
1013 b'experimental',
1013 b'experimental',
1014 b'log.topo',
1014 b'log.topo',
1015 default=False,
1015 default=False,
1016 )
1016 )
1017 coreconfigitem(
1017 coreconfigitem(
1018 b'experimental',
1018 b'experimental',
1019 b'evolution.report-instabilities',
1019 b'evolution.report-instabilities',
1020 default=True,
1020 default=True,
1021 )
1021 )
1022 coreconfigitem(
1022 coreconfigitem(
1023 b'experimental',
1023 b'experimental',
1024 b'evolution.track-operation',
1024 b'evolution.track-operation',
1025 default=True,
1025 default=True,
1026 )
1026 )
1027 # repo-level config to exclude a revset visibility
1027 # repo-level config to exclude a revset visibility
1028 #
1028 #
1029 # The target use case is to use `share` to expose different subset of the same
1029 # The target use case is to use `share` to expose different subset of the same
1030 # repository, especially server side. See also `server.view`.
1030 # repository, especially server side. See also `server.view`.
1031 coreconfigitem(
1031 coreconfigitem(
1032 b'experimental',
1032 b'experimental',
1033 b'extra-filter-revs',
1033 b'extra-filter-revs',
1034 default=None,
1034 default=None,
1035 )
1035 )
1036 coreconfigitem(
1036 coreconfigitem(
1037 b'experimental',
1037 b'experimental',
1038 b'maxdeltachainspan',
1038 b'maxdeltachainspan',
1039 default=-1,
1039 default=-1,
1040 )
1040 )
1041 # tracks files which were undeleted (merge might delete them but we explicitly
1041 # tracks files which were undeleted (merge might delete them but we explicitly
1042 # kept/undeleted them) and creates new filenodes for them
1042 # kept/undeleted them) and creates new filenodes for them
1043 coreconfigitem(
1043 coreconfigitem(
1044 b'experimental',
1044 b'experimental',
1045 b'merge-track-salvaged',
1045 b'merge-track-salvaged',
1046 default=False,
1046 default=False,
1047 )
1047 )
1048 coreconfigitem(
1048 coreconfigitem(
1049 b'experimental',
1049 b'experimental',
1050 b'mergetempdirprefix',
1050 b'mergetempdirprefix',
1051 default=None,
1051 default=None,
1052 )
1052 )
1053 coreconfigitem(
1053 coreconfigitem(
1054 b'experimental',
1054 b'experimental',
1055 b'mmapindexthreshold',
1055 b'mmapindexthreshold',
1056 default=None,
1056 default=None,
1057 )
1057 )
1058 coreconfigitem(
1058 coreconfigitem(
1059 b'experimental',
1059 b'experimental',
1060 b'narrow',
1060 b'narrow',
1061 default=False,
1061 default=False,
1062 )
1062 )
1063 coreconfigitem(
1063 coreconfigitem(
1064 b'experimental',
1064 b'experimental',
1065 b'nonnormalparanoidcheck',
1065 b'nonnormalparanoidcheck',
1066 default=False,
1066 default=False,
1067 )
1067 )
1068 coreconfigitem(
1068 coreconfigitem(
1069 b'experimental',
1069 b'experimental',
1070 b'exportableenviron',
1070 b'exportableenviron',
1071 default=list,
1071 default=list,
1072 )
1072 )
1073 coreconfigitem(
1073 coreconfigitem(
1074 b'experimental',
1074 b'experimental',
1075 b'extendedheader.index',
1075 b'extendedheader.index',
1076 default=None,
1076 default=None,
1077 )
1077 )
1078 coreconfigitem(
1078 coreconfigitem(
1079 b'experimental',
1079 b'experimental',
1080 b'extendedheader.similarity',
1080 b'extendedheader.similarity',
1081 default=False,
1081 default=False,
1082 )
1082 )
1083 coreconfigitem(
1083 coreconfigitem(
1084 b'experimental',
1084 b'experimental',
1085 b'graphshorten',
1085 b'graphshorten',
1086 default=False,
1086 default=False,
1087 )
1087 )
1088 coreconfigitem(
1088 coreconfigitem(
1089 b'experimental',
1089 b'experimental',
1090 b'graphstyle.parent',
1090 b'graphstyle.parent',
1091 default=dynamicdefault,
1091 default=dynamicdefault,
1092 )
1092 )
1093 coreconfigitem(
1093 coreconfigitem(
1094 b'experimental',
1094 b'experimental',
1095 b'graphstyle.missing',
1095 b'graphstyle.missing',
1096 default=dynamicdefault,
1096 default=dynamicdefault,
1097 )
1097 )
1098 coreconfigitem(
1098 coreconfigitem(
1099 b'experimental',
1099 b'experimental',
1100 b'graphstyle.grandparent',
1100 b'graphstyle.grandparent',
1101 default=dynamicdefault,
1101 default=dynamicdefault,
1102 )
1102 )
1103 coreconfigitem(
1103 coreconfigitem(
1104 b'experimental',
1104 b'experimental',
1105 b'hook-track-tags',
1105 b'hook-track-tags',
1106 default=False,
1106 default=False,
1107 )
1107 )
1108 coreconfigitem(
1108 coreconfigitem(
1109 b'experimental',
1109 b'experimental',
1110 b'httppeer.advertise-v2',
1110 b'httppeer.advertise-v2',
1111 default=False,
1111 default=False,
1112 )
1112 )
1113 coreconfigitem(
1113 coreconfigitem(
1114 b'experimental',
1114 b'experimental',
1115 b'httppeer.v2-encoder-order',
1115 b'httppeer.v2-encoder-order',
1116 default=None,
1116 default=None,
1117 )
1117 )
1118 coreconfigitem(
1118 coreconfigitem(
1119 b'experimental',
1119 b'experimental',
1120 b'httppostargs',
1120 b'httppostargs',
1121 default=False,
1121 default=False,
1122 )
1122 )
1123 coreconfigitem(b'experimental', b'nointerrupt', default=False)
1123 coreconfigitem(b'experimental', b'nointerrupt', default=False)
1124 coreconfigitem(b'experimental', b'nointerrupt-interactiveonly', default=True)
1124 coreconfigitem(b'experimental', b'nointerrupt-interactiveonly', default=True)
1125
1125
1126 coreconfigitem(
1126 coreconfigitem(
1127 b'experimental',
1127 b'experimental',
1128 b'obsmarkers-exchange-debug',
1128 b'obsmarkers-exchange-debug',
1129 default=False,
1129 default=False,
1130 )
1130 )
1131 coreconfigitem(
1131 coreconfigitem(
1132 b'experimental',
1132 b'experimental',
1133 b'remotenames',
1133 b'remotenames',
1134 default=False,
1134 default=False,
1135 )
1135 )
1136 coreconfigitem(
1136 coreconfigitem(
1137 b'experimental',
1137 b'experimental',
1138 b'removeemptydirs',
1138 b'removeemptydirs',
1139 default=True,
1139 default=True,
1140 )
1140 )
1141 coreconfigitem(
1141 coreconfigitem(
1142 b'experimental',
1142 b'experimental',
1143 b'revert.interactive.select-to-keep',
1143 b'revert.interactive.select-to-keep',
1144 default=False,
1144 default=False,
1145 )
1145 )
1146 coreconfigitem(
1146 coreconfigitem(
1147 b'experimental',
1147 b'experimental',
1148 b'revisions.prefixhexnode',
1148 b'revisions.prefixhexnode',
1149 default=False,
1149 default=False,
1150 )
1150 )
1151 # "out of experimental" todo list.
1151 # "out of experimental" todo list.
1152 #
1152 #
1153 # * include management of a persistent nodemap in the main docket
1153 # * include management of a persistent nodemap in the main docket
1154 # * enforce a "no-truncate" policy for mmap safety
1154 # * enforce a "no-truncate" policy for mmap safety
1155 # - for censoring operation
1155 # - for censoring operation
1156 # - for stripping operation
1156 # - for stripping operation
1157 # - for rollback operation
1157 # - for rollback operation
1158 # * proper streaming (race free) of the docket file
1158 # * proper streaming (race free) of the docket file
1159 # * track garbage data to evemtually allow rewriting -existing- sidedata.
1159 # * track garbage data to evemtually allow rewriting -existing- sidedata.
1160 # * Exchange-wise, we will also need to do something more efficient than
1160 # * Exchange-wise, we will also need to do something more efficient than
1161 # keeping references to the affected revlogs, especially memory-wise when
1161 # keeping references to the affected revlogs, especially memory-wise when
1162 # rewriting sidedata.
1162 # rewriting sidedata.
1163 # * sidedata compression
1164 # * introduce a proper solution to reduce the number of filelog related files.
1163 # * introduce a proper solution to reduce the number of filelog related files.
1165 # * Improvement to consider
1164 # * Improvement to consider
1166 # - avoid compression header in chunk using the default compression?
1165 # - avoid compression header in chunk using the default compression?
1167 # - forbid "inline" compression mode entirely?
1166 # - forbid "inline" compression mode entirely?
1168 # - split the data offset and flag field (the 2 bytes save are mostly trouble)
1167 # - split the data offset and flag field (the 2 bytes save are mostly trouble)
1169 # - keep track of uncompressed -chunk- size (to preallocate memory better)
1168 # - keep track of uncompressed -chunk- size (to preallocate memory better)
1170 # - keep track of chain base or size (probably not that useful anymore)
1169 # - keep track of chain base or size (probably not that useful anymore)
1171 # - store data and sidedata in different files
1170 # - store data and sidedata in different files
1172 coreconfigitem(
1171 coreconfigitem(
1173 b'experimental',
1172 b'experimental',
1174 b'revlogv2',
1173 b'revlogv2',
1175 default=None,
1174 default=None,
1176 )
1175 )
1177 coreconfigitem(
1176 coreconfigitem(
1178 b'experimental',
1177 b'experimental',
1179 b'revisions.disambiguatewithin',
1178 b'revisions.disambiguatewithin',
1180 default=None,
1179 default=None,
1181 )
1180 )
1182 coreconfigitem(
1181 coreconfigitem(
1183 b'experimental',
1182 b'experimental',
1184 b'rust.index',
1183 b'rust.index',
1185 default=False,
1184 default=False,
1186 )
1185 )
1187 coreconfigitem(
1186 coreconfigitem(
1188 b'experimental',
1187 b'experimental',
1189 b'server.filesdata.recommended-batch-size',
1188 b'server.filesdata.recommended-batch-size',
1190 default=50000,
1189 default=50000,
1191 )
1190 )
1192 coreconfigitem(
1191 coreconfigitem(
1193 b'experimental',
1192 b'experimental',
1194 b'server.manifestdata.recommended-batch-size',
1193 b'server.manifestdata.recommended-batch-size',
1195 default=100000,
1194 default=100000,
1196 )
1195 )
1197 coreconfigitem(
1196 coreconfigitem(
1198 b'experimental',
1197 b'experimental',
1199 b'server.stream-narrow-clones',
1198 b'server.stream-narrow-clones',
1200 default=False,
1199 default=False,
1201 )
1200 )
1202 coreconfigitem(
1201 coreconfigitem(
1203 b'experimental',
1202 b'experimental',
1204 b'single-head-per-branch',
1203 b'single-head-per-branch',
1205 default=False,
1204 default=False,
1206 )
1205 )
1207 coreconfigitem(
1206 coreconfigitem(
1208 b'experimental',
1207 b'experimental',
1209 b'single-head-per-branch:account-closed-heads',
1208 b'single-head-per-branch:account-closed-heads',
1210 default=False,
1209 default=False,
1211 )
1210 )
1212 coreconfigitem(
1211 coreconfigitem(
1213 b'experimental',
1212 b'experimental',
1214 b'single-head-per-branch:public-changes-only',
1213 b'single-head-per-branch:public-changes-only',
1215 default=False,
1214 default=False,
1216 )
1215 )
1217 coreconfigitem(
1216 coreconfigitem(
1218 b'experimental',
1217 b'experimental',
1219 b'sshserver.support-v2',
1218 b'sshserver.support-v2',
1220 default=False,
1219 default=False,
1221 )
1220 )
1222 coreconfigitem(
1221 coreconfigitem(
1223 b'experimental',
1222 b'experimental',
1224 b'sparse-read',
1223 b'sparse-read',
1225 default=False,
1224 default=False,
1226 )
1225 )
1227 coreconfigitem(
1226 coreconfigitem(
1228 b'experimental',
1227 b'experimental',
1229 b'sparse-read.density-threshold',
1228 b'sparse-read.density-threshold',
1230 default=0.50,
1229 default=0.50,
1231 )
1230 )
1232 coreconfigitem(
1231 coreconfigitem(
1233 b'experimental',
1232 b'experimental',
1234 b'sparse-read.min-gap-size',
1233 b'sparse-read.min-gap-size',
1235 default=b'65K',
1234 default=b'65K',
1236 )
1235 )
1237 coreconfigitem(
1236 coreconfigitem(
1238 b'experimental',
1237 b'experimental',
1239 b'treemanifest',
1238 b'treemanifest',
1240 default=False,
1239 default=False,
1241 )
1240 )
1242 coreconfigitem(
1241 coreconfigitem(
1243 b'experimental',
1242 b'experimental',
1244 b'update.atomic-file',
1243 b'update.atomic-file',
1245 default=False,
1244 default=False,
1246 )
1245 )
1247 coreconfigitem(
1246 coreconfigitem(
1248 b'experimental',
1247 b'experimental',
1249 b'sshpeer.advertise-v2',
1248 b'sshpeer.advertise-v2',
1250 default=False,
1249 default=False,
1251 )
1250 )
1252 coreconfigitem(
1251 coreconfigitem(
1253 b'experimental',
1252 b'experimental',
1254 b'web.apiserver',
1253 b'web.apiserver',
1255 default=False,
1254 default=False,
1256 )
1255 )
1257 coreconfigitem(
1256 coreconfigitem(
1258 b'experimental',
1257 b'experimental',
1259 b'web.api.http-v2',
1258 b'web.api.http-v2',
1260 default=False,
1259 default=False,
1261 )
1260 )
1262 coreconfigitem(
1261 coreconfigitem(
1263 b'experimental',
1262 b'experimental',
1264 b'web.api.debugreflect',
1263 b'web.api.debugreflect',
1265 default=False,
1264 default=False,
1266 )
1265 )
1267 coreconfigitem(
1266 coreconfigitem(
1268 b'experimental',
1267 b'experimental',
1269 b'worker.wdir-get-thread-safe',
1268 b'worker.wdir-get-thread-safe',
1270 default=False,
1269 default=False,
1271 )
1270 )
1272 coreconfigitem(
1271 coreconfigitem(
1273 b'experimental',
1272 b'experimental',
1274 b'worker.repository-upgrade',
1273 b'worker.repository-upgrade',
1275 default=False,
1274 default=False,
1276 )
1275 )
1277 coreconfigitem(
1276 coreconfigitem(
1278 b'experimental',
1277 b'experimental',
1279 b'xdiff',
1278 b'xdiff',
1280 default=False,
1279 default=False,
1281 )
1280 )
1282 coreconfigitem(
1281 coreconfigitem(
1283 b'extensions',
1282 b'extensions',
1284 b'.*',
1283 b'.*',
1285 default=None,
1284 default=None,
1286 generic=True,
1285 generic=True,
1287 )
1286 )
1288 coreconfigitem(
1287 coreconfigitem(
1289 b'extdata',
1288 b'extdata',
1290 b'.*',
1289 b'.*',
1291 default=None,
1290 default=None,
1292 generic=True,
1291 generic=True,
1293 )
1292 )
1294 coreconfigitem(
1293 coreconfigitem(
1295 b'format',
1294 b'format',
1296 b'bookmarks-in-store',
1295 b'bookmarks-in-store',
1297 default=False,
1296 default=False,
1298 )
1297 )
1299 coreconfigitem(
1298 coreconfigitem(
1300 b'format',
1299 b'format',
1301 b'chunkcachesize',
1300 b'chunkcachesize',
1302 default=None,
1301 default=None,
1303 experimental=True,
1302 experimental=True,
1304 )
1303 )
1305 coreconfigitem(
1304 coreconfigitem(
1306 # Enable this dirstate format *when creating a new repository*.
1305 # Enable this dirstate format *when creating a new repository*.
1307 # Which format to use for existing repos is controlled by .hg/requires
1306 # Which format to use for existing repos is controlled by .hg/requires
1308 b'format',
1307 b'format',
1309 b'exp-dirstate-v2',
1308 b'exp-dirstate-v2',
1310 default=False,
1309 default=False,
1311 experimental=True,
1310 experimental=True,
1312 )
1311 )
1313 coreconfigitem(
1312 coreconfigitem(
1314 b'format',
1313 b'format',
1315 b'dotencode',
1314 b'dotencode',
1316 default=True,
1315 default=True,
1317 )
1316 )
1318 coreconfigitem(
1317 coreconfigitem(
1319 b'format',
1318 b'format',
1320 b'generaldelta',
1319 b'generaldelta',
1321 default=False,
1320 default=False,
1322 experimental=True,
1321 experimental=True,
1323 )
1322 )
1324 coreconfigitem(
1323 coreconfigitem(
1325 b'format',
1324 b'format',
1326 b'manifestcachesize',
1325 b'manifestcachesize',
1327 default=None,
1326 default=None,
1328 experimental=True,
1327 experimental=True,
1329 )
1328 )
1330 coreconfigitem(
1329 coreconfigitem(
1331 b'format',
1330 b'format',
1332 b'maxchainlen',
1331 b'maxchainlen',
1333 default=dynamicdefault,
1332 default=dynamicdefault,
1334 experimental=True,
1333 experimental=True,
1335 )
1334 )
1336 coreconfigitem(
1335 coreconfigitem(
1337 b'format',
1336 b'format',
1338 b'obsstore-version',
1337 b'obsstore-version',
1339 default=None,
1338 default=None,
1340 )
1339 )
1341 coreconfigitem(
1340 coreconfigitem(
1342 b'format',
1341 b'format',
1343 b'sparse-revlog',
1342 b'sparse-revlog',
1344 default=True,
1343 default=True,
1345 )
1344 )
1346 coreconfigitem(
1345 coreconfigitem(
1347 b'format',
1346 b'format',
1348 b'revlog-compression',
1347 b'revlog-compression',
1349 default=lambda: [b'zstd', b'zlib'],
1348 default=lambda: [b'zstd', b'zlib'],
1350 alias=[(b'experimental', b'format.compression')],
1349 alias=[(b'experimental', b'format.compression')],
1351 )
1350 )
1352 # Experimental TODOs:
1351 # Experimental TODOs:
1353 #
1352 #
1354 # * Same as for evlogv2 (but for the reduction of the number of files)
1353 # * Same as for evlogv2 (but for the reduction of the number of files)
1355 # * Improvement to investigate
1354 # * Improvement to investigate
1356 # - storing .hgtags fnode
1355 # - storing .hgtags fnode
1357 # - storing `rank` of changesets
1356 # - storing `rank` of changesets
1358 # - storing branch related identifier
1357 # - storing branch related identifier
1359
1358
1360 coreconfigitem(
1359 coreconfigitem(
1361 b'format',
1360 b'format',
1362 b'exp-use-changelog-v2',
1361 b'exp-use-changelog-v2',
1363 default=None,
1362 default=None,
1364 experimental=True,
1363 experimental=True,
1365 )
1364 )
1366 coreconfigitem(
1365 coreconfigitem(
1367 b'format',
1366 b'format',
1368 b'usefncache',
1367 b'usefncache',
1369 default=True,
1368 default=True,
1370 )
1369 )
1371 coreconfigitem(
1370 coreconfigitem(
1372 b'format',
1371 b'format',
1373 b'usegeneraldelta',
1372 b'usegeneraldelta',
1374 default=True,
1373 default=True,
1375 )
1374 )
1376 coreconfigitem(
1375 coreconfigitem(
1377 b'format',
1376 b'format',
1378 b'usestore',
1377 b'usestore',
1379 default=True,
1378 default=True,
1380 )
1379 )
1381
1380
1382
1381
1383 def _persistent_nodemap_default():
1382 def _persistent_nodemap_default():
1384 """compute `use-persistent-nodemap` default value
1383 """compute `use-persistent-nodemap` default value
1385
1384
1386 The feature is disabled unless a fast implementation is available.
1385 The feature is disabled unless a fast implementation is available.
1387 """
1386 """
1388 from . import policy
1387 from . import policy
1389
1388
1390 return policy.importrust('revlog') is not None
1389 return policy.importrust('revlog') is not None
1391
1390
1392
1391
1393 coreconfigitem(
1392 coreconfigitem(
1394 b'format',
1393 b'format',
1395 b'use-persistent-nodemap',
1394 b'use-persistent-nodemap',
1396 default=_persistent_nodemap_default,
1395 default=_persistent_nodemap_default,
1397 )
1396 )
1398 coreconfigitem(
1397 coreconfigitem(
1399 b'format',
1398 b'format',
1400 b'exp-use-copies-side-data-changeset',
1399 b'exp-use-copies-side-data-changeset',
1401 default=False,
1400 default=False,
1402 experimental=True,
1401 experimental=True,
1403 )
1402 )
1404 coreconfigitem(
1403 coreconfigitem(
1405 b'format',
1404 b'format',
1406 b'use-share-safe',
1405 b'use-share-safe',
1407 default=False,
1406 default=False,
1408 )
1407 )
1409 coreconfigitem(
1408 coreconfigitem(
1410 b'format',
1409 b'format',
1411 b'internal-phase',
1410 b'internal-phase',
1412 default=False,
1411 default=False,
1413 experimental=True,
1412 experimental=True,
1414 )
1413 )
1415 coreconfigitem(
1414 coreconfigitem(
1416 b'fsmonitor',
1415 b'fsmonitor',
1417 b'warn_when_unused',
1416 b'warn_when_unused',
1418 default=True,
1417 default=True,
1419 )
1418 )
1420 coreconfigitem(
1419 coreconfigitem(
1421 b'fsmonitor',
1420 b'fsmonitor',
1422 b'warn_update_file_count',
1421 b'warn_update_file_count',
1423 default=50000,
1422 default=50000,
1424 )
1423 )
1425 coreconfigitem(
1424 coreconfigitem(
1426 b'fsmonitor',
1425 b'fsmonitor',
1427 b'warn_update_file_count_rust',
1426 b'warn_update_file_count_rust',
1428 default=400000,
1427 default=400000,
1429 )
1428 )
1430 coreconfigitem(
1429 coreconfigitem(
1431 b'help',
1430 b'help',
1432 br'hidden-command\..*',
1431 br'hidden-command\..*',
1433 default=False,
1432 default=False,
1434 generic=True,
1433 generic=True,
1435 )
1434 )
1436 coreconfigitem(
1435 coreconfigitem(
1437 b'help',
1436 b'help',
1438 br'hidden-topic\..*',
1437 br'hidden-topic\..*',
1439 default=False,
1438 default=False,
1440 generic=True,
1439 generic=True,
1441 )
1440 )
1442 coreconfigitem(
1441 coreconfigitem(
1443 b'hooks',
1442 b'hooks',
1444 b'[^:]*',
1443 b'[^:]*',
1445 default=dynamicdefault,
1444 default=dynamicdefault,
1446 generic=True,
1445 generic=True,
1447 )
1446 )
1448 coreconfigitem(
1447 coreconfigitem(
1449 b'hooks',
1448 b'hooks',
1450 b'.*:run-with-plain',
1449 b'.*:run-with-plain',
1451 default=True,
1450 default=True,
1452 generic=True,
1451 generic=True,
1453 )
1452 )
1454 coreconfigitem(
1453 coreconfigitem(
1455 b'hgweb-paths',
1454 b'hgweb-paths',
1456 b'.*',
1455 b'.*',
1457 default=list,
1456 default=list,
1458 generic=True,
1457 generic=True,
1459 )
1458 )
1460 coreconfigitem(
1459 coreconfigitem(
1461 b'hostfingerprints',
1460 b'hostfingerprints',
1462 b'.*',
1461 b'.*',
1463 default=list,
1462 default=list,
1464 generic=True,
1463 generic=True,
1465 )
1464 )
1466 coreconfigitem(
1465 coreconfigitem(
1467 b'hostsecurity',
1466 b'hostsecurity',
1468 b'ciphers',
1467 b'ciphers',
1469 default=None,
1468 default=None,
1470 )
1469 )
1471 coreconfigitem(
1470 coreconfigitem(
1472 b'hostsecurity',
1471 b'hostsecurity',
1473 b'minimumprotocol',
1472 b'minimumprotocol',
1474 default=dynamicdefault,
1473 default=dynamicdefault,
1475 )
1474 )
1476 coreconfigitem(
1475 coreconfigitem(
1477 b'hostsecurity',
1476 b'hostsecurity',
1478 b'.*:minimumprotocol$',
1477 b'.*:minimumprotocol$',
1479 default=dynamicdefault,
1478 default=dynamicdefault,
1480 generic=True,
1479 generic=True,
1481 )
1480 )
1482 coreconfigitem(
1481 coreconfigitem(
1483 b'hostsecurity',
1482 b'hostsecurity',
1484 b'.*:ciphers$',
1483 b'.*:ciphers$',
1485 default=dynamicdefault,
1484 default=dynamicdefault,
1486 generic=True,
1485 generic=True,
1487 )
1486 )
1488 coreconfigitem(
1487 coreconfigitem(
1489 b'hostsecurity',
1488 b'hostsecurity',
1490 b'.*:fingerprints$',
1489 b'.*:fingerprints$',
1491 default=list,
1490 default=list,
1492 generic=True,
1491 generic=True,
1493 )
1492 )
1494 coreconfigitem(
1493 coreconfigitem(
1495 b'hostsecurity',
1494 b'hostsecurity',
1496 b'.*:verifycertsfile$',
1495 b'.*:verifycertsfile$',
1497 default=None,
1496 default=None,
1498 generic=True,
1497 generic=True,
1499 )
1498 )
1500
1499
1501 coreconfigitem(
1500 coreconfigitem(
1502 b'http_proxy',
1501 b'http_proxy',
1503 b'always',
1502 b'always',
1504 default=False,
1503 default=False,
1505 )
1504 )
1506 coreconfigitem(
1505 coreconfigitem(
1507 b'http_proxy',
1506 b'http_proxy',
1508 b'host',
1507 b'host',
1509 default=None,
1508 default=None,
1510 )
1509 )
1511 coreconfigitem(
1510 coreconfigitem(
1512 b'http_proxy',
1511 b'http_proxy',
1513 b'no',
1512 b'no',
1514 default=list,
1513 default=list,
1515 )
1514 )
1516 coreconfigitem(
1515 coreconfigitem(
1517 b'http_proxy',
1516 b'http_proxy',
1518 b'passwd',
1517 b'passwd',
1519 default=None,
1518 default=None,
1520 )
1519 )
1521 coreconfigitem(
1520 coreconfigitem(
1522 b'http_proxy',
1521 b'http_proxy',
1523 b'user',
1522 b'user',
1524 default=None,
1523 default=None,
1525 )
1524 )
1526
1525
1527 coreconfigitem(
1526 coreconfigitem(
1528 b'http',
1527 b'http',
1529 b'timeout',
1528 b'timeout',
1530 default=None,
1529 default=None,
1531 )
1530 )
1532
1531
1533 coreconfigitem(
1532 coreconfigitem(
1534 b'logtoprocess',
1533 b'logtoprocess',
1535 b'commandexception',
1534 b'commandexception',
1536 default=None,
1535 default=None,
1537 )
1536 )
1538 coreconfigitem(
1537 coreconfigitem(
1539 b'logtoprocess',
1538 b'logtoprocess',
1540 b'commandfinish',
1539 b'commandfinish',
1541 default=None,
1540 default=None,
1542 )
1541 )
1543 coreconfigitem(
1542 coreconfigitem(
1544 b'logtoprocess',
1543 b'logtoprocess',
1545 b'command',
1544 b'command',
1546 default=None,
1545 default=None,
1547 )
1546 )
1548 coreconfigitem(
1547 coreconfigitem(
1549 b'logtoprocess',
1548 b'logtoprocess',
1550 b'develwarn',
1549 b'develwarn',
1551 default=None,
1550 default=None,
1552 )
1551 )
1553 coreconfigitem(
1552 coreconfigitem(
1554 b'logtoprocess',
1553 b'logtoprocess',
1555 b'uiblocked',
1554 b'uiblocked',
1556 default=None,
1555 default=None,
1557 )
1556 )
1558 coreconfigitem(
1557 coreconfigitem(
1559 b'merge',
1558 b'merge',
1560 b'checkunknown',
1559 b'checkunknown',
1561 default=b'abort',
1560 default=b'abort',
1562 )
1561 )
1563 coreconfigitem(
1562 coreconfigitem(
1564 b'merge',
1563 b'merge',
1565 b'checkignored',
1564 b'checkignored',
1566 default=b'abort',
1565 default=b'abort',
1567 )
1566 )
1568 coreconfigitem(
1567 coreconfigitem(
1569 b'experimental',
1568 b'experimental',
1570 b'merge.checkpathconflicts',
1569 b'merge.checkpathconflicts',
1571 default=False,
1570 default=False,
1572 )
1571 )
1573 coreconfigitem(
1572 coreconfigitem(
1574 b'merge',
1573 b'merge',
1575 b'followcopies',
1574 b'followcopies',
1576 default=True,
1575 default=True,
1577 )
1576 )
1578 coreconfigitem(
1577 coreconfigitem(
1579 b'merge',
1578 b'merge',
1580 b'on-failure',
1579 b'on-failure',
1581 default=b'continue',
1580 default=b'continue',
1582 )
1581 )
1583 coreconfigitem(
1582 coreconfigitem(
1584 b'merge',
1583 b'merge',
1585 b'preferancestor',
1584 b'preferancestor',
1586 default=lambda: [b'*'],
1585 default=lambda: [b'*'],
1587 experimental=True,
1586 experimental=True,
1588 )
1587 )
1589 coreconfigitem(
1588 coreconfigitem(
1590 b'merge',
1589 b'merge',
1591 b'strict-capability-check',
1590 b'strict-capability-check',
1592 default=False,
1591 default=False,
1593 )
1592 )
1594 coreconfigitem(
1593 coreconfigitem(
1595 b'merge-tools',
1594 b'merge-tools',
1596 b'.*',
1595 b'.*',
1597 default=None,
1596 default=None,
1598 generic=True,
1597 generic=True,
1599 )
1598 )
1600 coreconfigitem(
1599 coreconfigitem(
1601 b'merge-tools',
1600 b'merge-tools',
1602 br'.*\.args$',
1601 br'.*\.args$',
1603 default=b"$local $base $other",
1602 default=b"$local $base $other",
1604 generic=True,
1603 generic=True,
1605 priority=-1,
1604 priority=-1,
1606 )
1605 )
1607 coreconfigitem(
1606 coreconfigitem(
1608 b'merge-tools',
1607 b'merge-tools',
1609 br'.*\.binary$',
1608 br'.*\.binary$',
1610 default=False,
1609 default=False,
1611 generic=True,
1610 generic=True,
1612 priority=-1,
1611 priority=-1,
1613 )
1612 )
1614 coreconfigitem(
1613 coreconfigitem(
1615 b'merge-tools',
1614 b'merge-tools',
1616 br'.*\.check$',
1615 br'.*\.check$',
1617 default=list,
1616 default=list,
1618 generic=True,
1617 generic=True,
1619 priority=-1,
1618 priority=-1,
1620 )
1619 )
1621 coreconfigitem(
1620 coreconfigitem(
1622 b'merge-tools',
1621 b'merge-tools',
1623 br'.*\.checkchanged$',
1622 br'.*\.checkchanged$',
1624 default=False,
1623 default=False,
1625 generic=True,
1624 generic=True,
1626 priority=-1,
1625 priority=-1,
1627 )
1626 )
1628 coreconfigitem(
1627 coreconfigitem(
1629 b'merge-tools',
1628 b'merge-tools',
1630 br'.*\.executable$',
1629 br'.*\.executable$',
1631 default=dynamicdefault,
1630 default=dynamicdefault,
1632 generic=True,
1631 generic=True,
1633 priority=-1,
1632 priority=-1,
1634 )
1633 )
1635 coreconfigitem(
1634 coreconfigitem(
1636 b'merge-tools',
1635 b'merge-tools',
1637 br'.*\.fixeol$',
1636 br'.*\.fixeol$',
1638 default=False,
1637 default=False,
1639 generic=True,
1638 generic=True,
1640 priority=-1,
1639 priority=-1,
1641 )
1640 )
1642 coreconfigitem(
1641 coreconfigitem(
1643 b'merge-tools',
1642 b'merge-tools',
1644 br'.*\.gui$',
1643 br'.*\.gui$',
1645 default=False,
1644 default=False,
1646 generic=True,
1645 generic=True,
1647 priority=-1,
1646 priority=-1,
1648 )
1647 )
1649 coreconfigitem(
1648 coreconfigitem(
1650 b'merge-tools',
1649 b'merge-tools',
1651 br'.*\.mergemarkers$',
1650 br'.*\.mergemarkers$',
1652 default=b'basic',
1651 default=b'basic',
1653 generic=True,
1652 generic=True,
1654 priority=-1,
1653 priority=-1,
1655 )
1654 )
1656 coreconfigitem(
1655 coreconfigitem(
1657 b'merge-tools',
1656 b'merge-tools',
1658 br'.*\.mergemarkertemplate$',
1657 br'.*\.mergemarkertemplate$',
1659 default=dynamicdefault, # take from command-templates.mergemarker
1658 default=dynamicdefault, # take from command-templates.mergemarker
1660 generic=True,
1659 generic=True,
1661 priority=-1,
1660 priority=-1,
1662 )
1661 )
1663 coreconfigitem(
1662 coreconfigitem(
1664 b'merge-tools',
1663 b'merge-tools',
1665 br'.*\.priority$',
1664 br'.*\.priority$',
1666 default=0,
1665 default=0,
1667 generic=True,
1666 generic=True,
1668 priority=-1,
1667 priority=-1,
1669 )
1668 )
1670 coreconfigitem(
1669 coreconfigitem(
1671 b'merge-tools',
1670 b'merge-tools',
1672 br'.*\.premerge$',
1671 br'.*\.premerge$',
1673 default=dynamicdefault,
1672 default=dynamicdefault,
1674 generic=True,
1673 generic=True,
1675 priority=-1,
1674 priority=-1,
1676 )
1675 )
1677 coreconfigitem(
1676 coreconfigitem(
1678 b'merge-tools',
1677 b'merge-tools',
1679 br'.*\.symlink$',
1678 br'.*\.symlink$',
1680 default=False,
1679 default=False,
1681 generic=True,
1680 generic=True,
1682 priority=-1,
1681 priority=-1,
1683 )
1682 )
1684 coreconfigitem(
1683 coreconfigitem(
1685 b'pager',
1684 b'pager',
1686 b'attend-.*',
1685 b'attend-.*',
1687 default=dynamicdefault,
1686 default=dynamicdefault,
1688 generic=True,
1687 generic=True,
1689 )
1688 )
1690 coreconfigitem(
1689 coreconfigitem(
1691 b'pager',
1690 b'pager',
1692 b'ignore',
1691 b'ignore',
1693 default=list,
1692 default=list,
1694 )
1693 )
1695 coreconfigitem(
1694 coreconfigitem(
1696 b'pager',
1695 b'pager',
1697 b'pager',
1696 b'pager',
1698 default=dynamicdefault,
1697 default=dynamicdefault,
1699 )
1698 )
1700 coreconfigitem(
1699 coreconfigitem(
1701 b'patch',
1700 b'patch',
1702 b'eol',
1701 b'eol',
1703 default=b'strict',
1702 default=b'strict',
1704 )
1703 )
1705 coreconfigitem(
1704 coreconfigitem(
1706 b'patch',
1705 b'patch',
1707 b'fuzz',
1706 b'fuzz',
1708 default=2,
1707 default=2,
1709 )
1708 )
1710 coreconfigitem(
1709 coreconfigitem(
1711 b'paths',
1710 b'paths',
1712 b'default',
1711 b'default',
1713 default=None,
1712 default=None,
1714 )
1713 )
1715 coreconfigitem(
1714 coreconfigitem(
1716 b'paths',
1715 b'paths',
1717 b'default-push',
1716 b'default-push',
1718 default=None,
1717 default=None,
1719 )
1718 )
1720 coreconfigitem(
1719 coreconfigitem(
1721 b'paths',
1720 b'paths',
1722 b'.*',
1721 b'.*',
1723 default=None,
1722 default=None,
1724 generic=True,
1723 generic=True,
1725 )
1724 )
1726 coreconfigitem(
1725 coreconfigitem(
1727 b'phases',
1726 b'phases',
1728 b'checksubrepos',
1727 b'checksubrepos',
1729 default=b'follow',
1728 default=b'follow',
1730 )
1729 )
1731 coreconfigitem(
1730 coreconfigitem(
1732 b'phases',
1731 b'phases',
1733 b'new-commit',
1732 b'new-commit',
1734 default=b'draft',
1733 default=b'draft',
1735 )
1734 )
1736 coreconfigitem(
1735 coreconfigitem(
1737 b'phases',
1736 b'phases',
1738 b'publish',
1737 b'publish',
1739 default=True,
1738 default=True,
1740 )
1739 )
1741 coreconfigitem(
1740 coreconfigitem(
1742 b'profiling',
1741 b'profiling',
1743 b'enabled',
1742 b'enabled',
1744 default=False,
1743 default=False,
1745 )
1744 )
1746 coreconfigitem(
1745 coreconfigitem(
1747 b'profiling',
1746 b'profiling',
1748 b'format',
1747 b'format',
1749 default=b'text',
1748 default=b'text',
1750 )
1749 )
1751 coreconfigitem(
1750 coreconfigitem(
1752 b'profiling',
1751 b'profiling',
1753 b'freq',
1752 b'freq',
1754 default=1000,
1753 default=1000,
1755 )
1754 )
1756 coreconfigitem(
1755 coreconfigitem(
1757 b'profiling',
1756 b'profiling',
1758 b'limit',
1757 b'limit',
1759 default=30,
1758 default=30,
1760 )
1759 )
1761 coreconfigitem(
1760 coreconfigitem(
1762 b'profiling',
1761 b'profiling',
1763 b'nested',
1762 b'nested',
1764 default=0,
1763 default=0,
1765 )
1764 )
1766 coreconfigitem(
1765 coreconfigitem(
1767 b'profiling',
1766 b'profiling',
1768 b'output',
1767 b'output',
1769 default=None,
1768 default=None,
1770 )
1769 )
1771 coreconfigitem(
1770 coreconfigitem(
1772 b'profiling',
1771 b'profiling',
1773 b'showmax',
1772 b'showmax',
1774 default=0.999,
1773 default=0.999,
1775 )
1774 )
1776 coreconfigitem(
1775 coreconfigitem(
1777 b'profiling',
1776 b'profiling',
1778 b'showmin',
1777 b'showmin',
1779 default=dynamicdefault,
1778 default=dynamicdefault,
1780 )
1779 )
1781 coreconfigitem(
1780 coreconfigitem(
1782 b'profiling',
1781 b'profiling',
1783 b'showtime',
1782 b'showtime',
1784 default=True,
1783 default=True,
1785 )
1784 )
1786 coreconfigitem(
1785 coreconfigitem(
1787 b'profiling',
1786 b'profiling',
1788 b'sort',
1787 b'sort',
1789 default=b'inlinetime',
1788 default=b'inlinetime',
1790 )
1789 )
1791 coreconfigitem(
1790 coreconfigitem(
1792 b'profiling',
1791 b'profiling',
1793 b'statformat',
1792 b'statformat',
1794 default=b'hotpath',
1793 default=b'hotpath',
1795 )
1794 )
1796 coreconfigitem(
1795 coreconfigitem(
1797 b'profiling',
1796 b'profiling',
1798 b'time-track',
1797 b'time-track',
1799 default=dynamicdefault,
1798 default=dynamicdefault,
1800 )
1799 )
1801 coreconfigitem(
1800 coreconfigitem(
1802 b'profiling',
1801 b'profiling',
1803 b'type',
1802 b'type',
1804 default=b'stat',
1803 default=b'stat',
1805 )
1804 )
1806 coreconfigitem(
1805 coreconfigitem(
1807 b'progress',
1806 b'progress',
1808 b'assume-tty',
1807 b'assume-tty',
1809 default=False,
1808 default=False,
1810 )
1809 )
1811 coreconfigitem(
1810 coreconfigitem(
1812 b'progress',
1811 b'progress',
1813 b'changedelay',
1812 b'changedelay',
1814 default=1,
1813 default=1,
1815 )
1814 )
1816 coreconfigitem(
1815 coreconfigitem(
1817 b'progress',
1816 b'progress',
1818 b'clear-complete',
1817 b'clear-complete',
1819 default=True,
1818 default=True,
1820 )
1819 )
1821 coreconfigitem(
1820 coreconfigitem(
1822 b'progress',
1821 b'progress',
1823 b'debug',
1822 b'debug',
1824 default=False,
1823 default=False,
1825 )
1824 )
1826 coreconfigitem(
1825 coreconfigitem(
1827 b'progress',
1826 b'progress',
1828 b'delay',
1827 b'delay',
1829 default=3,
1828 default=3,
1830 )
1829 )
1831 coreconfigitem(
1830 coreconfigitem(
1832 b'progress',
1831 b'progress',
1833 b'disable',
1832 b'disable',
1834 default=False,
1833 default=False,
1835 )
1834 )
1836 coreconfigitem(
1835 coreconfigitem(
1837 b'progress',
1836 b'progress',
1838 b'estimateinterval',
1837 b'estimateinterval',
1839 default=60.0,
1838 default=60.0,
1840 )
1839 )
1841 coreconfigitem(
1840 coreconfigitem(
1842 b'progress',
1841 b'progress',
1843 b'format',
1842 b'format',
1844 default=lambda: [b'topic', b'bar', b'number', b'estimate'],
1843 default=lambda: [b'topic', b'bar', b'number', b'estimate'],
1845 )
1844 )
1846 coreconfigitem(
1845 coreconfigitem(
1847 b'progress',
1846 b'progress',
1848 b'refresh',
1847 b'refresh',
1849 default=0.1,
1848 default=0.1,
1850 )
1849 )
1851 coreconfigitem(
1850 coreconfigitem(
1852 b'progress',
1851 b'progress',
1853 b'width',
1852 b'width',
1854 default=dynamicdefault,
1853 default=dynamicdefault,
1855 )
1854 )
1856 coreconfigitem(
1855 coreconfigitem(
1857 b'pull',
1856 b'pull',
1858 b'confirm',
1857 b'confirm',
1859 default=False,
1858 default=False,
1860 )
1859 )
1861 coreconfigitem(
1860 coreconfigitem(
1862 b'push',
1861 b'push',
1863 b'pushvars.server',
1862 b'pushvars.server',
1864 default=False,
1863 default=False,
1865 )
1864 )
1866 coreconfigitem(
1865 coreconfigitem(
1867 b'rewrite',
1866 b'rewrite',
1868 b'backup-bundle',
1867 b'backup-bundle',
1869 default=True,
1868 default=True,
1870 alias=[(b'ui', b'history-editing-backup')],
1869 alias=[(b'ui', b'history-editing-backup')],
1871 )
1870 )
1872 coreconfigitem(
1871 coreconfigitem(
1873 b'rewrite',
1872 b'rewrite',
1874 b'update-timestamp',
1873 b'update-timestamp',
1875 default=False,
1874 default=False,
1876 )
1875 )
1877 coreconfigitem(
1876 coreconfigitem(
1878 b'rewrite',
1877 b'rewrite',
1879 b'empty-successor',
1878 b'empty-successor',
1880 default=b'skip',
1879 default=b'skip',
1881 experimental=True,
1880 experimental=True,
1882 )
1881 )
1883 coreconfigitem(
1882 coreconfigitem(
1884 b'storage',
1883 b'storage',
1885 b'new-repo-backend',
1884 b'new-repo-backend',
1886 default=b'revlogv1',
1885 default=b'revlogv1',
1887 experimental=True,
1886 experimental=True,
1888 )
1887 )
1889 coreconfigitem(
1888 coreconfigitem(
1890 b'storage',
1889 b'storage',
1891 b'revlog.optimize-delta-parent-choice',
1890 b'revlog.optimize-delta-parent-choice',
1892 default=True,
1891 default=True,
1893 alias=[(b'format', b'aggressivemergedeltas')],
1892 alias=[(b'format', b'aggressivemergedeltas')],
1894 )
1893 )
1895 # experimental as long as rust is experimental (or a C version is implemented)
1894 # experimental as long as rust is experimental (or a C version is implemented)
1896 coreconfigitem(
1895 coreconfigitem(
1897 b'storage',
1896 b'storage',
1898 b'revlog.persistent-nodemap.mmap',
1897 b'revlog.persistent-nodemap.mmap',
1899 default=True,
1898 default=True,
1900 )
1899 )
1901 # experimental as long as format.use-persistent-nodemap is.
1900 # experimental as long as format.use-persistent-nodemap is.
1902 coreconfigitem(
1901 coreconfigitem(
1903 b'storage',
1902 b'storage',
1904 b'revlog.persistent-nodemap.slow-path',
1903 b'revlog.persistent-nodemap.slow-path',
1905 default=b"abort",
1904 default=b"abort",
1906 )
1905 )
1907
1906
1908 coreconfigitem(
1907 coreconfigitem(
1909 b'storage',
1908 b'storage',
1910 b'revlog.reuse-external-delta',
1909 b'revlog.reuse-external-delta',
1911 default=True,
1910 default=True,
1912 )
1911 )
1913 coreconfigitem(
1912 coreconfigitem(
1914 b'storage',
1913 b'storage',
1915 b'revlog.reuse-external-delta-parent',
1914 b'revlog.reuse-external-delta-parent',
1916 default=None,
1915 default=None,
1917 )
1916 )
1918 coreconfigitem(
1917 coreconfigitem(
1919 b'storage',
1918 b'storage',
1920 b'revlog.zlib.level',
1919 b'revlog.zlib.level',
1921 default=None,
1920 default=None,
1922 )
1921 )
1923 coreconfigitem(
1922 coreconfigitem(
1924 b'storage',
1923 b'storage',
1925 b'revlog.zstd.level',
1924 b'revlog.zstd.level',
1926 default=None,
1925 default=None,
1927 )
1926 )
1928 coreconfigitem(
1927 coreconfigitem(
1929 b'server',
1928 b'server',
1930 b'bookmarks-pushkey-compat',
1929 b'bookmarks-pushkey-compat',
1931 default=True,
1930 default=True,
1932 )
1931 )
1933 coreconfigitem(
1932 coreconfigitem(
1934 b'server',
1933 b'server',
1935 b'bundle1',
1934 b'bundle1',
1936 default=True,
1935 default=True,
1937 )
1936 )
1938 coreconfigitem(
1937 coreconfigitem(
1939 b'server',
1938 b'server',
1940 b'bundle1gd',
1939 b'bundle1gd',
1941 default=None,
1940 default=None,
1942 )
1941 )
1943 coreconfigitem(
1942 coreconfigitem(
1944 b'server',
1943 b'server',
1945 b'bundle1.pull',
1944 b'bundle1.pull',
1946 default=None,
1945 default=None,
1947 )
1946 )
1948 coreconfigitem(
1947 coreconfigitem(
1949 b'server',
1948 b'server',
1950 b'bundle1gd.pull',
1949 b'bundle1gd.pull',
1951 default=None,
1950 default=None,
1952 )
1951 )
1953 coreconfigitem(
1952 coreconfigitem(
1954 b'server',
1953 b'server',
1955 b'bundle1.push',
1954 b'bundle1.push',
1956 default=None,
1955 default=None,
1957 )
1956 )
1958 coreconfigitem(
1957 coreconfigitem(
1959 b'server',
1958 b'server',
1960 b'bundle1gd.push',
1959 b'bundle1gd.push',
1961 default=None,
1960 default=None,
1962 )
1961 )
1963 coreconfigitem(
1962 coreconfigitem(
1964 b'server',
1963 b'server',
1965 b'bundle2.stream',
1964 b'bundle2.stream',
1966 default=True,
1965 default=True,
1967 alias=[(b'experimental', b'bundle2.stream')],
1966 alias=[(b'experimental', b'bundle2.stream')],
1968 )
1967 )
1969 coreconfigitem(
1968 coreconfigitem(
1970 b'server',
1969 b'server',
1971 b'compressionengines',
1970 b'compressionengines',
1972 default=list,
1971 default=list,
1973 )
1972 )
1974 coreconfigitem(
1973 coreconfigitem(
1975 b'server',
1974 b'server',
1976 b'concurrent-push-mode',
1975 b'concurrent-push-mode',
1977 default=b'check-related',
1976 default=b'check-related',
1978 )
1977 )
1979 coreconfigitem(
1978 coreconfigitem(
1980 b'server',
1979 b'server',
1981 b'disablefullbundle',
1980 b'disablefullbundle',
1982 default=False,
1981 default=False,
1983 )
1982 )
1984 coreconfigitem(
1983 coreconfigitem(
1985 b'server',
1984 b'server',
1986 b'maxhttpheaderlen',
1985 b'maxhttpheaderlen',
1987 default=1024,
1986 default=1024,
1988 )
1987 )
1989 coreconfigitem(
1988 coreconfigitem(
1990 b'server',
1989 b'server',
1991 b'pullbundle',
1990 b'pullbundle',
1992 default=False,
1991 default=False,
1993 )
1992 )
1994 coreconfigitem(
1993 coreconfigitem(
1995 b'server',
1994 b'server',
1996 b'preferuncompressed',
1995 b'preferuncompressed',
1997 default=False,
1996 default=False,
1998 )
1997 )
1999 coreconfigitem(
1998 coreconfigitem(
2000 b'server',
1999 b'server',
2001 b'streamunbundle',
2000 b'streamunbundle',
2002 default=False,
2001 default=False,
2003 )
2002 )
2004 coreconfigitem(
2003 coreconfigitem(
2005 b'server',
2004 b'server',
2006 b'uncompressed',
2005 b'uncompressed',
2007 default=True,
2006 default=True,
2008 )
2007 )
2009 coreconfigitem(
2008 coreconfigitem(
2010 b'server',
2009 b'server',
2011 b'uncompressedallowsecret',
2010 b'uncompressedallowsecret',
2012 default=False,
2011 default=False,
2013 )
2012 )
2014 coreconfigitem(
2013 coreconfigitem(
2015 b'server',
2014 b'server',
2016 b'view',
2015 b'view',
2017 default=b'served',
2016 default=b'served',
2018 )
2017 )
2019 coreconfigitem(
2018 coreconfigitem(
2020 b'server',
2019 b'server',
2021 b'validate',
2020 b'validate',
2022 default=False,
2021 default=False,
2023 )
2022 )
2024 coreconfigitem(
2023 coreconfigitem(
2025 b'server',
2024 b'server',
2026 b'zliblevel',
2025 b'zliblevel',
2027 default=-1,
2026 default=-1,
2028 )
2027 )
2029 coreconfigitem(
2028 coreconfigitem(
2030 b'server',
2029 b'server',
2031 b'zstdlevel',
2030 b'zstdlevel',
2032 default=3,
2031 default=3,
2033 )
2032 )
2034 coreconfigitem(
2033 coreconfigitem(
2035 b'share',
2034 b'share',
2036 b'pool',
2035 b'pool',
2037 default=None,
2036 default=None,
2038 )
2037 )
2039 coreconfigitem(
2038 coreconfigitem(
2040 b'share',
2039 b'share',
2041 b'poolnaming',
2040 b'poolnaming',
2042 default=b'identity',
2041 default=b'identity',
2043 )
2042 )
2044 coreconfigitem(
2043 coreconfigitem(
2045 b'share',
2044 b'share',
2046 b'safe-mismatch.source-not-safe',
2045 b'safe-mismatch.source-not-safe',
2047 default=b'abort',
2046 default=b'abort',
2048 )
2047 )
2049 coreconfigitem(
2048 coreconfigitem(
2050 b'share',
2049 b'share',
2051 b'safe-mismatch.source-safe',
2050 b'safe-mismatch.source-safe',
2052 default=b'abort',
2051 default=b'abort',
2053 )
2052 )
2054 coreconfigitem(
2053 coreconfigitem(
2055 b'share',
2054 b'share',
2056 b'safe-mismatch.source-not-safe.warn',
2055 b'safe-mismatch.source-not-safe.warn',
2057 default=True,
2056 default=True,
2058 )
2057 )
2059 coreconfigitem(
2058 coreconfigitem(
2060 b'share',
2059 b'share',
2061 b'safe-mismatch.source-safe.warn',
2060 b'safe-mismatch.source-safe.warn',
2062 default=True,
2061 default=True,
2063 )
2062 )
2064 coreconfigitem(
2063 coreconfigitem(
2065 b'shelve',
2064 b'shelve',
2066 b'maxbackups',
2065 b'maxbackups',
2067 default=10,
2066 default=10,
2068 )
2067 )
2069 coreconfigitem(
2068 coreconfigitem(
2070 b'smtp',
2069 b'smtp',
2071 b'host',
2070 b'host',
2072 default=None,
2071 default=None,
2073 )
2072 )
2074 coreconfigitem(
2073 coreconfigitem(
2075 b'smtp',
2074 b'smtp',
2076 b'local_hostname',
2075 b'local_hostname',
2077 default=None,
2076 default=None,
2078 )
2077 )
2079 coreconfigitem(
2078 coreconfigitem(
2080 b'smtp',
2079 b'smtp',
2081 b'password',
2080 b'password',
2082 default=None,
2081 default=None,
2083 )
2082 )
2084 coreconfigitem(
2083 coreconfigitem(
2085 b'smtp',
2084 b'smtp',
2086 b'port',
2085 b'port',
2087 default=dynamicdefault,
2086 default=dynamicdefault,
2088 )
2087 )
2089 coreconfigitem(
2088 coreconfigitem(
2090 b'smtp',
2089 b'smtp',
2091 b'tls',
2090 b'tls',
2092 default=b'none',
2091 default=b'none',
2093 )
2092 )
2094 coreconfigitem(
2093 coreconfigitem(
2095 b'smtp',
2094 b'smtp',
2096 b'username',
2095 b'username',
2097 default=None,
2096 default=None,
2098 )
2097 )
2099 coreconfigitem(
2098 coreconfigitem(
2100 b'sparse',
2099 b'sparse',
2101 b'missingwarning',
2100 b'missingwarning',
2102 default=True,
2101 default=True,
2103 experimental=True,
2102 experimental=True,
2104 )
2103 )
2105 coreconfigitem(
2104 coreconfigitem(
2106 b'subrepos',
2105 b'subrepos',
2107 b'allowed',
2106 b'allowed',
2108 default=dynamicdefault, # to make backporting simpler
2107 default=dynamicdefault, # to make backporting simpler
2109 )
2108 )
2110 coreconfigitem(
2109 coreconfigitem(
2111 b'subrepos',
2110 b'subrepos',
2112 b'hg:allowed',
2111 b'hg:allowed',
2113 default=dynamicdefault,
2112 default=dynamicdefault,
2114 )
2113 )
2115 coreconfigitem(
2114 coreconfigitem(
2116 b'subrepos',
2115 b'subrepos',
2117 b'git:allowed',
2116 b'git:allowed',
2118 default=dynamicdefault,
2117 default=dynamicdefault,
2119 )
2118 )
2120 coreconfigitem(
2119 coreconfigitem(
2121 b'subrepos',
2120 b'subrepos',
2122 b'svn:allowed',
2121 b'svn:allowed',
2123 default=dynamicdefault,
2122 default=dynamicdefault,
2124 )
2123 )
2125 coreconfigitem(
2124 coreconfigitem(
2126 b'templates',
2125 b'templates',
2127 b'.*',
2126 b'.*',
2128 default=None,
2127 default=None,
2129 generic=True,
2128 generic=True,
2130 )
2129 )
2131 coreconfigitem(
2130 coreconfigitem(
2132 b'templateconfig',
2131 b'templateconfig',
2133 b'.*',
2132 b'.*',
2134 default=dynamicdefault,
2133 default=dynamicdefault,
2135 generic=True,
2134 generic=True,
2136 )
2135 )
2137 coreconfigitem(
2136 coreconfigitem(
2138 b'trusted',
2137 b'trusted',
2139 b'groups',
2138 b'groups',
2140 default=list,
2139 default=list,
2141 )
2140 )
2142 coreconfigitem(
2141 coreconfigitem(
2143 b'trusted',
2142 b'trusted',
2144 b'users',
2143 b'users',
2145 default=list,
2144 default=list,
2146 )
2145 )
2147 coreconfigitem(
2146 coreconfigitem(
2148 b'ui',
2147 b'ui',
2149 b'_usedassubrepo',
2148 b'_usedassubrepo',
2150 default=False,
2149 default=False,
2151 )
2150 )
2152 coreconfigitem(
2151 coreconfigitem(
2153 b'ui',
2152 b'ui',
2154 b'allowemptycommit',
2153 b'allowemptycommit',
2155 default=False,
2154 default=False,
2156 )
2155 )
2157 coreconfigitem(
2156 coreconfigitem(
2158 b'ui',
2157 b'ui',
2159 b'archivemeta',
2158 b'archivemeta',
2160 default=True,
2159 default=True,
2161 )
2160 )
2162 coreconfigitem(
2161 coreconfigitem(
2163 b'ui',
2162 b'ui',
2164 b'askusername',
2163 b'askusername',
2165 default=False,
2164 default=False,
2166 )
2165 )
2167 coreconfigitem(
2166 coreconfigitem(
2168 b'ui',
2167 b'ui',
2169 b'available-memory',
2168 b'available-memory',
2170 default=None,
2169 default=None,
2171 )
2170 )
2172
2171
2173 coreconfigitem(
2172 coreconfigitem(
2174 b'ui',
2173 b'ui',
2175 b'clonebundlefallback',
2174 b'clonebundlefallback',
2176 default=False,
2175 default=False,
2177 )
2176 )
2178 coreconfigitem(
2177 coreconfigitem(
2179 b'ui',
2178 b'ui',
2180 b'clonebundleprefers',
2179 b'clonebundleprefers',
2181 default=list,
2180 default=list,
2182 )
2181 )
2183 coreconfigitem(
2182 coreconfigitem(
2184 b'ui',
2183 b'ui',
2185 b'clonebundles',
2184 b'clonebundles',
2186 default=True,
2185 default=True,
2187 )
2186 )
2188 coreconfigitem(
2187 coreconfigitem(
2189 b'ui',
2188 b'ui',
2190 b'color',
2189 b'color',
2191 default=b'auto',
2190 default=b'auto',
2192 )
2191 )
2193 coreconfigitem(
2192 coreconfigitem(
2194 b'ui',
2193 b'ui',
2195 b'commitsubrepos',
2194 b'commitsubrepos',
2196 default=False,
2195 default=False,
2197 )
2196 )
2198 coreconfigitem(
2197 coreconfigitem(
2199 b'ui',
2198 b'ui',
2200 b'debug',
2199 b'debug',
2201 default=False,
2200 default=False,
2202 )
2201 )
2203 coreconfigitem(
2202 coreconfigitem(
2204 b'ui',
2203 b'ui',
2205 b'debugger',
2204 b'debugger',
2206 default=None,
2205 default=None,
2207 )
2206 )
2208 coreconfigitem(
2207 coreconfigitem(
2209 b'ui',
2208 b'ui',
2210 b'editor',
2209 b'editor',
2211 default=dynamicdefault,
2210 default=dynamicdefault,
2212 )
2211 )
2213 coreconfigitem(
2212 coreconfigitem(
2214 b'ui',
2213 b'ui',
2215 b'detailed-exit-code',
2214 b'detailed-exit-code',
2216 default=False,
2215 default=False,
2217 experimental=True,
2216 experimental=True,
2218 )
2217 )
2219 coreconfigitem(
2218 coreconfigitem(
2220 b'ui',
2219 b'ui',
2221 b'fallbackencoding',
2220 b'fallbackencoding',
2222 default=None,
2221 default=None,
2223 )
2222 )
2224 coreconfigitem(
2223 coreconfigitem(
2225 b'ui',
2224 b'ui',
2226 b'forcecwd',
2225 b'forcecwd',
2227 default=None,
2226 default=None,
2228 )
2227 )
2229 coreconfigitem(
2228 coreconfigitem(
2230 b'ui',
2229 b'ui',
2231 b'forcemerge',
2230 b'forcemerge',
2232 default=None,
2231 default=None,
2233 )
2232 )
2234 coreconfigitem(
2233 coreconfigitem(
2235 b'ui',
2234 b'ui',
2236 b'formatdebug',
2235 b'formatdebug',
2237 default=False,
2236 default=False,
2238 )
2237 )
2239 coreconfigitem(
2238 coreconfigitem(
2240 b'ui',
2239 b'ui',
2241 b'formatjson',
2240 b'formatjson',
2242 default=False,
2241 default=False,
2243 )
2242 )
2244 coreconfigitem(
2243 coreconfigitem(
2245 b'ui',
2244 b'ui',
2246 b'formatted',
2245 b'formatted',
2247 default=None,
2246 default=None,
2248 )
2247 )
2249 coreconfigitem(
2248 coreconfigitem(
2250 b'ui',
2249 b'ui',
2251 b'interactive',
2250 b'interactive',
2252 default=None,
2251 default=None,
2253 )
2252 )
2254 coreconfigitem(
2253 coreconfigitem(
2255 b'ui',
2254 b'ui',
2256 b'interface',
2255 b'interface',
2257 default=None,
2256 default=None,
2258 )
2257 )
2259 coreconfigitem(
2258 coreconfigitem(
2260 b'ui',
2259 b'ui',
2261 b'interface.chunkselector',
2260 b'interface.chunkselector',
2262 default=None,
2261 default=None,
2263 )
2262 )
2264 coreconfigitem(
2263 coreconfigitem(
2265 b'ui',
2264 b'ui',
2266 b'large-file-limit',
2265 b'large-file-limit',
2267 default=10000000,
2266 default=10000000,
2268 )
2267 )
2269 coreconfigitem(
2268 coreconfigitem(
2270 b'ui',
2269 b'ui',
2271 b'logblockedtimes',
2270 b'logblockedtimes',
2272 default=False,
2271 default=False,
2273 )
2272 )
2274 coreconfigitem(
2273 coreconfigitem(
2275 b'ui',
2274 b'ui',
2276 b'merge',
2275 b'merge',
2277 default=None,
2276 default=None,
2278 )
2277 )
2279 coreconfigitem(
2278 coreconfigitem(
2280 b'ui',
2279 b'ui',
2281 b'mergemarkers',
2280 b'mergemarkers',
2282 default=b'basic',
2281 default=b'basic',
2283 )
2282 )
2284 coreconfigitem(
2283 coreconfigitem(
2285 b'ui',
2284 b'ui',
2286 b'message-output',
2285 b'message-output',
2287 default=b'stdio',
2286 default=b'stdio',
2288 )
2287 )
2289 coreconfigitem(
2288 coreconfigitem(
2290 b'ui',
2289 b'ui',
2291 b'nontty',
2290 b'nontty',
2292 default=False,
2291 default=False,
2293 )
2292 )
2294 coreconfigitem(
2293 coreconfigitem(
2295 b'ui',
2294 b'ui',
2296 b'origbackuppath',
2295 b'origbackuppath',
2297 default=None,
2296 default=None,
2298 )
2297 )
2299 coreconfigitem(
2298 coreconfigitem(
2300 b'ui',
2299 b'ui',
2301 b'paginate',
2300 b'paginate',
2302 default=True,
2301 default=True,
2303 )
2302 )
2304 coreconfigitem(
2303 coreconfigitem(
2305 b'ui',
2304 b'ui',
2306 b'patch',
2305 b'patch',
2307 default=None,
2306 default=None,
2308 )
2307 )
2309 coreconfigitem(
2308 coreconfigitem(
2310 b'ui',
2309 b'ui',
2311 b'portablefilenames',
2310 b'portablefilenames',
2312 default=b'warn',
2311 default=b'warn',
2313 )
2312 )
2314 coreconfigitem(
2313 coreconfigitem(
2315 b'ui',
2314 b'ui',
2316 b'promptecho',
2315 b'promptecho',
2317 default=False,
2316 default=False,
2318 )
2317 )
2319 coreconfigitem(
2318 coreconfigitem(
2320 b'ui',
2319 b'ui',
2321 b'quiet',
2320 b'quiet',
2322 default=False,
2321 default=False,
2323 )
2322 )
2324 coreconfigitem(
2323 coreconfigitem(
2325 b'ui',
2324 b'ui',
2326 b'quietbookmarkmove',
2325 b'quietbookmarkmove',
2327 default=False,
2326 default=False,
2328 )
2327 )
2329 coreconfigitem(
2328 coreconfigitem(
2330 b'ui',
2329 b'ui',
2331 b'relative-paths',
2330 b'relative-paths',
2332 default=b'legacy',
2331 default=b'legacy',
2333 )
2332 )
2334 coreconfigitem(
2333 coreconfigitem(
2335 b'ui',
2334 b'ui',
2336 b'remotecmd',
2335 b'remotecmd',
2337 default=b'hg',
2336 default=b'hg',
2338 )
2337 )
2339 coreconfigitem(
2338 coreconfigitem(
2340 b'ui',
2339 b'ui',
2341 b'report_untrusted',
2340 b'report_untrusted',
2342 default=True,
2341 default=True,
2343 )
2342 )
2344 coreconfigitem(
2343 coreconfigitem(
2345 b'ui',
2344 b'ui',
2346 b'rollback',
2345 b'rollback',
2347 default=True,
2346 default=True,
2348 )
2347 )
2349 coreconfigitem(
2348 coreconfigitem(
2350 b'ui',
2349 b'ui',
2351 b'signal-safe-lock',
2350 b'signal-safe-lock',
2352 default=True,
2351 default=True,
2353 )
2352 )
2354 coreconfigitem(
2353 coreconfigitem(
2355 b'ui',
2354 b'ui',
2356 b'slash',
2355 b'slash',
2357 default=False,
2356 default=False,
2358 )
2357 )
2359 coreconfigitem(
2358 coreconfigitem(
2360 b'ui',
2359 b'ui',
2361 b'ssh',
2360 b'ssh',
2362 default=b'ssh',
2361 default=b'ssh',
2363 )
2362 )
2364 coreconfigitem(
2363 coreconfigitem(
2365 b'ui',
2364 b'ui',
2366 b'ssherrorhint',
2365 b'ssherrorhint',
2367 default=None,
2366 default=None,
2368 )
2367 )
2369 coreconfigitem(
2368 coreconfigitem(
2370 b'ui',
2369 b'ui',
2371 b'statuscopies',
2370 b'statuscopies',
2372 default=False,
2371 default=False,
2373 )
2372 )
2374 coreconfigitem(
2373 coreconfigitem(
2375 b'ui',
2374 b'ui',
2376 b'strict',
2375 b'strict',
2377 default=False,
2376 default=False,
2378 )
2377 )
2379 coreconfigitem(
2378 coreconfigitem(
2380 b'ui',
2379 b'ui',
2381 b'style',
2380 b'style',
2382 default=b'',
2381 default=b'',
2383 )
2382 )
2384 coreconfigitem(
2383 coreconfigitem(
2385 b'ui',
2384 b'ui',
2386 b'supportcontact',
2385 b'supportcontact',
2387 default=None,
2386 default=None,
2388 )
2387 )
2389 coreconfigitem(
2388 coreconfigitem(
2390 b'ui',
2389 b'ui',
2391 b'textwidth',
2390 b'textwidth',
2392 default=78,
2391 default=78,
2393 )
2392 )
2394 coreconfigitem(
2393 coreconfigitem(
2395 b'ui',
2394 b'ui',
2396 b'timeout',
2395 b'timeout',
2397 default=b'600',
2396 default=b'600',
2398 )
2397 )
2399 coreconfigitem(
2398 coreconfigitem(
2400 b'ui',
2399 b'ui',
2401 b'timeout.warn',
2400 b'timeout.warn',
2402 default=0,
2401 default=0,
2403 )
2402 )
2404 coreconfigitem(
2403 coreconfigitem(
2405 b'ui',
2404 b'ui',
2406 b'timestamp-output',
2405 b'timestamp-output',
2407 default=False,
2406 default=False,
2408 )
2407 )
2409 coreconfigitem(
2408 coreconfigitem(
2410 b'ui',
2409 b'ui',
2411 b'traceback',
2410 b'traceback',
2412 default=False,
2411 default=False,
2413 )
2412 )
2414 coreconfigitem(
2413 coreconfigitem(
2415 b'ui',
2414 b'ui',
2416 b'tweakdefaults',
2415 b'tweakdefaults',
2417 default=False,
2416 default=False,
2418 )
2417 )
2419 coreconfigitem(b'ui', b'username', alias=[(b'ui', b'user')])
2418 coreconfigitem(b'ui', b'username', alias=[(b'ui', b'user')])
2420 coreconfigitem(
2419 coreconfigitem(
2421 b'ui',
2420 b'ui',
2422 b'verbose',
2421 b'verbose',
2423 default=False,
2422 default=False,
2424 )
2423 )
2425 coreconfigitem(
2424 coreconfigitem(
2426 b'verify',
2425 b'verify',
2427 b'skipflags',
2426 b'skipflags',
2428 default=None,
2427 default=None,
2429 )
2428 )
2430 coreconfigitem(
2429 coreconfigitem(
2431 b'web',
2430 b'web',
2432 b'allowbz2',
2431 b'allowbz2',
2433 default=False,
2432 default=False,
2434 )
2433 )
2435 coreconfigitem(
2434 coreconfigitem(
2436 b'web',
2435 b'web',
2437 b'allowgz',
2436 b'allowgz',
2438 default=False,
2437 default=False,
2439 )
2438 )
2440 coreconfigitem(
2439 coreconfigitem(
2441 b'web',
2440 b'web',
2442 b'allow-pull',
2441 b'allow-pull',
2443 alias=[(b'web', b'allowpull')],
2442 alias=[(b'web', b'allowpull')],
2444 default=True,
2443 default=True,
2445 )
2444 )
2446 coreconfigitem(
2445 coreconfigitem(
2447 b'web',
2446 b'web',
2448 b'allow-push',
2447 b'allow-push',
2449 alias=[(b'web', b'allow_push')],
2448 alias=[(b'web', b'allow_push')],
2450 default=list,
2449 default=list,
2451 )
2450 )
2452 coreconfigitem(
2451 coreconfigitem(
2453 b'web',
2452 b'web',
2454 b'allowzip',
2453 b'allowzip',
2455 default=False,
2454 default=False,
2456 )
2455 )
2457 coreconfigitem(
2456 coreconfigitem(
2458 b'web',
2457 b'web',
2459 b'archivesubrepos',
2458 b'archivesubrepos',
2460 default=False,
2459 default=False,
2461 )
2460 )
2462 coreconfigitem(
2461 coreconfigitem(
2463 b'web',
2462 b'web',
2464 b'cache',
2463 b'cache',
2465 default=True,
2464 default=True,
2466 )
2465 )
2467 coreconfigitem(
2466 coreconfigitem(
2468 b'web',
2467 b'web',
2469 b'comparisoncontext',
2468 b'comparisoncontext',
2470 default=5,
2469 default=5,
2471 )
2470 )
2472 coreconfigitem(
2471 coreconfigitem(
2473 b'web',
2472 b'web',
2474 b'contact',
2473 b'contact',
2475 default=None,
2474 default=None,
2476 )
2475 )
2477 coreconfigitem(
2476 coreconfigitem(
2478 b'web',
2477 b'web',
2479 b'deny_push',
2478 b'deny_push',
2480 default=list,
2479 default=list,
2481 )
2480 )
2482 coreconfigitem(
2481 coreconfigitem(
2483 b'web',
2482 b'web',
2484 b'guessmime',
2483 b'guessmime',
2485 default=False,
2484 default=False,
2486 )
2485 )
2487 coreconfigitem(
2486 coreconfigitem(
2488 b'web',
2487 b'web',
2489 b'hidden',
2488 b'hidden',
2490 default=False,
2489 default=False,
2491 )
2490 )
2492 coreconfigitem(
2491 coreconfigitem(
2493 b'web',
2492 b'web',
2494 b'labels',
2493 b'labels',
2495 default=list,
2494 default=list,
2496 )
2495 )
2497 coreconfigitem(
2496 coreconfigitem(
2498 b'web',
2497 b'web',
2499 b'logoimg',
2498 b'logoimg',
2500 default=b'hglogo.png',
2499 default=b'hglogo.png',
2501 )
2500 )
2502 coreconfigitem(
2501 coreconfigitem(
2503 b'web',
2502 b'web',
2504 b'logourl',
2503 b'logourl',
2505 default=b'https://mercurial-scm.org/',
2504 default=b'https://mercurial-scm.org/',
2506 )
2505 )
2507 coreconfigitem(
2506 coreconfigitem(
2508 b'web',
2507 b'web',
2509 b'accesslog',
2508 b'accesslog',
2510 default=b'-',
2509 default=b'-',
2511 )
2510 )
2512 coreconfigitem(
2511 coreconfigitem(
2513 b'web',
2512 b'web',
2514 b'address',
2513 b'address',
2515 default=b'',
2514 default=b'',
2516 )
2515 )
2517 coreconfigitem(
2516 coreconfigitem(
2518 b'web',
2517 b'web',
2519 b'allow-archive',
2518 b'allow-archive',
2520 alias=[(b'web', b'allow_archive')],
2519 alias=[(b'web', b'allow_archive')],
2521 default=list,
2520 default=list,
2522 )
2521 )
2523 coreconfigitem(
2522 coreconfigitem(
2524 b'web',
2523 b'web',
2525 b'allow_read',
2524 b'allow_read',
2526 default=list,
2525 default=list,
2527 )
2526 )
2528 coreconfigitem(
2527 coreconfigitem(
2529 b'web',
2528 b'web',
2530 b'baseurl',
2529 b'baseurl',
2531 default=None,
2530 default=None,
2532 )
2531 )
2533 coreconfigitem(
2532 coreconfigitem(
2534 b'web',
2533 b'web',
2535 b'cacerts',
2534 b'cacerts',
2536 default=None,
2535 default=None,
2537 )
2536 )
2538 coreconfigitem(
2537 coreconfigitem(
2539 b'web',
2538 b'web',
2540 b'certificate',
2539 b'certificate',
2541 default=None,
2540 default=None,
2542 )
2541 )
2543 coreconfigitem(
2542 coreconfigitem(
2544 b'web',
2543 b'web',
2545 b'collapse',
2544 b'collapse',
2546 default=False,
2545 default=False,
2547 )
2546 )
2548 coreconfigitem(
2547 coreconfigitem(
2549 b'web',
2548 b'web',
2550 b'csp',
2549 b'csp',
2551 default=None,
2550 default=None,
2552 )
2551 )
2553 coreconfigitem(
2552 coreconfigitem(
2554 b'web',
2553 b'web',
2555 b'deny_read',
2554 b'deny_read',
2556 default=list,
2555 default=list,
2557 )
2556 )
2558 coreconfigitem(
2557 coreconfigitem(
2559 b'web',
2558 b'web',
2560 b'descend',
2559 b'descend',
2561 default=True,
2560 default=True,
2562 )
2561 )
2563 coreconfigitem(
2562 coreconfigitem(
2564 b'web',
2563 b'web',
2565 b'description',
2564 b'description',
2566 default=b"",
2565 default=b"",
2567 )
2566 )
2568 coreconfigitem(
2567 coreconfigitem(
2569 b'web',
2568 b'web',
2570 b'encoding',
2569 b'encoding',
2571 default=lambda: encoding.encoding,
2570 default=lambda: encoding.encoding,
2572 )
2571 )
2573 coreconfigitem(
2572 coreconfigitem(
2574 b'web',
2573 b'web',
2575 b'errorlog',
2574 b'errorlog',
2576 default=b'-',
2575 default=b'-',
2577 )
2576 )
2578 coreconfigitem(
2577 coreconfigitem(
2579 b'web',
2578 b'web',
2580 b'ipv6',
2579 b'ipv6',
2581 default=False,
2580 default=False,
2582 )
2581 )
2583 coreconfigitem(
2582 coreconfigitem(
2584 b'web',
2583 b'web',
2585 b'maxchanges',
2584 b'maxchanges',
2586 default=10,
2585 default=10,
2587 )
2586 )
2588 coreconfigitem(
2587 coreconfigitem(
2589 b'web',
2588 b'web',
2590 b'maxfiles',
2589 b'maxfiles',
2591 default=10,
2590 default=10,
2592 )
2591 )
2593 coreconfigitem(
2592 coreconfigitem(
2594 b'web',
2593 b'web',
2595 b'maxshortchanges',
2594 b'maxshortchanges',
2596 default=60,
2595 default=60,
2597 )
2596 )
2598 coreconfigitem(
2597 coreconfigitem(
2599 b'web',
2598 b'web',
2600 b'motd',
2599 b'motd',
2601 default=b'',
2600 default=b'',
2602 )
2601 )
2603 coreconfigitem(
2602 coreconfigitem(
2604 b'web',
2603 b'web',
2605 b'name',
2604 b'name',
2606 default=dynamicdefault,
2605 default=dynamicdefault,
2607 )
2606 )
2608 coreconfigitem(
2607 coreconfigitem(
2609 b'web',
2608 b'web',
2610 b'port',
2609 b'port',
2611 default=8000,
2610 default=8000,
2612 )
2611 )
2613 coreconfigitem(
2612 coreconfigitem(
2614 b'web',
2613 b'web',
2615 b'prefix',
2614 b'prefix',
2616 default=b'',
2615 default=b'',
2617 )
2616 )
2618 coreconfigitem(
2617 coreconfigitem(
2619 b'web',
2618 b'web',
2620 b'push_ssl',
2619 b'push_ssl',
2621 default=True,
2620 default=True,
2622 )
2621 )
2623 coreconfigitem(
2622 coreconfigitem(
2624 b'web',
2623 b'web',
2625 b'refreshinterval',
2624 b'refreshinterval',
2626 default=20,
2625 default=20,
2627 )
2626 )
2628 coreconfigitem(
2627 coreconfigitem(
2629 b'web',
2628 b'web',
2630 b'server-header',
2629 b'server-header',
2631 default=None,
2630 default=None,
2632 )
2631 )
2633 coreconfigitem(
2632 coreconfigitem(
2634 b'web',
2633 b'web',
2635 b'static',
2634 b'static',
2636 default=None,
2635 default=None,
2637 )
2636 )
2638 coreconfigitem(
2637 coreconfigitem(
2639 b'web',
2638 b'web',
2640 b'staticurl',
2639 b'staticurl',
2641 default=None,
2640 default=None,
2642 )
2641 )
2643 coreconfigitem(
2642 coreconfigitem(
2644 b'web',
2643 b'web',
2645 b'stripes',
2644 b'stripes',
2646 default=1,
2645 default=1,
2647 )
2646 )
2648 coreconfigitem(
2647 coreconfigitem(
2649 b'web',
2648 b'web',
2650 b'style',
2649 b'style',
2651 default=b'paper',
2650 default=b'paper',
2652 )
2651 )
2653 coreconfigitem(
2652 coreconfigitem(
2654 b'web',
2653 b'web',
2655 b'templates',
2654 b'templates',
2656 default=None,
2655 default=None,
2657 )
2656 )
2658 coreconfigitem(
2657 coreconfigitem(
2659 b'web',
2658 b'web',
2660 b'view',
2659 b'view',
2661 default=b'served',
2660 default=b'served',
2662 experimental=True,
2661 experimental=True,
2663 )
2662 )
2664 coreconfigitem(
2663 coreconfigitem(
2665 b'worker',
2664 b'worker',
2666 b'backgroundclose',
2665 b'backgroundclose',
2667 default=dynamicdefault,
2666 default=dynamicdefault,
2668 )
2667 )
2669 # Windows defaults to a limit of 512 open files. A buffer of 128
2668 # Windows defaults to a limit of 512 open files. A buffer of 128
2670 # should give us enough headway.
2669 # should give us enough headway.
2671 coreconfigitem(
2670 coreconfigitem(
2672 b'worker',
2671 b'worker',
2673 b'backgroundclosemaxqueue',
2672 b'backgroundclosemaxqueue',
2674 default=384,
2673 default=384,
2675 )
2674 )
2676 coreconfigitem(
2675 coreconfigitem(
2677 b'worker',
2676 b'worker',
2678 b'backgroundcloseminfilecount',
2677 b'backgroundcloseminfilecount',
2679 default=2048,
2678 default=2048,
2680 )
2679 )
2681 coreconfigitem(
2680 coreconfigitem(
2682 b'worker',
2681 b'worker',
2683 b'backgroundclosethreadcount',
2682 b'backgroundclosethreadcount',
2684 default=4,
2683 default=4,
2685 )
2684 )
2686 coreconfigitem(
2685 coreconfigitem(
2687 b'worker',
2686 b'worker',
2688 b'enabled',
2687 b'enabled',
2689 default=True,
2688 default=True,
2690 )
2689 )
2691 coreconfigitem(
2690 coreconfigitem(
2692 b'worker',
2691 b'worker',
2693 b'numcpus',
2692 b'numcpus',
2694 default=None,
2693 default=None,
2695 )
2694 )
2696
2695
2697 # Rebase related configuration moved to core because other extension are doing
2696 # Rebase related configuration moved to core because other extension are doing
2698 # strange things. For example, shelve import the extensions to reuse some bit
2697 # strange things. For example, shelve import the extensions to reuse some bit
2699 # without formally loading it.
2698 # without formally loading it.
2700 coreconfigitem(
2699 coreconfigitem(
2701 b'commands',
2700 b'commands',
2702 b'rebase.requiredest',
2701 b'rebase.requiredest',
2703 default=False,
2702 default=False,
2704 )
2703 )
2705 coreconfigitem(
2704 coreconfigitem(
2706 b'experimental',
2705 b'experimental',
2707 b'rebaseskipobsolete',
2706 b'rebaseskipobsolete',
2708 default=True,
2707 default=True,
2709 )
2708 )
2710 coreconfigitem(
2709 coreconfigitem(
2711 b'rebase',
2710 b'rebase',
2712 b'singletransaction',
2711 b'singletransaction',
2713 default=False,
2712 default=False,
2714 )
2713 )
2715 coreconfigitem(
2714 coreconfigitem(
2716 b'rebase',
2715 b'rebase',
2717 b'experimental.inmemory',
2716 b'experimental.inmemory',
2718 default=False,
2717 default=False,
2719 )
2718 )
General Comments 0
You need to be logged in to leave comments. Login now