##// END OF EJS Templates
mmapindex: set default to 1MB...
Boris Feld -
r40822:74a9f428 default
parent child Browse files
Show More
@@ -1,1451 +1,1451
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 def loadconfigtable(ui, extname, configtable):
18 def loadconfigtable(ui, extname, configtable):
19 """update config item known to the ui with the extension ones"""
19 """update config item known to the ui with the extension ones"""
20 for section, items in sorted(configtable.items()):
20 for section, items in sorted(configtable.items()):
21 knownitems = ui._knownconfig.setdefault(section, itemregister())
21 knownitems = ui._knownconfig.setdefault(section, itemregister())
22 knownkeys = set(knownitems)
22 knownkeys = set(knownitems)
23 newkeys = set(items)
23 newkeys = set(items)
24 for key in sorted(knownkeys & newkeys):
24 for key in sorted(knownkeys & newkeys):
25 msg = "extension '%s' overwrite config item '%s.%s'"
25 msg = "extension '%s' overwrite config item '%s.%s'"
26 msg %= (extname, section, key)
26 msg %= (extname, section, key)
27 ui.develwarn(msg, config='warn-config')
27 ui.develwarn(msg, config='warn-config')
28
28
29 knownitems.update(items)
29 knownitems.update(items)
30
30
31 class configitem(object):
31 class configitem(object):
32 """represent a known config item
32 """represent a known config item
33
33
34 :section: the official config section where to find this item,
34 :section: the official config section where to find this item,
35 :name: the official name within the section,
35 :name: the official name within the section,
36 :default: default value for this item,
36 :default: default value for this item,
37 :alias: optional list of tuples as alternatives,
37 :alias: optional list of tuples as alternatives,
38 :generic: this is a generic definition, match name using regular expression.
38 :generic: this is a generic definition, match name using regular expression.
39 """
39 """
40
40
41 def __init__(self, section, name, default=None, alias=(),
41 def __init__(self, section, name, default=None, alias=(),
42 generic=False, priority=0):
42 generic=False, priority=0):
43 self.section = section
43 self.section = section
44 self.name = name
44 self.name = name
45 self.default = default
45 self.default = default
46 self.alias = list(alias)
46 self.alias = list(alias)
47 self.generic = generic
47 self.generic = generic
48 self.priority = priority
48 self.priority = priority
49 self._re = None
49 self._re = None
50 if generic:
50 if generic:
51 self._re = re.compile(self.name)
51 self._re = re.compile(self.name)
52
52
53 class itemregister(dict):
53 class itemregister(dict):
54 """A specialized dictionary that can handle wild-card selection"""
54 """A specialized dictionary that can handle wild-card selection"""
55
55
56 def __init__(self):
56 def __init__(self):
57 super(itemregister, self).__init__()
57 super(itemregister, self).__init__()
58 self._generics = set()
58 self._generics = set()
59
59
60 def update(self, other):
60 def update(self, other):
61 super(itemregister, self).update(other)
61 super(itemregister, self).update(other)
62 self._generics.update(other._generics)
62 self._generics.update(other._generics)
63
63
64 def __setitem__(self, key, item):
64 def __setitem__(self, key, item):
65 super(itemregister, self).__setitem__(key, item)
65 super(itemregister, self).__setitem__(key, item)
66 if item.generic:
66 if item.generic:
67 self._generics.add(item)
67 self._generics.add(item)
68
68
69 def get(self, key):
69 def get(self, key):
70 baseitem = super(itemregister, self).get(key)
70 baseitem = super(itemregister, self).get(key)
71 if baseitem is not None and not baseitem.generic:
71 if baseitem is not None and not baseitem.generic:
72 return baseitem
72 return baseitem
73
73
74 # search for a matching generic item
74 # search for a matching generic item
75 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
75 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
76 for item in generics:
76 for item in generics:
77 # we use 'match' instead of 'search' to make the matching simpler
77 # we use 'match' instead of 'search' to make the matching simpler
78 # for people unfamiliar with regular expression. Having the match
78 # for people unfamiliar with regular expression. Having the match
79 # rooted to the start of the string will produce less surprising
79 # rooted to the start of the string will produce less surprising
80 # result for user writing simple regex for sub-attribute.
80 # result for user writing simple regex for sub-attribute.
81 #
81 #
82 # For example using "color\..*" match produces an unsurprising
82 # For example using "color\..*" match produces an unsurprising
83 # result, while using search could suddenly match apparently
83 # result, while using search could suddenly match apparently
84 # unrelated configuration that happens to contains "color."
84 # unrelated configuration that happens to contains "color."
85 # anywhere. This is a tradeoff where we favor requiring ".*" on
85 # anywhere. This is a tradeoff where we favor requiring ".*" on
86 # some match to avoid the need to prefix most pattern with "^".
86 # some match to avoid the need to prefix most pattern with "^".
87 # The "^" seems more error prone.
87 # The "^" seems more error prone.
88 if item._re.match(key):
88 if item._re.match(key):
89 return item
89 return item
90
90
91 return None
91 return None
92
92
93 coreitems = {}
93 coreitems = {}
94
94
95 def _register(configtable, *args, **kwargs):
95 def _register(configtable, *args, **kwargs):
96 item = configitem(*args, **kwargs)
96 item = configitem(*args, **kwargs)
97 section = configtable.setdefault(item.section, itemregister())
97 section = configtable.setdefault(item.section, itemregister())
98 if item.name in section:
98 if item.name in section:
99 msg = "duplicated config item registration for '%s.%s'"
99 msg = "duplicated config item registration for '%s.%s'"
100 raise error.ProgrammingError(msg % (item.section, item.name))
100 raise error.ProgrammingError(msg % (item.section, item.name))
101 section[item.name] = item
101 section[item.name] = item
102
102
103 # special value for case where the default is derived from other values
103 # special value for case where the default is derived from other values
104 dynamicdefault = object()
104 dynamicdefault = object()
105
105
106 # Registering actual config items
106 # Registering actual config items
107
107
108 def getitemregister(configtable):
108 def getitemregister(configtable):
109 f = functools.partial(_register, configtable)
109 f = functools.partial(_register, configtable)
110 # export pseudo enum as configitem.*
110 # export pseudo enum as configitem.*
111 f.dynamicdefault = dynamicdefault
111 f.dynamicdefault = dynamicdefault
112 return f
112 return f
113
113
114 coreconfigitem = getitemregister(coreitems)
114 coreconfigitem = getitemregister(coreitems)
115
115
116 coreconfigitem('alias', '.*',
116 coreconfigitem('alias', '.*',
117 default=dynamicdefault,
117 default=dynamicdefault,
118 generic=True,
118 generic=True,
119 )
119 )
120 coreconfigitem('annotate', 'nodates',
120 coreconfigitem('annotate', 'nodates',
121 default=False,
121 default=False,
122 )
122 )
123 coreconfigitem('annotate', 'showfunc',
123 coreconfigitem('annotate', 'showfunc',
124 default=False,
124 default=False,
125 )
125 )
126 coreconfigitem('annotate', 'unified',
126 coreconfigitem('annotate', 'unified',
127 default=None,
127 default=None,
128 )
128 )
129 coreconfigitem('annotate', 'git',
129 coreconfigitem('annotate', 'git',
130 default=False,
130 default=False,
131 )
131 )
132 coreconfigitem('annotate', 'ignorews',
132 coreconfigitem('annotate', 'ignorews',
133 default=False,
133 default=False,
134 )
134 )
135 coreconfigitem('annotate', 'ignorewsamount',
135 coreconfigitem('annotate', 'ignorewsamount',
136 default=False,
136 default=False,
137 )
137 )
138 coreconfigitem('annotate', 'ignoreblanklines',
138 coreconfigitem('annotate', 'ignoreblanklines',
139 default=False,
139 default=False,
140 )
140 )
141 coreconfigitem('annotate', 'ignorewseol',
141 coreconfigitem('annotate', 'ignorewseol',
142 default=False,
142 default=False,
143 )
143 )
144 coreconfigitem('annotate', 'nobinary',
144 coreconfigitem('annotate', 'nobinary',
145 default=False,
145 default=False,
146 )
146 )
147 coreconfigitem('annotate', 'noprefix',
147 coreconfigitem('annotate', 'noprefix',
148 default=False,
148 default=False,
149 )
149 )
150 coreconfigitem('annotate', 'word-diff',
150 coreconfigitem('annotate', 'word-diff',
151 default=False,
151 default=False,
152 )
152 )
153 coreconfigitem('auth', 'cookiefile',
153 coreconfigitem('auth', 'cookiefile',
154 default=None,
154 default=None,
155 )
155 )
156 # bookmarks.pushing: internal hack for discovery
156 # bookmarks.pushing: internal hack for discovery
157 coreconfigitem('bookmarks', 'pushing',
157 coreconfigitem('bookmarks', 'pushing',
158 default=list,
158 default=list,
159 )
159 )
160 # bundle.mainreporoot: internal hack for bundlerepo
160 # bundle.mainreporoot: internal hack for bundlerepo
161 coreconfigitem('bundle', 'mainreporoot',
161 coreconfigitem('bundle', 'mainreporoot',
162 default='',
162 default='',
163 )
163 )
164 coreconfigitem('censor', 'policy',
164 coreconfigitem('censor', 'policy',
165 default='abort',
165 default='abort',
166 )
166 )
167 coreconfigitem('chgserver', 'idletimeout',
167 coreconfigitem('chgserver', 'idletimeout',
168 default=3600,
168 default=3600,
169 )
169 )
170 coreconfigitem('chgserver', 'skiphash',
170 coreconfigitem('chgserver', 'skiphash',
171 default=False,
171 default=False,
172 )
172 )
173 coreconfigitem('cmdserver', 'log',
173 coreconfigitem('cmdserver', 'log',
174 default=None,
174 default=None,
175 )
175 )
176 coreconfigitem('cmdserver', 'message-encodings',
176 coreconfigitem('cmdserver', 'message-encodings',
177 default=list,
177 default=list,
178 )
178 )
179 coreconfigitem('color', '.*',
179 coreconfigitem('color', '.*',
180 default=None,
180 default=None,
181 generic=True,
181 generic=True,
182 )
182 )
183 coreconfigitem('color', 'mode',
183 coreconfigitem('color', 'mode',
184 default='auto',
184 default='auto',
185 )
185 )
186 coreconfigitem('color', 'pagermode',
186 coreconfigitem('color', 'pagermode',
187 default=dynamicdefault,
187 default=dynamicdefault,
188 )
188 )
189 coreconfigitem('commands', 'grep.all-files',
189 coreconfigitem('commands', 'grep.all-files',
190 default=False,
190 default=False,
191 )
191 )
192 coreconfigitem('commands', 'resolve.confirm',
192 coreconfigitem('commands', 'resolve.confirm',
193 default=False,
193 default=False,
194 )
194 )
195 coreconfigitem('commands', 'resolve.explicit-re-merge',
195 coreconfigitem('commands', 'resolve.explicit-re-merge',
196 default=False,
196 default=False,
197 )
197 )
198 coreconfigitem('commands', 'resolve.mark-check',
198 coreconfigitem('commands', 'resolve.mark-check',
199 default='none',
199 default='none',
200 )
200 )
201 coreconfigitem('commands', 'show.aliasprefix',
201 coreconfigitem('commands', 'show.aliasprefix',
202 default=list,
202 default=list,
203 )
203 )
204 coreconfigitem('commands', 'status.relative',
204 coreconfigitem('commands', 'status.relative',
205 default=False,
205 default=False,
206 )
206 )
207 coreconfigitem('commands', 'status.skipstates',
207 coreconfigitem('commands', 'status.skipstates',
208 default=[],
208 default=[],
209 )
209 )
210 coreconfigitem('commands', 'status.terse',
210 coreconfigitem('commands', 'status.terse',
211 default='',
211 default='',
212 )
212 )
213 coreconfigitem('commands', 'status.verbose',
213 coreconfigitem('commands', 'status.verbose',
214 default=False,
214 default=False,
215 )
215 )
216 coreconfigitem('commands', 'update.check',
216 coreconfigitem('commands', 'update.check',
217 default=None,
217 default=None,
218 )
218 )
219 coreconfigitem('commands', 'update.requiredest',
219 coreconfigitem('commands', 'update.requiredest',
220 default=False,
220 default=False,
221 )
221 )
222 coreconfigitem('committemplate', '.*',
222 coreconfigitem('committemplate', '.*',
223 default=None,
223 default=None,
224 generic=True,
224 generic=True,
225 )
225 )
226 coreconfigitem('convert', 'bzr.saverev',
226 coreconfigitem('convert', 'bzr.saverev',
227 default=True,
227 default=True,
228 )
228 )
229 coreconfigitem('convert', 'cvsps.cache',
229 coreconfigitem('convert', 'cvsps.cache',
230 default=True,
230 default=True,
231 )
231 )
232 coreconfigitem('convert', 'cvsps.fuzz',
232 coreconfigitem('convert', 'cvsps.fuzz',
233 default=60,
233 default=60,
234 )
234 )
235 coreconfigitem('convert', 'cvsps.logencoding',
235 coreconfigitem('convert', 'cvsps.logencoding',
236 default=None,
236 default=None,
237 )
237 )
238 coreconfigitem('convert', 'cvsps.mergefrom',
238 coreconfigitem('convert', 'cvsps.mergefrom',
239 default=None,
239 default=None,
240 )
240 )
241 coreconfigitem('convert', 'cvsps.mergeto',
241 coreconfigitem('convert', 'cvsps.mergeto',
242 default=None,
242 default=None,
243 )
243 )
244 coreconfigitem('convert', 'git.committeractions',
244 coreconfigitem('convert', 'git.committeractions',
245 default=lambda: ['messagedifferent'],
245 default=lambda: ['messagedifferent'],
246 )
246 )
247 coreconfigitem('convert', 'git.extrakeys',
247 coreconfigitem('convert', 'git.extrakeys',
248 default=list,
248 default=list,
249 )
249 )
250 coreconfigitem('convert', 'git.findcopiesharder',
250 coreconfigitem('convert', 'git.findcopiesharder',
251 default=False,
251 default=False,
252 )
252 )
253 coreconfigitem('convert', 'git.remoteprefix',
253 coreconfigitem('convert', 'git.remoteprefix',
254 default='remote',
254 default='remote',
255 )
255 )
256 coreconfigitem('convert', 'git.renamelimit',
256 coreconfigitem('convert', 'git.renamelimit',
257 default=400,
257 default=400,
258 )
258 )
259 coreconfigitem('convert', 'git.saverev',
259 coreconfigitem('convert', 'git.saverev',
260 default=True,
260 default=True,
261 )
261 )
262 coreconfigitem('convert', 'git.similarity',
262 coreconfigitem('convert', 'git.similarity',
263 default=50,
263 default=50,
264 )
264 )
265 coreconfigitem('convert', 'git.skipsubmodules',
265 coreconfigitem('convert', 'git.skipsubmodules',
266 default=False,
266 default=False,
267 )
267 )
268 coreconfigitem('convert', 'hg.clonebranches',
268 coreconfigitem('convert', 'hg.clonebranches',
269 default=False,
269 default=False,
270 )
270 )
271 coreconfigitem('convert', 'hg.ignoreerrors',
271 coreconfigitem('convert', 'hg.ignoreerrors',
272 default=False,
272 default=False,
273 )
273 )
274 coreconfigitem('convert', 'hg.revs',
274 coreconfigitem('convert', 'hg.revs',
275 default=None,
275 default=None,
276 )
276 )
277 coreconfigitem('convert', 'hg.saverev',
277 coreconfigitem('convert', 'hg.saverev',
278 default=False,
278 default=False,
279 )
279 )
280 coreconfigitem('convert', 'hg.sourcename',
280 coreconfigitem('convert', 'hg.sourcename',
281 default=None,
281 default=None,
282 )
282 )
283 coreconfigitem('convert', 'hg.startrev',
283 coreconfigitem('convert', 'hg.startrev',
284 default=None,
284 default=None,
285 )
285 )
286 coreconfigitem('convert', 'hg.tagsbranch',
286 coreconfigitem('convert', 'hg.tagsbranch',
287 default='default',
287 default='default',
288 )
288 )
289 coreconfigitem('convert', 'hg.usebranchnames',
289 coreconfigitem('convert', 'hg.usebranchnames',
290 default=True,
290 default=True,
291 )
291 )
292 coreconfigitem('convert', 'ignoreancestorcheck',
292 coreconfigitem('convert', 'ignoreancestorcheck',
293 default=False,
293 default=False,
294 )
294 )
295 coreconfigitem('convert', 'localtimezone',
295 coreconfigitem('convert', 'localtimezone',
296 default=False,
296 default=False,
297 )
297 )
298 coreconfigitem('convert', 'p4.encoding',
298 coreconfigitem('convert', 'p4.encoding',
299 default=dynamicdefault,
299 default=dynamicdefault,
300 )
300 )
301 coreconfigitem('convert', 'p4.startrev',
301 coreconfigitem('convert', 'p4.startrev',
302 default=0,
302 default=0,
303 )
303 )
304 coreconfigitem('convert', 'skiptags',
304 coreconfigitem('convert', 'skiptags',
305 default=False,
305 default=False,
306 )
306 )
307 coreconfigitem('convert', 'svn.debugsvnlog',
307 coreconfigitem('convert', 'svn.debugsvnlog',
308 default=True,
308 default=True,
309 )
309 )
310 coreconfigitem('convert', 'svn.trunk',
310 coreconfigitem('convert', 'svn.trunk',
311 default=None,
311 default=None,
312 )
312 )
313 coreconfigitem('convert', 'svn.tags',
313 coreconfigitem('convert', 'svn.tags',
314 default=None,
314 default=None,
315 )
315 )
316 coreconfigitem('convert', 'svn.branches',
316 coreconfigitem('convert', 'svn.branches',
317 default=None,
317 default=None,
318 )
318 )
319 coreconfigitem('convert', 'svn.startrev',
319 coreconfigitem('convert', 'svn.startrev',
320 default=0,
320 default=0,
321 )
321 )
322 coreconfigitem('debug', 'dirstate.delaywrite',
322 coreconfigitem('debug', 'dirstate.delaywrite',
323 default=0,
323 default=0,
324 )
324 )
325 coreconfigitem('defaults', '.*',
325 coreconfigitem('defaults', '.*',
326 default=None,
326 default=None,
327 generic=True,
327 generic=True,
328 )
328 )
329 coreconfigitem('devel', 'all-warnings',
329 coreconfigitem('devel', 'all-warnings',
330 default=False,
330 default=False,
331 )
331 )
332 coreconfigitem('devel', 'bundle2.debug',
332 coreconfigitem('devel', 'bundle2.debug',
333 default=False,
333 default=False,
334 )
334 )
335 coreconfigitem('devel', 'bundle.delta',
335 coreconfigitem('devel', 'bundle.delta',
336 default='',
336 default='',
337 )
337 )
338 coreconfigitem('devel', 'cache-vfs',
338 coreconfigitem('devel', 'cache-vfs',
339 default=None,
339 default=None,
340 )
340 )
341 coreconfigitem('devel', 'check-locks',
341 coreconfigitem('devel', 'check-locks',
342 default=False,
342 default=False,
343 )
343 )
344 coreconfigitem('devel', 'check-relroot',
344 coreconfigitem('devel', 'check-relroot',
345 default=False,
345 default=False,
346 )
346 )
347 coreconfigitem('devel', 'default-date',
347 coreconfigitem('devel', 'default-date',
348 default=None,
348 default=None,
349 )
349 )
350 coreconfigitem('devel', 'deprec-warn',
350 coreconfigitem('devel', 'deprec-warn',
351 default=False,
351 default=False,
352 )
352 )
353 coreconfigitem('devel', 'disableloaddefaultcerts',
353 coreconfigitem('devel', 'disableloaddefaultcerts',
354 default=False,
354 default=False,
355 )
355 )
356 coreconfigitem('devel', 'warn-empty-changegroup',
356 coreconfigitem('devel', 'warn-empty-changegroup',
357 default=False,
357 default=False,
358 )
358 )
359 coreconfigitem('devel', 'legacy.exchange',
359 coreconfigitem('devel', 'legacy.exchange',
360 default=list,
360 default=list,
361 )
361 )
362 coreconfigitem('devel', 'servercafile',
362 coreconfigitem('devel', 'servercafile',
363 default='',
363 default='',
364 )
364 )
365 coreconfigitem('devel', 'serverexactprotocol',
365 coreconfigitem('devel', 'serverexactprotocol',
366 default='',
366 default='',
367 )
367 )
368 coreconfigitem('devel', 'serverrequirecert',
368 coreconfigitem('devel', 'serverrequirecert',
369 default=False,
369 default=False,
370 )
370 )
371 coreconfigitem('devel', 'strip-obsmarkers',
371 coreconfigitem('devel', 'strip-obsmarkers',
372 default=True,
372 default=True,
373 )
373 )
374 coreconfigitem('devel', 'warn-config',
374 coreconfigitem('devel', 'warn-config',
375 default=None,
375 default=None,
376 )
376 )
377 coreconfigitem('devel', 'warn-config-default',
377 coreconfigitem('devel', 'warn-config-default',
378 default=None,
378 default=None,
379 )
379 )
380 coreconfigitem('devel', 'user.obsmarker',
380 coreconfigitem('devel', 'user.obsmarker',
381 default=None,
381 default=None,
382 )
382 )
383 coreconfigitem('devel', 'warn-config-unknown',
383 coreconfigitem('devel', 'warn-config-unknown',
384 default=None,
384 default=None,
385 )
385 )
386 coreconfigitem('devel', 'debug.copies',
386 coreconfigitem('devel', 'debug.copies',
387 default=False,
387 default=False,
388 )
388 )
389 coreconfigitem('devel', 'debug.extensions',
389 coreconfigitem('devel', 'debug.extensions',
390 default=False,
390 default=False,
391 )
391 )
392 coreconfigitem('devel', 'debug.peer-request',
392 coreconfigitem('devel', 'debug.peer-request',
393 default=False,
393 default=False,
394 )
394 )
395 coreconfigitem('diff', 'nodates',
395 coreconfigitem('diff', 'nodates',
396 default=False,
396 default=False,
397 )
397 )
398 coreconfigitem('diff', 'showfunc',
398 coreconfigitem('diff', 'showfunc',
399 default=False,
399 default=False,
400 )
400 )
401 coreconfigitem('diff', 'unified',
401 coreconfigitem('diff', 'unified',
402 default=None,
402 default=None,
403 )
403 )
404 coreconfigitem('diff', 'git',
404 coreconfigitem('diff', 'git',
405 default=False,
405 default=False,
406 )
406 )
407 coreconfigitem('diff', 'ignorews',
407 coreconfigitem('diff', 'ignorews',
408 default=False,
408 default=False,
409 )
409 )
410 coreconfigitem('diff', 'ignorewsamount',
410 coreconfigitem('diff', 'ignorewsamount',
411 default=False,
411 default=False,
412 )
412 )
413 coreconfigitem('diff', 'ignoreblanklines',
413 coreconfigitem('diff', 'ignoreblanklines',
414 default=False,
414 default=False,
415 )
415 )
416 coreconfigitem('diff', 'ignorewseol',
416 coreconfigitem('diff', 'ignorewseol',
417 default=False,
417 default=False,
418 )
418 )
419 coreconfigitem('diff', 'nobinary',
419 coreconfigitem('diff', 'nobinary',
420 default=False,
420 default=False,
421 )
421 )
422 coreconfigitem('diff', 'noprefix',
422 coreconfigitem('diff', 'noprefix',
423 default=False,
423 default=False,
424 )
424 )
425 coreconfigitem('diff', 'word-diff',
425 coreconfigitem('diff', 'word-diff',
426 default=False,
426 default=False,
427 )
427 )
428 coreconfigitem('email', 'bcc',
428 coreconfigitem('email', 'bcc',
429 default=None,
429 default=None,
430 )
430 )
431 coreconfigitem('email', 'cc',
431 coreconfigitem('email', 'cc',
432 default=None,
432 default=None,
433 )
433 )
434 coreconfigitem('email', 'charsets',
434 coreconfigitem('email', 'charsets',
435 default=list,
435 default=list,
436 )
436 )
437 coreconfigitem('email', 'from',
437 coreconfigitem('email', 'from',
438 default=None,
438 default=None,
439 )
439 )
440 coreconfigitem('email', 'method',
440 coreconfigitem('email', 'method',
441 default='smtp',
441 default='smtp',
442 )
442 )
443 coreconfigitem('email', 'reply-to',
443 coreconfigitem('email', 'reply-to',
444 default=None,
444 default=None,
445 )
445 )
446 coreconfigitem('email', 'to',
446 coreconfigitem('email', 'to',
447 default=None,
447 default=None,
448 )
448 )
449 coreconfigitem('experimental', 'archivemetatemplate',
449 coreconfigitem('experimental', 'archivemetatemplate',
450 default=dynamicdefault,
450 default=dynamicdefault,
451 )
451 )
452 coreconfigitem('experimental', 'auto-publish',
452 coreconfigitem('experimental', 'auto-publish',
453 default='publish',
453 default='publish',
454 )
454 )
455 coreconfigitem('experimental', 'bundle-phases',
455 coreconfigitem('experimental', 'bundle-phases',
456 default=False,
456 default=False,
457 )
457 )
458 coreconfigitem('experimental', 'bundle2-advertise',
458 coreconfigitem('experimental', 'bundle2-advertise',
459 default=True,
459 default=True,
460 )
460 )
461 coreconfigitem('experimental', 'bundle2-output-capture',
461 coreconfigitem('experimental', 'bundle2-output-capture',
462 default=False,
462 default=False,
463 )
463 )
464 coreconfigitem('experimental', 'bundle2.pushback',
464 coreconfigitem('experimental', 'bundle2.pushback',
465 default=False,
465 default=False,
466 )
466 )
467 coreconfigitem('experimental', 'bundle2lazylocking',
467 coreconfigitem('experimental', 'bundle2lazylocking',
468 default=False,
468 default=False,
469 )
469 )
470 coreconfigitem('experimental', 'bundlecomplevel',
470 coreconfigitem('experimental', 'bundlecomplevel',
471 default=None,
471 default=None,
472 )
472 )
473 coreconfigitem('experimental', 'bundlecomplevel.bzip2',
473 coreconfigitem('experimental', 'bundlecomplevel.bzip2',
474 default=None,
474 default=None,
475 )
475 )
476 coreconfigitem('experimental', 'bundlecomplevel.gzip',
476 coreconfigitem('experimental', 'bundlecomplevel.gzip',
477 default=None,
477 default=None,
478 )
478 )
479 coreconfigitem('experimental', 'bundlecomplevel.none',
479 coreconfigitem('experimental', 'bundlecomplevel.none',
480 default=None,
480 default=None,
481 )
481 )
482 coreconfigitem('experimental', 'bundlecomplevel.zstd',
482 coreconfigitem('experimental', 'bundlecomplevel.zstd',
483 default=None,
483 default=None,
484 )
484 )
485 coreconfigitem('experimental', 'changegroup3',
485 coreconfigitem('experimental', 'changegroup3',
486 default=False,
486 default=False,
487 )
487 )
488 coreconfigitem('experimental', 'clientcompressionengines',
488 coreconfigitem('experimental', 'clientcompressionengines',
489 default=list,
489 default=list,
490 )
490 )
491 coreconfigitem('experimental', 'copytrace',
491 coreconfigitem('experimental', 'copytrace',
492 default='on',
492 default='on',
493 )
493 )
494 coreconfigitem('experimental', 'copytrace.movecandidateslimit',
494 coreconfigitem('experimental', 'copytrace.movecandidateslimit',
495 default=100,
495 default=100,
496 )
496 )
497 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
497 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
498 default=100,
498 default=100,
499 )
499 )
500 coreconfigitem('experimental', 'crecordtest',
500 coreconfigitem('experimental', 'crecordtest',
501 default=None,
501 default=None,
502 )
502 )
503 coreconfigitem('experimental', 'directaccess',
503 coreconfigitem('experimental', 'directaccess',
504 default=False,
504 default=False,
505 )
505 )
506 coreconfigitem('experimental', 'directaccess.revnums',
506 coreconfigitem('experimental', 'directaccess.revnums',
507 default=False,
507 default=False,
508 )
508 )
509 coreconfigitem('experimental', 'editortmpinhg',
509 coreconfigitem('experimental', 'editortmpinhg',
510 default=False,
510 default=False,
511 )
511 )
512 coreconfigitem('experimental', 'evolution',
512 coreconfigitem('experimental', 'evolution',
513 default=list,
513 default=list,
514 )
514 )
515 coreconfigitem('experimental', 'evolution.allowdivergence',
515 coreconfigitem('experimental', 'evolution.allowdivergence',
516 default=False,
516 default=False,
517 alias=[('experimental', 'allowdivergence')]
517 alias=[('experimental', 'allowdivergence')]
518 )
518 )
519 coreconfigitem('experimental', 'evolution.allowunstable',
519 coreconfigitem('experimental', 'evolution.allowunstable',
520 default=None,
520 default=None,
521 )
521 )
522 coreconfigitem('experimental', 'evolution.createmarkers',
522 coreconfigitem('experimental', 'evolution.createmarkers',
523 default=None,
523 default=None,
524 )
524 )
525 coreconfigitem('experimental', 'evolution.effect-flags',
525 coreconfigitem('experimental', 'evolution.effect-flags',
526 default=True,
526 default=True,
527 alias=[('experimental', 'effect-flags')]
527 alias=[('experimental', 'effect-flags')]
528 )
528 )
529 coreconfigitem('experimental', 'evolution.exchange',
529 coreconfigitem('experimental', 'evolution.exchange',
530 default=None,
530 default=None,
531 )
531 )
532 coreconfigitem('experimental', 'evolution.bundle-obsmarker',
532 coreconfigitem('experimental', 'evolution.bundle-obsmarker',
533 default=False,
533 default=False,
534 )
534 )
535 coreconfigitem('experimental', 'evolution.report-instabilities',
535 coreconfigitem('experimental', 'evolution.report-instabilities',
536 default=True,
536 default=True,
537 )
537 )
538 coreconfigitem('experimental', 'evolution.track-operation',
538 coreconfigitem('experimental', 'evolution.track-operation',
539 default=True,
539 default=True,
540 )
540 )
541 coreconfigitem('experimental', 'maxdeltachainspan',
541 coreconfigitem('experimental', 'maxdeltachainspan',
542 default=-1,
542 default=-1,
543 )
543 )
544 coreconfigitem('experimental', 'mergetempdirprefix',
544 coreconfigitem('experimental', 'mergetempdirprefix',
545 default=None,
545 default=None,
546 )
546 )
547 coreconfigitem('experimental', 'narrow',
547 coreconfigitem('experimental', 'narrow',
548 default=False,
548 default=False,
549 )
549 )
550 coreconfigitem('experimental', 'nonnormalparanoidcheck',
550 coreconfigitem('experimental', 'nonnormalparanoidcheck',
551 default=False,
551 default=False,
552 )
552 )
553 coreconfigitem('experimental', 'exportableenviron',
553 coreconfigitem('experimental', 'exportableenviron',
554 default=list,
554 default=list,
555 )
555 )
556 coreconfigitem('experimental', 'extendedheader.index',
556 coreconfigitem('experimental', 'extendedheader.index',
557 default=None,
557 default=None,
558 )
558 )
559 coreconfigitem('experimental', 'extendedheader.similarity',
559 coreconfigitem('experimental', 'extendedheader.similarity',
560 default=False,
560 default=False,
561 )
561 )
562 coreconfigitem('experimental', 'format.compression',
562 coreconfigitem('experimental', 'format.compression',
563 default='zlib',
563 default='zlib',
564 )
564 )
565 coreconfigitem('experimental', 'graphshorten',
565 coreconfigitem('experimental', 'graphshorten',
566 default=False,
566 default=False,
567 )
567 )
568 coreconfigitem('experimental', 'graphstyle.parent',
568 coreconfigitem('experimental', 'graphstyle.parent',
569 default=dynamicdefault,
569 default=dynamicdefault,
570 )
570 )
571 coreconfigitem('experimental', 'graphstyle.missing',
571 coreconfigitem('experimental', 'graphstyle.missing',
572 default=dynamicdefault,
572 default=dynamicdefault,
573 )
573 )
574 coreconfigitem('experimental', 'graphstyle.grandparent',
574 coreconfigitem('experimental', 'graphstyle.grandparent',
575 default=dynamicdefault,
575 default=dynamicdefault,
576 )
576 )
577 coreconfigitem('experimental', 'hook-track-tags',
577 coreconfigitem('experimental', 'hook-track-tags',
578 default=False,
578 default=False,
579 )
579 )
580 coreconfigitem('experimental', 'httppeer.advertise-v2',
580 coreconfigitem('experimental', 'httppeer.advertise-v2',
581 default=False,
581 default=False,
582 )
582 )
583 coreconfigitem('experimental', 'httppeer.v2-encoder-order',
583 coreconfigitem('experimental', 'httppeer.v2-encoder-order',
584 default=None,
584 default=None,
585 )
585 )
586 coreconfigitem('experimental', 'httppostargs',
586 coreconfigitem('experimental', 'httppostargs',
587 default=False,
587 default=False,
588 )
588 )
589 coreconfigitem('experimental', 'mergedriver',
589 coreconfigitem('experimental', 'mergedriver',
590 default=None,
590 default=None,
591 )
591 )
592 coreconfigitem('experimental', 'nointerrupt', default=False)
592 coreconfigitem('experimental', 'nointerrupt', default=False)
593 coreconfigitem('experimental', 'nointerrupt-interactiveonly', default=True)
593 coreconfigitem('experimental', 'nointerrupt-interactiveonly', default=True)
594
594
595 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
595 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
596 default=False,
596 default=False,
597 )
597 )
598 coreconfigitem('experimental', 'remotenames',
598 coreconfigitem('experimental', 'remotenames',
599 default=False,
599 default=False,
600 )
600 )
601 coreconfigitem('experimental', 'removeemptydirs',
601 coreconfigitem('experimental', 'removeemptydirs',
602 default=True,
602 default=True,
603 )
603 )
604 coreconfigitem('experimental', 'revisions.prefixhexnode',
604 coreconfigitem('experimental', 'revisions.prefixhexnode',
605 default=False,
605 default=False,
606 )
606 )
607 coreconfigitem('experimental', 'revlogv2',
607 coreconfigitem('experimental', 'revlogv2',
608 default=None,
608 default=None,
609 )
609 )
610 coreconfigitem('experimental', 'revisions.disambiguatewithin',
610 coreconfigitem('experimental', 'revisions.disambiguatewithin',
611 default=None,
611 default=None,
612 )
612 )
613 coreconfigitem('experimental', 'server.filesdata.recommended-batch-size',
613 coreconfigitem('experimental', 'server.filesdata.recommended-batch-size',
614 default=50000,
614 default=50000,
615 )
615 )
616 coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size',
616 coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size',
617 default=100000,
617 default=100000,
618 )
618 )
619 coreconfigitem('experimental', 'server.stream-narrow-clones',
619 coreconfigitem('experimental', 'server.stream-narrow-clones',
620 default=False,
620 default=False,
621 )
621 )
622 coreconfigitem('experimental', 'single-head-per-branch',
622 coreconfigitem('experimental', 'single-head-per-branch',
623 default=False,
623 default=False,
624 )
624 )
625 coreconfigitem('experimental', 'sshserver.support-v2',
625 coreconfigitem('experimental', 'sshserver.support-v2',
626 default=False,
626 default=False,
627 )
627 )
628 coreconfigitem('experimental', 'sparse-read',
628 coreconfigitem('experimental', 'sparse-read',
629 default=False,
629 default=False,
630 )
630 )
631 coreconfigitem('experimental', 'sparse-read.density-threshold',
631 coreconfigitem('experimental', 'sparse-read.density-threshold',
632 default=0.50,
632 default=0.50,
633 )
633 )
634 coreconfigitem('experimental', 'sparse-read.min-gap-size',
634 coreconfigitem('experimental', 'sparse-read.min-gap-size',
635 default='65K',
635 default='65K',
636 )
636 )
637 coreconfigitem('experimental', 'treemanifest',
637 coreconfigitem('experimental', 'treemanifest',
638 default=False,
638 default=False,
639 )
639 )
640 coreconfigitem('experimental', 'update.atomic-file',
640 coreconfigitem('experimental', 'update.atomic-file',
641 default=False,
641 default=False,
642 )
642 )
643 coreconfigitem('experimental', 'sshpeer.advertise-v2',
643 coreconfigitem('experimental', 'sshpeer.advertise-v2',
644 default=False,
644 default=False,
645 )
645 )
646 coreconfigitem('experimental', 'web.apiserver',
646 coreconfigitem('experimental', 'web.apiserver',
647 default=False,
647 default=False,
648 )
648 )
649 coreconfigitem('experimental', 'web.api.http-v2',
649 coreconfigitem('experimental', 'web.api.http-v2',
650 default=False,
650 default=False,
651 )
651 )
652 coreconfigitem('experimental', 'web.api.debugreflect',
652 coreconfigitem('experimental', 'web.api.debugreflect',
653 default=False,
653 default=False,
654 )
654 )
655 coreconfigitem('experimental', 'worker.wdir-get-thread-safe',
655 coreconfigitem('experimental', 'worker.wdir-get-thread-safe',
656 default=False,
656 default=False,
657 )
657 )
658 coreconfigitem('experimental', 'xdiff',
658 coreconfigitem('experimental', 'xdiff',
659 default=False,
659 default=False,
660 )
660 )
661 coreconfigitem('extensions', '.*',
661 coreconfigitem('extensions', '.*',
662 default=None,
662 default=None,
663 generic=True,
663 generic=True,
664 )
664 )
665 coreconfigitem('extdata', '.*',
665 coreconfigitem('extdata', '.*',
666 default=None,
666 default=None,
667 generic=True,
667 generic=True,
668 )
668 )
669 coreconfigitem('format', 'chunkcachesize',
669 coreconfigitem('format', 'chunkcachesize',
670 default=None,
670 default=None,
671 )
671 )
672 coreconfigitem('format', 'dotencode',
672 coreconfigitem('format', 'dotencode',
673 default=True,
673 default=True,
674 )
674 )
675 coreconfigitem('format', 'generaldelta',
675 coreconfigitem('format', 'generaldelta',
676 default=False,
676 default=False,
677 )
677 )
678 coreconfigitem('format', 'manifestcachesize',
678 coreconfigitem('format', 'manifestcachesize',
679 default=None,
679 default=None,
680 )
680 )
681 coreconfigitem('format', 'maxchainlen',
681 coreconfigitem('format', 'maxchainlen',
682 default=dynamicdefault,
682 default=dynamicdefault,
683 )
683 )
684 coreconfigitem('format', 'obsstore-version',
684 coreconfigitem('format', 'obsstore-version',
685 default=None,
685 default=None,
686 )
686 )
687 coreconfigitem('format', 'sparse-revlog',
687 coreconfigitem('format', 'sparse-revlog',
688 default=False,
688 default=False,
689 )
689 )
690 coreconfigitem('format', 'usefncache',
690 coreconfigitem('format', 'usefncache',
691 default=True,
691 default=True,
692 )
692 )
693 coreconfigitem('format', 'usegeneraldelta',
693 coreconfigitem('format', 'usegeneraldelta',
694 default=True,
694 default=True,
695 )
695 )
696 coreconfigitem('format', 'usestore',
696 coreconfigitem('format', 'usestore',
697 default=True,
697 default=True,
698 )
698 )
699 coreconfigitem('format', 'internal-phase',
699 coreconfigitem('format', 'internal-phase',
700 default=False,
700 default=False,
701 )
701 )
702 coreconfigitem('fsmonitor', 'warn_when_unused',
702 coreconfigitem('fsmonitor', 'warn_when_unused',
703 default=True,
703 default=True,
704 )
704 )
705 coreconfigitem('fsmonitor', 'warn_update_file_count',
705 coreconfigitem('fsmonitor', 'warn_update_file_count',
706 default=50000,
706 default=50000,
707 )
707 )
708 coreconfigitem('help', 'hidden-command\..*',
708 coreconfigitem('help', 'hidden-command\..*',
709 default=False,
709 default=False,
710 generic=True,
710 generic=True,
711 )
711 )
712 coreconfigitem('help', 'hidden-topic\..*',
712 coreconfigitem('help', 'hidden-topic\..*',
713 default=False,
713 default=False,
714 generic=True,
714 generic=True,
715 )
715 )
716 coreconfigitem('hooks', '.*',
716 coreconfigitem('hooks', '.*',
717 default=dynamicdefault,
717 default=dynamicdefault,
718 generic=True,
718 generic=True,
719 )
719 )
720 coreconfigitem('hgweb-paths', '.*',
720 coreconfigitem('hgweb-paths', '.*',
721 default=list,
721 default=list,
722 generic=True,
722 generic=True,
723 )
723 )
724 coreconfigitem('hostfingerprints', '.*',
724 coreconfigitem('hostfingerprints', '.*',
725 default=list,
725 default=list,
726 generic=True,
726 generic=True,
727 )
727 )
728 coreconfigitem('hostsecurity', 'ciphers',
728 coreconfigitem('hostsecurity', 'ciphers',
729 default=None,
729 default=None,
730 )
730 )
731 coreconfigitem('hostsecurity', 'disabletls10warning',
731 coreconfigitem('hostsecurity', 'disabletls10warning',
732 default=False,
732 default=False,
733 )
733 )
734 coreconfigitem('hostsecurity', 'minimumprotocol',
734 coreconfigitem('hostsecurity', 'minimumprotocol',
735 default=dynamicdefault,
735 default=dynamicdefault,
736 )
736 )
737 coreconfigitem('hostsecurity', '.*:minimumprotocol$',
737 coreconfigitem('hostsecurity', '.*:minimumprotocol$',
738 default=dynamicdefault,
738 default=dynamicdefault,
739 generic=True,
739 generic=True,
740 )
740 )
741 coreconfigitem('hostsecurity', '.*:ciphers$',
741 coreconfigitem('hostsecurity', '.*:ciphers$',
742 default=dynamicdefault,
742 default=dynamicdefault,
743 generic=True,
743 generic=True,
744 )
744 )
745 coreconfigitem('hostsecurity', '.*:fingerprints$',
745 coreconfigitem('hostsecurity', '.*:fingerprints$',
746 default=list,
746 default=list,
747 generic=True,
747 generic=True,
748 )
748 )
749 coreconfigitem('hostsecurity', '.*:verifycertsfile$',
749 coreconfigitem('hostsecurity', '.*:verifycertsfile$',
750 default=None,
750 default=None,
751 generic=True,
751 generic=True,
752 )
752 )
753
753
754 coreconfigitem('http_proxy', 'always',
754 coreconfigitem('http_proxy', 'always',
755 default=False,
755 default=False,
756 )
756 )
757 coreconfigitem('http_proxy', 'host',
757 coreconfigitem('http_proxy', 'host',
758 default=None,
758 default=None,
759 )
759 )
760 coreconfigitem('http_proxy', 'no',
760 coreconfigitem('http_proxy', 'no',
761 default=list,
761 default=list,
762 )
762 )
763 coreconfigitem('http_proxy', 'passwd',
763 coreconfigitem('http_proxy', 'passwd',
764 default=None,
764 default=None,
765 )
765 )
766 coreconfigitem('http_proxy', 'user',
766 coreconfigitem('http_proxy', 'user',
767 default=None,
767 default=None,
768 )
768 )
769
769
770 coreconfigitem('http', 'timeout',
770 coreconfigitem('http', 'timeout',
771 default=None,
771 default=None,
772 )
772 )
773
773
774 coreconfigitem('logtoprocess', 'commandexception',
774 coreconfigitem('logtoprocess', 'commandexception',
775 default=None,
775 default=None,
776 )
776 )
777 coreconfigitem('logtoprocess', 'commandfinish',
777 coreconfigitem('logtoprocess', 'commandfinish',
778 default=None,
778 default=None,
779 )
779 )
780 coreconfigitem('logtoprocess', 'command',
780 coreconfigitem('logtoprocess', 'command',
781 default=None,
781 default=None,
782 )
782 )
783 coreconfigitem('logtoprocess', 'develwarn',
783 coreconfigitem('logtoprocess', 'develwarn',
784 default=None,
784 default=None,
785 )
785 )
786 coreconfigitem('logtoprocess', 'uiblocked',
786 coreconfigitem('logtoprocess', 'uiblocked',
787 default=None,
787 default=None,
788 )
788 )
789 coreconfigitem('merge', 'checkunknown',
789 coreconfigitem('merge', 'checkunknown',
790 default='abort',
790 default='abort',
791 )
791 )
792 coreconfigitem('merge', 'checkignored',
792 coreconfigitem('merge', 'checkignored',
793 default='abort',
793 default='abort',
794 )
794 )
795 coreconfigitem('experimental', 'merge.checkpathconflicts',
795 coreconfigitem('experimental', 'merge.checkpathconflicts',
796 default=False,
796 default=False,
797 )
797 )
798 coreconfigitem('merge', 'followcopies',
798 coreconfigitem('merge', 'followcopies',
799 default=True,
799 default=True,
800 )
800 )
801 coreconfigitem('merge', 'on-failure',
801 coreconfigitem('merge', 'on-failure',
802 default='continue',
802 default='continue',
803 )
803 )
804 coreconfigitem('merge', 'preferancestor',
804 coreconfigitem('merge', 'preferancestor',
805 default=lambda: ['*'],
805 default=lambda: ['*'],
806 )
806 )
807 coreconfigitem('merge', 'strict-capability-check',
807 coreconfigitem('merge', 'strict-capability-check',
808 default=False,
808 default=False,
809 )
809 )
810 coreconfigitem('merge-tools', '.*',
810 coreconfigitem('merge-tools', '.*',
811 default=None,
811 default=None,
812 generic=True,
812 generic=True,
813 )
813 )
814 coreconfigitem('merge-tools', br'.*\.args$',
814 coreconfigitem('merge-tools', br'.*\.args$',
815 default="$local $base $other",
815 default="$local $base $other",
816 generic=True,
816 generic=True,
817 priority=-1,
817 priority=-1,
818 )
818 )
819 coreconfigitem('merge-tools', br'.*\.binary$',
819 coreconfigitem('merge-tools', br'.*\.binary$',
820 default=False,
820 default=False,
821 generic=True,
821 generic=True,
822 priority=-1,
822 priority=-1,
823 )
823 )
824 coreconfigitem('merge-tools', br'.*\.check$',
824 coreconfigitem('merge-tools', br'.*\.check$',
825 default=list,
825 default=list,
826 generic=True,
826 generic=True,
827 priority=-1,
827 priority=-1,
828 )
828 )
829 coreconfigitem('merge-tools', br'.*\.checkchanged$',
829 coreconfigitem('merge-tools', br'.*\.checkchanged$',
830 default=False,
830 default=False,
831 generic=True,
831 generic=True,
832 priority=-1,
832 priority=-1,
833 )
833 )
834 coreconfigitem('merge-tools', br'.*\.executable$',
834 coreconfigitem('merge-tools', br'.*\.executable$',
835 default=dynamicdefault,
835 default=dynamicdefault,
836 generic=True,
836 generic=True,
837 priority=-1,
837 priority=-1,
838 )
838 )
839 coreconfigitem('merge-tools', br'.*\.fixeol$',
839 coreconfigitem('merge-tools', br'.*\.fixeol$',
840 default=False,
840 default=False,
841 generic=True,
841 generic=True,
842 priority=-1,
842 priority=-1,
843 )
843 )
844 coreconfigitem('merge-tools', br'.*\.gui$',
844 coreconfigitem('merge-tools', br'.*\.gui$',
845 default=False,
845 default=False,
846 generic=True,
846 generic=True,
847 priority=-1,
847 priority=-1,
848 )
848 )
849 coreconfigitem('merge-tools', br'.*\.mergemarkers$',
849 coreconfigitem('merge-tools', br'.*\.mergemarkers$',
850 default='basic',
850 default='basic',
851 generic=True,
851 generic=True,
852 priority=-1,
852 priority=-1,
853 )
853 )
854 coreconfigitem('merge-tools', br'.*\.mergemarkertemplate$',
854 coreconfigitem('merge-tools', br'.*\.mergemarkertemplate$',
855 default=dynamicdefault, # take from ui.mergemarkertemplate
855 default=dynamicdefault, # take from ui.mergemarkertemplate
856 generic=True,
856 generic=True,
857 priority=-1,
857 priority=-1,
858 )
858 )
859 coreconfigitem('merge-tools', br'.*\.priority$',
859 coreconfigitem('merge-tools', br'.*\.priority$',
860 default=0,
860 default=0,
861 generic=True,
861 generic=True,
862 priority=-1,
862 priority=-1,
863 )
863 )
864 coreconfigitem('merge-tools', br'.*\.premerge$',
864 coreconfigitem('merge-tools', br'.*\.premerge$',
865 default=dynamicdefault,
865 default=dynamicdefault,
866 generic=True,
866 generic=True,
867 priority=-1,
867 priority=-1,
868 )
868 )
869 coreconfigitem('merge-tools', br'.*\.symlink$',
869 coreconfigitem('merge-tools', br'.*\.symlink$',
870 default=False,
870 default=False,
871 generic=True,
871 generic=True,
872 priority=-1,
872 priority=-1,
873 )
873 )
874 coreconfigitem('pager', 'attend-.*',
874 coreconfigitem('pager', 'attend-.*',
875 default=dynamicdefault,
875 default=dynamicdefault,
876 generic=True,
876 generic=True,
877 )
877 )
878 coreconfigitem('pager', 'ignore',
878 coreconfigitem('pager', 'ignore',
879 default=list,
879 default=list,
880 )
880 )
881 coreconfigitem('pager', 'pager',
881 coreconfigitem('pager', 'pager',
882 default=dynamicdefault,
882 default=dynamicdefault,
883 )
883 )
884 coreconfigitem('patch', 'eol',
884 coreconfigitem('patch', 'eol',
885 default='strict',
885 default='strict',
886 )
886 )
887 coreconfigitem('patch', 'fuzz',
887 coreconfigitem('patch', 'fuzz',
888 default=2,
888 default=2,
889 )
889 )
890 coreconfigitem('paths', 'default',
890 coreconfigitem('paths', 'default',
891 default=None,
891 default=None,
892 )
892 )
893 coreconfigitem('paths', 'default-push',
893 coreconfigitem('paths', 'default-push',
894 default=None,
894 default=None,
895 )
895 )
896 coreconfigitem('paths', '.*',
896 coreconfigitem('paths', '.*',
897 default=None,
897 default=None,
898 generic=True,
898 generic=True,
899 )
899 )
900 coreconfigitem('phases', 'checksubrepos',
900 coreconfigitem('phases', 'checksubrepos',
901 default='follow',
901 default='follow',
902 )
902 )
903 coreconfigitem('phases', 'new-commit',
903 coreconfigitem('phases', 'new-commit',
904 default='draft',
904 default='draft',
905 )
905 )
906 coreconfigitem('phases', 'publish',
906 coreconfigitem('phases', 'publish',
907 default=True,
907 default=True,
908 )
908 )
909 coreconfigitem('profiling', 'enabled',
909 coreconfigitem('profiling', 'enabled',
910 default=False,
910 default=False,
911 )
911 )
912 coreconfigitem('profiling', 'format',
912 coreconfigitem('profiling', 'format',
913 default='text',
913 default='text',
914 )
914 )
915 coreconfigitem('profiling', 'freq',
915 coreconfigitem('profiling', 'freq',
916 default=1000,
916 default=1000,
917 )
917 )
918 coreconfigitem('profiling', 'limit',
918 coreconfigitem('profiling', 'limit',
919 default=30,
919 default=30,
920 )
920 )
921 coreconfigitem('profiling', 'nested',
921 coreconfigitem('profiling', 'nested',
922 default=0,
922 default=0,
923 )
923 )
924 coreconfigitem('profiling', 'output',
924 coreconfigitem('profiling', 'output',
925 default=None,
925 default=None,
926 )
926 )
927 coreconfigitem('profiling', 'showmax',
927 coreconfigitem('profiling', 'showmax',
928 default=0.999,
928 default=0.999,
929 )
929 )
930 coreconfigitem('profiling', 'showmin',
930 coreconfigitem('profiling', 'showmin',
931 default=dynamicdefault,
931 default=dynamicdefault,
932 )
932 )
933 coreconfigitem('profiling', 'sort',
933 coreconfigitem('profiling', 'sort',
934 default='inlinetime',
934 default='inlinetime',
935 )
935 )
936 coreconfigitem('profiling', 'statformat',
936 coreconfigitem('profiling', 'statformat',
937 default='hotpath',
937 default='hotpath',
938 )
938 )
939 coreconfigitem('profiling', 'time-track',
939 coreconfigitem('profiling', 'time-track',
940 default=dynamicdefault,
940 default=dynamicdefault,
941 )
941 )
942 coreconfigitem('profiling', 'type',
942 coreconfigitem('profiling', 'type',
943 default='stat',
943 default='stat',
944 )
944 )
945 coreconfigitem('progress', 'assume-tty',
945 coreconfigitem('progress', 'assume-tty',
946 default=False,
946 default=False,
947 )
947 )
948 coreconfigitem('progress', 'changedelay',
948 coreconfigitem('progress', 'changedelay',
949 default=1,
949 default=1,
950 )
950 )
951 coreconfigitem('progress', 'clear-complete',
951 coreconfigitem('progress', 'clear-complete',
952 default=True,
952 default=True,
953 )
953 )
954 coreconfigitem('progress', 'debug',
954 coreconfigitem('progress', 'debug',
955 default=False,
955 default=False,
956 )
956 )
957 coreconfigitem('progress', 'delay',
957 coreconfigitem('progress', 'delay',
958 default=3,
958 default=3,
959 )
959 )
960 coreconfigitem('progress', 'disable',
960 coreconfigitem('progress', 'disable',
961 default=False,
961 default=False,
962 )
962 )
963 coreconfigitem('progress', 'estimateinterval',
963 coreconfigitem('progress', 'estimateinterval',
964 default=60.0,
964 default=60.0,
965 )
965 )
966 coreconfigitem('progress', 'format',
966 coreconfigitem('progress', 'format',
967 default=lambda: ['topic', 'bar', 'number', 'estimate'],
967 default=lambda: ['topic', 'bar', 'number', 'estimate'],
968 )
968 )
969 coreconfigitem('progress', 'refresh',
969 coreconfigitem('progress', 'refresh',
970 default=0.1,
970 default=0.1,
971 )
971 )
972 coreconfigitem('progress', 'width',
972 coreconfigitem('progress', 'width',
973 default=dynamicdefault,
973 default=dynamicdefault,
974 )
974 )
975 coreconfigitem('push', 'pushvars.server',
975 coreconfigitem('push', 'pushvars.server',
976 default=False,
976 default=False,
977 )
977 )
978 coreconfigitem('storage', 'mmap-threshold',
978 coreconfigitem('storage', 'mmap-threshold',
979 default=None,
979 default='1MB',
980 alias=[('experimental', 'mmapindexthreshold')],
980 alias=[('experimental', 'mmapindexthreshold')],
981 )
981 )
982 coreconfigitem('storage', 'new-repo-backend',
982 coreconfigitem('storage', 'new-repo-backend',
983 default='revlogv1',
983 default='revlogv1',
984 )
984 )
985 coreconfigitem('storage', 'revlog.optimize-delta-parent-choice',
985 coreconfigitem('storage', 'revlog.optimize-delta-parent-choice',
986 default=True,
986 default=True,
987 alias=[('format', 'aggressivemergedeltas')],
987 alias=[('format', 'aggressivemergedeltas')],
988 )
988 )
989 coreconfigitem('server', 'bookmarks-pushkey-compat',
989 coreconfigitem('server', 'bookmarks-pushkey-compat',
990 default=True,
990 default=True,
991 )
991 )
992 coreconfigitem('server', 'bundle1',
992 coreconfigitem('server', 'bundle1',
993 default=True,
993 default=True,
994 )
994 )
995 coreconfigitem('server', 'bundle1gd',
995 coreconfigitem('server', 'bundle1gd',
996 default=None,
996 default=None,
997 )
997 )
998 coreconfigitem('server', 'bundle1.pull',
998 coreconfigitem('server', 'bundle1.pull',
999 default=None,
999 default=None,
1000 )
1000 )
1001 coreconfigitem('server', 'bundle1gd.pull',
1001 coreconfigitem('server', 'bundle1gd.pull',
1002 default=None,
1002 default=None,
1003 )
1003 )
1004 coreconfigitem('server', 'bundle1.push',
1004 coreconfigitem('server', 'bundle1.push',
1005 default=None,
1005 default=None,
1006 )
1006 )
1007 coreconfigitem('server', 'bundle1gd.push',
1007 coreconfigitem('server', 'bundle1gd.push',
1008 default=None,
1008 default=None,
1009 )
1009 )
1010 coreconfigitem('server', 'bundle2.stream',
1010 coreconfigitem('server', 'bundle2.stream',
1011 default=True,
1011 default=True,
1012 alias=[('experimental', 'bundle2.stream')]
1012 alias=[('experimental', 'bundle2.stream')]
1013 )
1013 )
1014 coreconfigitem('server', 'compressionengines',
1014 coreconfigitem('server', 'compressionengines',
1015 default=list,
1015 default=list,
1016 )
1016 )
1017 coreconfigitem('server', 'concurrent-push-mode',
1017 coreconfigitem('server', 'concurrent-push-mode',
1018 default='strict',
1018 default='strict',
1019 )
1019 )
1020 coreconfigitem('server', 'disablefullbundle',
1020 coreconfigitem('server', 'disablefullbundle',
1021 default=False,
1021 default=False,
1022 )
1022 )
1023 coreconfigitem('server', 'maxhttpheaderlen',
1023 coreconfigitem('server', 'maxhttpheaderlen',
1024 default=1024,
1024 default=1024,
1025 )
1025 )
1026 coreconfigitem('server', 'pullbundle',
1026 coreconfigitem('server', 'pullbundle',
1027 default=False,
1027 default=False,
1028 )
1028 )
1029 coreconfigitem('server', 'preferuncompressed',
1029 coreconfigitem('server', 'preferuncompressed',
1030 default=False,
1030 default=False,
1031 )
1031 )
1032 coreconfigitem('server', 'streamunbundle',
1032 coreconfigitem('server', 'streamunbundle',
1033 default=False,
1033 default=False,
1034 )
1034 )
1035 coreconfigitem('server', 'uncompressed',
1035 coreconfigitem('server', 'uncompressed',
1036 default=True,
1036 default=True,
1037 )
1037 )
1038 coreconfigitem('server', 'uncompressedallowsecret',
1038 coreconfigitem('server', 'uncompressedallowsecret',
1039 default=False,
1039 default=False,
1040 )
1040 )
1041 coreconfigitem('server', 'validate',
1041 coreconfigitem('server', 'validate',
1042 default=False,
1042 default=False,
1043 )
1043 )
1044 coreconfigitem('server', 'zliblevel',
1044 coreconfigitem('server', 'zliblevel',
1045 default=-1,
1045 default=-1,
1046 )
1046 )
1047 coreconfigitem('server', 'zstdlevel',
1047 coreconfigitem('server', 'zstdlevel',
1048 default=3,
1048 default=3,
1049 )
1049 )
1050 coreconfigitem('share', 'pool',
1050 coreconfigitem('share', 'pool',
1051 default=None,
1051 default=None,
1052 )
1052 )
1053 coreconfigitem('share', 'poolnaming',
1053 coreconfigitem('share', 'poolnaming',
1054 default='identity',
1054 default='identity',
1055 )
1055 )
1056 coreconfigitem('smtp', 'host',
1056 coreconfigitem('smtp', 'host',
1057 default=None,
1057 default=None,
1058 )
1058 )
1059 coreconfigitem('smtp', 'local_hostname',
1059 coreconfigitem('smtp', 'local_hostname',
1060 default=None,
1060 default=None,
1061 )
1061 )
1062 coreconfigitem('smtp', 'password',
1062 coreconfigitem('smtp', 'password',
1063 default=None,
1063 default=None,
1064 )
1064 )
1065 coreconfigitem('smtp', 'port',
1065 coreconfigitem('smtp', 'port',
1066 default=dynamicdefault,
1066 default=dynamicdefault,
1067 )
1067 )
1068 coreconfigitem('smtp', 'tls',
1068 coreconfigitem('smtp', 'tls',
1069 default='none',
1069 default='none',
1070 )
1070 )
1071 coreconfigitem('smtp', 'username',
1071 coreconfigitem('smtp', 'username',
1072 default=None,
1072 default=None,
1073 )
1073 )
1074 coreconfigitem('sparse', 'missingwarning',
1074 coreconfigitem('sparse', 'missingwarning',
1075 default=True,
1075 default=True,
1076 )
1076 )
1077 coreconfigitem('subrepos', 'allowed',
1077 coreconfigitem('subrepos', 'allowed',
1078 default=dynamicdefault, # to make backporting simpler
1078 default=dynamicdefault, # to make backporting simpler
1079 )
1079 )
1080 coreconfigitem('subrepos', 'hg:allowed',
1080 coreconfigitem('subrepos', 'hg:allowed',
1081 default=dynamicdefault,
1081 default=dynamicdefault,
1082 )
1082 )
1083 coreconfigitem('subrepos', 'git:allowed',
1083 coreconfigitem('subrepos', 'git:allowed',
1084 default=dynamicdefault,
1084 default=dynamicdefault,
1085 )
1085 )
1086 coreconfigitem('subrepos', 'svn:allowed',
1086 coreconfigitem('subrepos', 'svn:allowed',
1087 default=dynamicdefault,
1087 default=dynamicdefault,
1088 )
1088 )
1089 coreconfigitem('templates', '.*',
1089 coreconfigitem('templates', '.*',
1090 default=None,
1090 default=None,
1091 generic=True,
1091 generic=True,
1092 )
1092 )
1093 coreconfigitem('trusted', 'groups',
1093 coreconfigitem('trusted', 'groups',
1094 default=list,
1094 default=list,
1095 )
1095 )
1096 coreconfigitem('trusted', 'users',
1096 coreconfigitem('trusted', 'users',
1097 default=list,
1097 default=list,
1098 )
1098 )
1099 coreconfigitem('ui', '_usedassubrepo',
1099 coreconfigitem('ui', '_usedassubrepo',
1100 default=False,
1100 default=False,
1101 )
1101 )
1102 coreconfigitem('ui', 'allowemptycommit',
1102 coreconfigitem('ui', 'allowemptycommit',
1103 default=False,
1103 default=False,
1104 )
1104 )
1105 coreconfigitem('ui', 'archivemeta',
1105 coreconfigitem('ui', 'archivemeta',
1106 default=True,
1106 default=True,
1107 )
1107 )
1108 coreconfigitem('ui', 'askusername',
1108 coreconfigitem('ui', 'askusername',
1109 default=False,
1109 default=False,
1110 )
1110 )
1111 coreconfigitem('ui', 'clonebundlefallback',
1111 coreconfigitem('ui', 'clonebundlefallback',
1112 default=False,
1112 default=False,
1113 )
1113 )
1114 coreconfigitem('ui', 'clonebundleprefers',
1114 coreconfigitem('ui', 'clonebundleprefers',
1115 default=list,
1115 default=list,
1116 )
1116 )
1117 coreconfigitem('ui', 'clonebundles',
1117 coreconfigitem('ui', 'clonebundles',
1118 default=True,
1118 default=True,
1119 )
1119 )
1120 coreconfigitem('ui', 'color',
1120 coreconfigitem('ui', 'color',
1121 default='auto',
1121 default='auto',
1122 )
1122 )
1123 coreconfigitem('ui', 'commitsubrepos',
1123 coreconfigitem('ui', 'commitsubrepos',
1124 default=False,
1124 default=False,
1125 )
1125 )
1126 coreconfigitem('ui', 'debug',
1126 coreconfigitem('ui', 'debug',
1127 default=False,
1127 default=False,
1128 )
1128 )
1129 coreconfigitem('ui', 'debugger',
1129 coreconfigitem('ui', 'debugger',
1130 default=None,
1130 default=None,
1131 )
1131 )
1132 coreconfigitem('ui', 'editor',
1132 coreconfigitem('ui', 'editor',
1133 default=dynamicdefault,
1133 default=dynamicdefault,
1134 )
1134 )
1135 coreconfigitem('ui', 'fallbackencoding',
1135 coreconfigitem('ui', 'fallbackencoding',
1136 default=None,
1136 default=None,
1137 )
1137 )
1138 coreconfigitem('ui', 'forcecwd',
1138 coreconfigitem('ui', 'forcecwd',
1139 default=None,
1139 default=None,
1140 )
1140 )
1141 coreconfigitem('ui', 'forcemerge',
1141 coreconfigitem('ui', 'forcemerge',
1142 default=None,
1142 default=None,
1143 )
1143 )
1144 coreconfigitem('ui', 'formatdebug',
1144 coreconfigitem('ui', 'formatdebug',
1145 default=False,
1145 default=False,
1146 )
1146 )
1147 coreconfigitem('ui', 'formatjson',
1147 coreconfigitem('ui', 'formatjson',
1148 default=False,
1148 default=False,
1149 )
1149 )
1150 coreconfigitem('ui', 'formatted',
1150 coreconfigitem('ui', 'formatted',
1151 default=None,
1151 default=None,
1152 )
1152 )
1153 coreconfigitem('ui', 'graphnodetemplate',
1153 coreconfigitem('ui', 'graphnodetemplate',
1154 default=None,
1154 default=None,
1155 )
1155 )
1156 coreconfigitem('ui', 'history-editing-backup',
1156 coreconfigitem('ui', 'history-editing-backup',
1157 default=True,
1157 default=True,
1158 )
1158 )
1159 coreconfigitem('ui', 'interactive',
1159 coreconfigitem('ui', 'interactive',
1160 default=None,
1160 default=None,
1161 )
1161 )
1162 coreconfigitem('ui', 'interface',
1162 coreconfigitem('ui', 'interface',
1163 default=None,
1163 default=None,
1164 )
1164 )
1165 coreconfigitem('ui', 'interface.chunkselector',
1165 coreconfigitem('ui', 'interface.chunkselector',
1166 default=None,
1166 default=None,
1167 )
1167 )
1168 coreconfigitem('ui', 'large-file-limit',
1168 coreconfigitem('ui', 'large-file-limit',
1169 default=10000000,
1169 default=10000000,
1170 )
1170 )
1171 coreconfigitem('ui', 'logblockedtimes',
1171 coreconfigitem('ui', 'logblockedtimes',
1172 default=False,
1172 default=False,
1173 )
1173 )
1174 coreconfigitem('ui', 'logtemplate',
1174 coreconfigitem('ui', 'logtemplate',
1175 default=None,
1175 default=None,
1176 )
1176 )
1177 coreconfigitem('ui', 'merge',
1177 coreconfigitem('ui', 'merge',
1178 default=None,
1178 default=None,
1179 )
1179 )
1180 coreconfigitem('ui', 'mergemarkers',
1180 coreconfigitem('ui', 'mergemarkers',
1181 default='basic',
1181 default='basic',
1182 )
1182 )
1183 coreconfigitem('ui', 'mergemarkertemplate',
1183 coreconfigitem('ui', 'mergemarkertemplate',
1184 default=('{node|short} '
1184 default=('{node|short} '
1185 '{ifeq(tags, "tip", "", '
1185 '{ifeq(tags, "tip", "", '
1186 'ifeq(tags, "", "", "{tags} "))}'
1186 'ifeq(tags, "", "", "{tags} "))}'
1187 '{if(bookmarks, "{bookmarks} ")}'
1187 '{if(bookmarks, "{bookmarks} ")}'
1188 '{ifeq(branch, "default", "", "{branch} ")}'
1188 '{ifeq(branch, "default", "", "{branch} ")}'
1189 '- {author|user}: {desc|firstline}')
1189 '- {author|user}: {desc|firstline}')
1190 )
1190 )
1191 coreconfigitem('ui', 'message-output',
1191 coreconfigitem('ui', 'message-output',
1192 default='stdio',
1192 default='stdio',
1193 )
1193 )
1194 coreconfigitem('ui', 'nontty',
1194 coreconfigitem('ui', 'nontty',
1195 default=False,
1195 default=False,
1196 )
1196 )
1197 coreconfigitem('ui', 'origbackuppath',
1197 coreconfigitem('ui', 'origbackuppath',
1198 default=None,
1198 default=None,
1199 )
1199 )
1200 coreconfigitem('ui', 'paginate',
1200 coreconfigitem('ui', 'paginate',
1201 default=True,
1201 default=True,
1202 )
1202 )
1203 coreconfigitem('ui', 'patch',
1203 coreconfigitem('ui', 'patch',
1204 default=None,
1204 default=None,
1205 )
1205 )
1206 coreconfigitem('ui', 'pre-merge-tool-output-template',
1206 coreconfigitem('ui', 'pre-merge-tool-output-template',
1207 default=None,
1207 default=None,
1208 )
1208 )
1209 coreconfigitem('ui', 'portablefilenames',
1209 coreconfigitem('ui', 'portablefilenames',
1210 default='warn',
1210 default='warn',
1211 )
1211 )
1212 coreconfigitem('ui', 'promptecho',
1212 coreconfigitem('ui', 'promptecho',
1213 default=False,
1213 default=False,
1214 )
1214 )
1215 coreconfigitem('ui', 'quiet',
1215 coreconfigitem('ui', 'quiet',
1216 default=False,
1216 default=False,
1217 )
1217 )
1218 coreconfigitem('ui', 'quietbookmarkmove',
1218 coreconfigitem('ui', 'quietbookmarkmove',
1219 default=False,
1219 default=False,
1220 )
1220 )
1221 coreconfigitem('ui', 'remotecmd',
1221 coreconfigitem('ui', 'remotecmd',
1222 default='hg',
1222 default='hg',
1223 )
1223 )
1224 coreconfigitem('ui', 'report_untrusted',
1224 coreconfigitem('ui', 'report_untrusted',
1225 default=True,
1225 default=True,
1226 )
1226 )
1227 coreconfigitem('ui', 'rollback',
1227 coreconfigitem('ui', 'rollback',
1228 default=True,
1228 default=True,
1229 )
1229 )
1230 coreconfigitem('ui', 'signal-safe-lock',
1230 coreconfigitem('ui', 'signal-safe-lock',
1231 default=True,
1231 default=True,
1232 )
1232 )
1233 coreconfigitem('ui', 'slash',
1233 coreconfigitem('ui', 'slash',
1234 default=False,
1234 default=False,
1235 )
1235 )
1236 coreconfigitem('ui', 'ssh',
1236 coreconfigitem('ui', 'ssh',
1237 default='ssh',
1237 default='ssh',
1238 )
1238 )
1239 coreconfigitem('ui', 'ssherrorhint',
1239 coreconfigitem('ui', 'ssherrorhint',
1240 default=None,
1240 default=None,
1241 )
1241 )
1242 coreconfigitem('ui', 'statuscopies',
1242 coreconfigitem('ui', 'statuscopies',
1243 default=False,
1243 default=False,
1244 )
1244 )
1245 coreconfigitem('ui', 'strict',
1245 coreconfigitem('ui', 'strict',
1246 default=False,
1246 default=False,
1247 )
1247 )
1248 coreconfigitem('ui', 'style',
1248 coreconfigitem('ui', 'style',
1249 default='',
1249 default='',
1250 )
1250 )
1251 coreconfigitem('ui', 'supportcontact',
1251 coreconfigitem('ui', 'supportcontact',
1252 default=None,
1252 default=None,
1253 )
1253 )
1254 coreconfigitem('ui', 'textwidth',
1254 coreconfigitem('ui', 'textwidth',
1255 default=78,
1255 default=78,
1256 )
1256 )
1257 coreconfigitem('ui', 'timeout',
1257 coreconfigitem('ui', 'timeout',
1258 default='600',
1258 default='600',
1259 )
1259 )
1260 coreconfigitem('ui', 'timeout.warn',
1260 coreconfigitem('ui', 'timeout.warn',
1261 default=0,
1261 default=0,
1262 )
1262 )
1263 coreconfigitem('ui', 'traceback',
1263 coreconfigitem('ui', 'traceback',
1264 default=False,
1264 default=False,
1265 )
1265 )
1266 coreconfigitem('ui', 'tweakdefaults',
1266 coreconfigitem('ui', 'tweakdefaults',
1267 default=False,
1267 default=False,
1268 )
1268 )
1269 coreconfigitem('ui', 'username',
1269 coreconfigitem('ui', 'username',
1270 alias=[('ui', 'user')]
1270 alias=[('ui', 'user')]
1271 )
1271 )
1272 coreconfigitem('ui', 'verbose',
1272 coreconfigitem('ui', 'verbose',
1273 default=False,
1273 default=False,
1274 )
1274 )
1275 coreconfigitem('verify', 'skipflags',
1275 coreconfigitem('verify', 'skipflags',
1276 default=None,
1276 default=None,
1277 )
1277 )
1278 coreconfigitem('web', 'allowbz2',
1278 coreconfigitem('web', 'allowbz2',
1279 default=False,
1279 default=False,
1280 )
1280 )
1281 coreconfigitem('web', 'allowgz',
1281 coreconfigitem('web', 'allowgz',
1282 default=False,
1282 default=False,
1283 )
1283 )
1284 coreconfigitem('web', 'allow-pull',
1284 coreconfigitem('web', 'allow-pull',
1285 alias=[('web', 'allowpull')],
1285 alias=[('web', 'allowpull')],
1286 default=True,
1286 default=True,
1287 )
1287 )
1288 coreconfigitem('web', 'allow-push',
1288 coreconfigitem('web', 'allow-push',
1289 alias=[('web', 'allow_push')],
1289 alias=[('web', 'allow_push')],
1290 default=list,
1290 default=list,
1291 )
1291 )
1292 coreconfigitem('web', 'allowzip',
1292 coreconfigitem('web', 'allowzip',
1293 default=False,
1293 default=False,
1294 )
1294 )
1295 coreconfigitem('web', 'archivesubrepos',
1295 coreconfigitem('web', 'archivesubrepos',
1296 default=False,
1296 default=False,
1297 )
1297 )
1298 coreconfigitem('web', 'cache',
1298 coreconfigitem('web', 'cache',
1299 default=True,
1299 default=True,
1300 )
1300 )
1301 coreconfigitem('web', 'contact',
1301 coreconfigitem('web', 'contact',
1302 default=None,
1302 default=None,
1303 )
1303 )
1304 coreconfigitem('web', 'deny_push',
1304 coreconfigitem('web', 'deny_push',
1305 default=list,
1305 default=list,
1306 )
1306 )
1307 coreconfigitem('web', 'guessmime',
1307 coreconfigitem('web', 'guessmime',
1308 default=False,
1308 default=False,
1309 )
1309 )
1310 coreconfigitem('web', 'hidden',
1310 coreconfigitem('web', 'hidden',
1311 default=False,
1311 default=False,
1312 )
1312 )
1313 coreconfigitem('web', 'labels',
1313 coreconfigitem('web', 'labels',
1314 default=list,
1314 default=list,
1315 )
1315 )
1316 coreconfigitem('web', 'logoimg',
1316 coreconfigitem('web', 'logoimg',
1317 default='hglogo.png',
1317 default='hglogo.png',
1318 )
1318 )
1319 coreconfigitem('web', 'logourl',
1319 coreconfigitem('web', 'logourl',
1320 default='https://mercurial-scm.org/',
1320 default='https://mercurial-scm.org/',
1321 )
1321 )
1322 coreconfigitem('web', 'accesslog',
1322 coreconfigitem('web', 'accesslog',
1323 default='-',
1323 default='-',
1324 )
1324 )
1325 coreconfigitem('web', 'address',
1325 coreconfigitem('web', 'address',
1326 default='',
1326 default='',
1327 )
1327 )
1328 coreconfigitem('web', 'allow-archive',
1328 coreconfigitem('web', 'allow-archive',
1329 alias=[('web', 'allow_archive')],
1329 alias=[('web', 'allow_archive')],
1330 default=list,
1330 default=list,
1331 )
1331 )
1332 coreconfigitem('web', 'allow_read',
1332 coreconfigitem('web', 'allow_read',
1333 default=list,
1333 default=list,
1334 )
1334 )
1335 coreconfigitem('web', 'baseurl',
1335 coreconfigitem('web', 'baseurl',
1336 default=None,
1336 default=None,
1337 )
1337 )
1338 coreconfigitem('web', 'cacerts',
1338 coreconfigitem('web', 'cacerts',
1339 default=None,
1339 default=None,
1340 )
1340 )
1341 coreconfigitem('web', 'certificate',
1341 coreconfigitem('web', 'certificate',
1342 default=None,
1342 default=None,
1343 )
1343 )
1344 coreconfigitem('web', 'collapse',
1344 coreconfigitem('web', 'collapse',
1345 default=False,
1345 default=False,
1346 )
1346 )
1347 coreconfigitem('web', 'csp',
1347 coreconfigitem('web', 'csp',
1348 default=None,
1348 default=None,
1349 )
1349 )
1350 coreconfigitem('web', 'deny_read',
1350 coreconfigitem('web', 'deny_read',
1351 default=list,
1351 default=list,
1352 )
1352 )
1353 coreconfigitem('web', 'descend',
1353 coreconfigitem('web', 'descend',
1354 default=True,
1354 default=True,
1355 )
1355 )
1356 coreconfigitem('web', 'description',
1356 coreconfigitem('web', 'description',
1357 default="",
1357 default="",
1358 )
1358 )
1359 coreconfigitem('web', 'encoding',
1359 coreconfigitem('web', 'encoding',
1360 default=lambda: encoding.encoding,
1360 default=lambda: encoding.encoding,
1361 )
1361 )
1362 coreconfigitem('web', 'errorlog',
1362 coreconfigitem('web', 'errorlog',
1363 default='-',
1363 default='-',
1364 )
1364 )
1365 coreconfigitem('web', 'ipv6',
1365 coreconfigitem('web', 'ipv6',
1366 default=False,
1366 default=False,
1367 )
1367 )
1368 coreconfigitem('web', 'maxchanges',
1368 coreconfigitem('web', 'maxchanges',
1369 default=10,
1369 default=10,
1370 )
1370 )
1371 coreconfigitem('web', 'maxfiles',
1371 coreconfigitem('web', 'maxfiles',
1372 default=10,
1372 default=10,
1373 )
1373 )
1374 coreconfigitem('web', 'maxshortchanges',
1374 coreconfigitem('web', 'maxshortchanges',
1375 default=60,
1375 default=60,
1376 )
1376 )
1377 coreconfigitem('web', 'motd',
1377 coreconfigitem('web', 'motd',
1378 default='',
1378 default='',
1379 )
1379 )
1380 coreconfigitem('web', 'name',
1380 coreconfigitem('web', 'name',
1381 default=dynamicdefault,
1381 default=dynamicdefault,
1382 )
1382 )
1383 coreconfigitem('web', 'port',
1383 coreconfigitem('web', 'port',
1384 default=8000,
1384 default=8000,
1385 )
1385 )
1386 coreconfigitem('web', 'prefix',
1386 coreconfigitem('web', 'prefix',
1387 default='',
1387 default='',
1388 )
1388 )
1389 coreconfigitem('web', 'push_ssl',
1389 coreconfigitem('web', 'push_ssl',
1390 default=True,
1390 default=True,
1391 )
1391 )
1392 coreconfigitem('web', 'refreshinterval',
1392 coreconfigitem('web', 'refreshinterval',
1393 default=20,
1393 default=20,
1394 )
1394 )
1395 coreconfigitem('web', 'server-header',
1395 coreconfigitem('web', 'server-header',
1396 default=None,
1396 default=None,
1397 )
1397 )
1398 coreconfigitem('web', 'static',
1398 coreconfigitem('web', 'static',
1399 default=None,
1399 default=None,
1400 )
1400 )
1401 coreconfigitem('web', 'staticurl',
1401 coreconfigitem('web', 'staticurl',
1402 default=None,
1402 default=None,
1403 )
1403 )
1404 coreconfigitem('web', 'stripes',
1404 coreconfigitem('web', 'stripes',
1405 default=1,
1405 default=1,
1406 )
1406 )
1407 coreconfigitem('web', 'style',
1407 coreconfigitem('web', 'style',
1408 default='paper',
1408 default='paper',
1409 )
1409 )
1410 coreconfigitem('web', 'templates',
1410 coreconfigitem('web', 'templates',
1411 default=None,
1411 default=None,
1412 )
1412 )
1413 coreconfigitem('web', 'view',
1413 coreconfigitem('web', 'view',
1414 default='served',
1414 default='served',
1415 )
1415 )
1416 coreconfigitem('worker', 'backgroundclose',
1416 coreconfigitem('worker', 'backgroundclose',
1417 default=dynamicdefault,
1417 default=dynamicdefault,
1418 )
1418 )
1419 # Windows defaults to a limit of 512 open files. A buffer of 128
1419 # Windows defaults to a limit of 512 open files. A buffer of 128
1420 # should give us enough headway.
1420 # should give us enough headway.
1421 coreconfigitem('worker', 'backgroundclosemaxqueue',
1421 coreconfigitem('worker', 'backgroundclosemaxqueue',
1422 default=384,
1422 default=384,
1423 )
1423 )
1424 coreconfigitem('worker', 'backgroundcloseminfilecount',
1424 coreconfigitem('worker', 'backgroundcloseminfilecount',
1425 default=2048,
1425 default=2048,
1426 )
1426 )
1427 coreconfigitem('worker', 'backgroundclosethreadcount',
1427 coreconfigitem('worker', 'backgroundclosethreadcount',
1428 default=4,
1428 default=4,
1429 )
1429 )
1430 coreconfigitem('worker', 'enabled',
1430 coreconfigitem('worker', 'enabled',
1431 default=True,
1431 default=True,
1432 )
1432 )
1433 coreconfigitem('worker', 'numcpus',
1433 coreconfigitem('worker', 'numcpus',
1434 default=None,
1434 default=None,
1435 )
1435 )
1436
1436
1437 # Rebase related configuration moved to core because other extension are doing
1437 # Rebase related configuration moved to core because other extension are doing
1438 # strange things. For example, shelve import the extensions to reuse some bit
1438 # strange things. For example, shelve import the extensions to reuse some bit
1439 # without formally loading it.
1439 # without formally loading it.
1440 coreconfigitem('commands', 'rebase.requiredest',
1440 coreconfigitem('commands', 'rebase.requiredest',
1441 default=False,
1441 default=False,
1442 )
1442 )
1443 coreconfigitem('experimental', 'rebaseskipobsolete',
1443 coreconfigitem('experimental', 'rebaseskipobsolete',
1444 default=True,
1444 default=True,
1445 )
1445 )
1446 coreconfigitem('rebase', 'singletransaction',
1446 coreconfigitem('rebase', 'singletransaction',
1447 default=False,
1447 default=False,
1448 )
1448 )
1449 coreconfigitem('rebase', 'experimental.inmemory',
1449 coreconfigitem('rebase', 'experimental.inmemory',
1450 default=False,
1450 default=False,
1451 )
1451 )
General Comments 0
You need to be logged in to leave comments. Login now