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