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