##// END OF EJS Templates
configitems: register the 'extdata' section
Boris Feld -
r34770:43c78d28 default
parent child Browse files
Show More
@@ -1,996 +1,1000 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 def loadconfigtable(ui, extname, configtable):
19 19 """update config item known to the ui with the extension ones"""
20 20 for section, items in configtable.items():
21 21 knownitems = ui._knownconfig.setdefault(section, itemregister())
22 22 knownkeys = set(knownitems)
23 23 newkeys = set(items)
24 24 for key in sorted(knownkeys & newkeys):
25 25 msg = "extension '%s' overwrite config item '%s.%s'"
26 26 msg %= (extname, section, key)
27 27 ui.develwarn(msg, config='warn-config')
28 28
29 29 knownitems.update(items)
30 30
31 31 class configitem(object):
32 32 """represent a known config item
33 33
34 34 :section: the official config section where to find this item,
35 35 :name: the official name within the section,
36 36 :default: default value for this item,
37 37 :alias: optional list of tuples as alternatives,
38 38 :generic: this is a generic definition, match name using regular expression.
39 39 """
40 40
41 41 def __init__(self, section, name, default=None, alias=(),
42 42 generic=False, priority=0):
43 43 self.section = section
44 44 self.name = name
45 45 self.default = default
46 46 self.alias = list(alias)
47 47 self.generic = generic
48 48 self.priority = priority
49 49 self._re = None
50 50 if generic:
51 51 self._re = re.compile(self.name)
52 52
53 53 class itemregister(dict):
54 54 """A specialized dictionary that can handle wild-card selection"""
55 55
56 56 def __init__(self):
57 57 super(itemregister, self).__init__()
58 58 self._generics = set()
59 59
60 60 def update(self, other):
61 61 super(itemregister, self).update(other)
62 62 self._generics.update(other._generics)
63 63
64 64 def __setitem__(self, key, item):
65 65 super(itemregister, self).__setitem__(key, item)
66 66 if item.generic:
67 67 self._generics.add(item)
68 68
69 69 def get(self, key):
70 70 if key in self:
71 71 return self[key]
72 72
73 73 # search for a matching generic item
74 74 generics = sorted(self._generics, key=(lambda x: (x.priority, x.name)))
75 75 for item in generics:
76 76 if item._re.match(key):
77 77 return item
78 78
79 79 # fallback to dict get
80 80 return super(itemregister, self).get(key)
81 81
82 82 coreitems = {}
83 83
84 84 def _register(configtable, *args, **kwargs):
85 85 item = configitem(*args, **kwargs)
86 86 section = configtable.setdefault(item.section, itemregister())
87 87 if item.name in section:
88 88 msg = "duplicated config item registration for '%s.%s'"
89 89 raise error.ProgrammingError(msg % (item.section, item.name))
90 90 section[item.name] = item
91 91
92 92 # special value for case where the default is derived from other values
93 93 dynamicdefault = object()
94 94
95 95 # Registering actual config items
96 96
97 97 def getitemregister(configtable):
98 98 return functools.partial(_register, configtable)
99 99
100 100 coreconfigitem = getitemregister(coreitems)
101 101
102 102 coreconfigitem('alias', '.*',
103 103 default=None,
104 104 generic=True,
105 105 )
106 106 coreconfigitem('annotate', 'nodates',
107 107 default=False,
108 108 )
109 109 coreconfigitem('annotate', 'showfunc',
110 110 default=False,
111 111 )
112 112 coreconfigitem('annotate', 'unified',
113 113 default=None,
114 114 )
115 115 coreconfigitem('annotate', 'git',
116 116 default=False,
117 117 )
118 118 coreconfigitem('annotate', 'ignorews',
119 119 default=False,
120 120 )
121 121 coreconfigitem('annotate', 'ignorewsamount',
122 122 default=False,
123 123 )
124 124 coreconfigitem('annotate', 'ignoreblanklines',
125 125 default=False,
126 126 )
127 127 coreconfigitem('annotate', 'ignorewseol',
128 128 default=False,
129 129 )
130 130 coreconfigitem('annotate', 'nobinary',
131 131 default=False,
132 132 )
133 133 coreconfigitem('annotate', 'noprefix',
134 134 default=False,
135 135 )
136 136 coreconfigitem('auth', 'cookiefile',
137 137 default=None,
138 138 )
139 139 # bookmarks.pushing: internal hack for discovery
140 140 coreconfigitem('bookmarks', 'pushing',
141 141 default=list,
142 142 )
143 143 # bundle.mainreporoot: internal hack for bundlerepo
144 144 coreconfigitem('bundle', 'mainreporoot',
145 145 default='',
146 146 )
147 147 # bundle.reorder: experimental config
148 148 coreconfigitem('bundle', 'reorder',
149 149 default='auto',
150 150 )
151 151 coreconfigitem('censor', 'policy',
152 152 default='abort',
153 153 )
154 154 coreconfigitem('chgserver', 'idletimeout',
155 155 default=3600,
156 156 )
157 157 coreconfigitem('chgserver', 'skiphash',
158 158 default=False,
159 159 )
160 160 coreconfigitem('cmdserver', 'log',
161 161 default=None,
162 162 )
163 163 coreconfigitem('color', '.*',
164 164 default=None,
165 165 generic=True,
166 166 )
167 167 coreconfigitem('color', 'mode',
168 168 default='auto',
169 169 )
170 170 coreconfigitem('color', 'pagermode',
171 171 default=dynamicdefault,
172 172 )
173 173 coreconfigitem('commands', 'status.relative',
174 174 default=False,
175 175 )
176 176 coreconfigitem('commands', 'status.skipstates',
177 177 default=[],
178 178 )
179 179 coreconfigitem('commands', 'status.verbose',
180 180 default=False,
181 181 )
182 182 coreconfigitem('commands', 'update.check',
183 183 default=None,
184 184 )
185 185 coreconfigitem('commands', 'update.requiredest',
186 186 default=False,
187 187 )
188 188 coreconfigitem('committemplate', '.*',
189 189 default=None,
190 190 generic=True,
191 191 )
192 192 coreconfigitem('debug', 'dirstate.delaywrite',
193 193 default=0,
194 194 )
195 195 coreconfigitem('defaults', '.*',
196 196 default=None,
197 197 generic=True,
198 198 )
199 199 coreconfigitem('devel', 'all-warnings',
200 200 default=False,
201 201 )
202 202 coreconfigitem('devel', 'bundle2.debug',
203 203 default=False,
204 204 )
205 205 coreconfigitem('devel', 'cache-vfs',
206 206 default=None,
207 207 )
208 208 coreconfigitem('devel', 'check-locks',
209 209 default=False,
210 210 )
211 211 coreconfigitem('devel', 'check-relroot',
212 212 default=False,
213 213 )
214 214 coreconfigitem('devel', 'default-date',
215 215 default=None,
216 216 )
217 217 coreconfigitem('devel', 'deprec-warn',
218 218 default=False,
219 219 )
220 220 coreconfigitem('devel', 'disableloaddefaultcerts',
221 221 default=False,
222 222 )
223 223 coreconfigitem('devel', 'warn-empty-changegroup',
224 224 default=False,
225 225 )
226 226 coreconfigitem('devel', 'legacy.exchange',
227 227 default=list,
228 228 )
229 229 coreconfigitem('devel', 'servercafile',
230 230 default='',
231 231 )
232 232 coreconfigitem('devel', 'serverexactprotocol',
233 233 default='',
234 234 )
235 235 coreconfigitem('devel', 'serverrequirecert',
236 236 default=False,
237 237 )
238 238 coreconfigitem('devel', 'strip-obsmarkers',
239 239 default=True,
240 240 )
241 241 coreconfigitem('devel', 'warn-config',
242 242 default=None,
243 243 )
244 244 coreconfigitem('devel', 'warn-config-default',
245 245 default=None,
246 246 )
247 247 coreconfigitem('devel', 'user.obsmarker',
248 248 default=None,
249 249 )
250 250 coreconfigitem('diff', 'nodates',
251 251 default=False,
252 252 )
253 253 coreconfigitem('diff', 'showfunc',
254 254 default=False,
255 255 )
256 256 coreconfigitem('diff', 'unified',
257 257 default=None,
258 258 )
259 259 coreconfigitem('diff', 'git',
260 260 default=False,
261 261 )
262 262 coreconfigitem('diff', 'ignorews',
263 263 default=False,
264 264 )
265 265 coreconfigitem('diff', 'ignorewsamount',
266 266 default=False,
267 267 )
268 268 coreconfigitem('diff', 'ignoreblanklines',
269 269 default=False,
270 270 )
271 271 coreconfigitem('diff', 'ignorewseol',
272 272 default=False,
273 273 )
274 274 coreconfigitem('diff', 'nobinary',
275 275 default=False,
276 276 )
277 277 coreconfigitem('diff', 'noprefix',
278 278 default=False,
279 279 )
280 280 coreconfigitem('email', 'bcc',
281 281 default=None,
282 282 )
283 283 coreconfigitem('email', 'cc',
284 284 default=None,
285 285 )
286 286 coreconfigitem('email', 'charsets',
287 287 default=list,
288 288 )
289 289 coreconfigitem('email', 'from',
290 290 default=None,
291 291 )
292 292 coreconfigitem('email', 'method',
293 293 default='smtp',
294 294 )
295 295 coreconfigitem('email', 'reply-to',
296 296 default=None,
297 297 )
298 298 coreconfigitem('experimental', 'allowdivergence',
299 299 default=False,
300 300 )
301 301 coreconfigitem('experimental', 'archivemetatemplate',
302 302 default=dynamicdefault,
303 303 )
304 304 coreconfigitem('experimental', 'bundle-phases',
305 305 default=False,
306 306 )
307 307 coreconfigitem('experimental', 'bundle2-advertise',
308 308 default=True,
309 309 )
310 310 coreconfigitem('experimental', 'bundle2-output-capture',
311 311 default=False,
312 312 )
313 313 coreconfigitem('experimental', 'bundle2.pushback',
314 314 default=False,
315 315 )
316 316 coreconfigitem('experimental', 'bundle2lazylocking',
317 317 default=False,
318 318 )
319 319 coreconfigitem('experimental', 'bundlecomplevel',
320 320 default=None,
321 321 )
322 322 coreconfigitem('experimental', 'changegroup3',
323 323 default=False,
324 324 )
325 325 coreconfigitem('experimental', 'clientcompressionengines',
326 326 default=list,
327 327 )
328 328 coreconfigitem('experimental', 'copytrace',
329 329 default='on',
330 330 )
331 331 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
332 332 default=100,
333 333 )
334 334 coreconfigitem('experimental', 'crecordtest',
335 335 default=None,
336 336 )
337 337 coreconfigitem('experimental', 'editortmpinhg',
338 338 default=False,
339 339 )
340 340 coreconfigitem('experimental', 'maxdeltachainspan',
341 341 default=-1,
342 342 )
343 343 coreconfigitem('experimental', 'mmapindexthreshold',
344 344 default=None,
345 345 )
346 346 coreconfigitem('experimental', 'nonnormalparanoidcheck',
347 347 default=False,
348 348 )
349 349 coreconfigitem('experimental', 'stabilization',
350 350 default=list,
351 351 alias=[('experimental', 'evolution')],
352 352 )
353 353 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
354 354 default=False,
355 355 alias=[('experimental', 'evolution.bundle-obsmarker')],
356 356 )
357 357 coreconfigitem('experimental', 'stabilization.track-operation',
358 358 default=True,
359 359 alias=[('experimental', 'evolution.track-operation')]
360 360 )
361 361 coreconfigitem('experimental', 'exportableenviron',
362 362 default=list,
363 363 )
364 364 coreconfigitem('experimental', 'extendedheader.index',
365 365 default=None,
366 366 )
367 367 coreconfigitem('experimental', 'extendedheader.similarity',
368 368 default=False,
369 369 )
370 370 coreconfigitem('experimental', 'format.compression',
371 371 default='zlib',
372 372 )
373 373 coreconfigitem('experimental', 'graphshorten',
374 374 default=False,
375 375 )
376 376 coreconfigitem('experimental', 'graphstyle.parent',
377 377 default=dynamicdefault,
378 378 )
379 379 coreconfigitem('experimental', 'graphstyle.missing',
380 380 default=dynamicdefault,
381 381 )
382 382 coreconfigitem('experimental', 'graphstyle.grandparent',
383 383 default=dynamicdefault,
384 384 )
385 385 coreconfigitem('experimental', 'hook-track-tags',
386 386 default=False,
387 387 )
388 388 coreconfigitem('experimental', 'httppostargs',
389 389 default=False,
390 390 )
391 391 coreconfigitem('experimental', 'manifestv2',
392 392 default=False,
393 393 )
394 394 coreconfigitem('experimental', 'mergedriver',
395 395 default=None,
396 396 )
397 397 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
398 398 default=False,
399 399 )
400 400 coreconfigitem('experimental', 'rebase.multidest',
401 401 default=False,
402 402 )
403 403 coreconfigitem('experimental', 'revertalternateinteractivemode',
404 404 default=True,
405 405 )
406 406 coreconfigitem('experimental', 'revlogv2',
407 407 default=None,
408 408 )
409 409 coreconfigitem('experimental', 'spacemovesdown',
410 410 default=False,
411 411 )
412 412 coreconfigitem('experimental', 'treemanifest',
413 413 default=False,
414 414 )
415 415 # Deprecated, remove after 4.4 release
416 416 coreconfigitem('experimental', 'updatecheck',
417 417 default=None,
418 418 )
419 419 coreconfigitem('extensions', '.*',
420 420 default=None,
421 421 generic=True,
422 422 )
423 coreconfigitem('extdata', '.*',
424 default=None,
425 generic=True,
426 )
423 427 coreconfigitem('format', 'aggressivemergedeltas',
424 428 default=False,
425 429 )
426 430 coreconfigitem('format', 'chunkcachesize',
427 431 default=None,
428 432 )
429 433 coreconfigitem('format', 'dotencode',
430 434 default=True,
431 435 )
432 436 coreconfigitem('format', 'generaldelta',
433 437 default=False,
434 438 )
435 439 coreconfigitem('format', 'manifestcachesize',
436 440 default=None,
437 441 )
438 442 coreconfigitem('format', 'maxchainlen',
439 443 default=None,
440 444 )
441 445 coreconfigitem('format', 'obsstore-version',
442 446 default=None,
443 447 )
444 448 coreconfigitem('format', 'usefncache',
445 449 default=True,
446 450 )
447 451 coreconfigitem('format', 'usegeneraldelta',
448 452 default=True,
449 453 )
450 454 coreconfigitem('format', 'usestore',
451 455 default=True,
452 456 )
453 457 coreconfigitem('hooks', '.*',
454 458 default=dynamicdefault,
455 459 generic=True,
456 460 )
457 461 coreconfigitem('hgweb-paths', '.*',
458 462 default=list,
459 463 generic=True,
460 464 )
461 465 coreconfigitem('hostfingerprints', '.*',
462 466 default=list,
463 467 generic=True,
464 468 )
465 469 coreconfigitem('hostsecurity', 'ciphers',
466 470 default=None,
467 471 )
468 472 coreconfigitem('hostsecurity', 'disabletls10warning',
469 473 default=False,
470 474 )
471 475 coreconfigitem('hostsecurity', 'minimumprotocol',
472 476 default=dynamicdefault,
473 477 )
474 478 coreconfigitem('http_proxy', 'always',
475 479 default=False,
476 480 )
477 481 coreconfigitem('http_proxy', 'host',
478 482 default=None,
479 483 )
480 484 coreconfigitem('http_proxy', 'no',
481 485 default=list,
482 486 )
483 487 coreconfigitem('http_proxy', 'passwd',
484 488 default=None,
485 489 )
486 490 coreconfigitem('http_proxy', 'user',
487 491 default=None,
488 492 )
489 493 coreconfigitem('logtoprocess', 'commandexception',
490 494 default=None,
491 495 )
492 496 coreconfigitem('logtoprocess', 'commandfinish',
493 497 default=None,
494 498 )
495 499 coreconfigitem('logtoprocess', 'command',
496 500 default=None,
497 501 )
498 502 coreconfigitem('logtoprocess', 'develwarn',
499 503 default=None,
500 504 )
501 505 coreconfigitem('logtoprocess', 'uiblocked',
502 506 default=None,
503 507 )
504 508 coreconfigitem('merge', 'checkunknown',
505 509 default='abort',
506 510 )
507 511 coreconfigitem('merge', 'checkignored',
508 512 default='abort',
509 513 )
510 514 coreconfigitem('merge', 'followcopies',
511 515 default=True,
512 516 )
513 517 coreconfigitem('merge', 'preferancestor',
514 518 default=lambda: ['*'],
515 519 )
516 520 coreconfigitem('pager', 'attend-.*',
517 521 default=dynamicdefault,
518 522 generic=True,
519 523 )
520 524 coreconfigitem('pager', 'ignore',
521 525 default=list,
522 526 )
523 527 coreconfigitem('pager', 'pager',
524 528 default=dynamicdefault,
525 529 )
526 530 coreconfigitem('patch', 'eol',
527 531 default='strict',
528 532 )
529 533 coreconfigitem('patch', 'fuzz',
530 534 default=2,
531 535 )
532 536 coreconfigitem('paths', 'default',
533 537 default=None,
534 538 )
535 539 coreconfigitem('paths', 'default-push',
536 540 default=None,
537 541 )
538 542 coreconfigitem('paths', '.*',
539 543 default=None,
540 544 generic=True,
541 545 )
542 546 coreconfigitem('phases', 'checksubrepos',
543 547 default='follow',
544 548 )
545 549 coreconfigitem('phases', 'new-commit',
546 550 default='draft',
547 551 )
548 552 coreconfigitem('phases', 'publish',
549 553 default=True,
550 554 )
551 555 coreconfigitem('profiling', 'enabled',
552 556 default=False,
553 557 )
554 558 coreconfigitem('profiling', 'format',
555 559 default='text',
556 560 )
557 561 coreconfigitem('profiling', 'freq',
558 562 default=1000,
559 563 )
560 564 coreconfigitem('profiling', 'limit',
561 565 default=30,
562 566 )
563 567 coreconfigitem('profiling', 'nested',
564 568 default=0,
565 569 )
566 570 coreconfigitem('profiling', 'output',
567 571 default=None,
568 572 )
569 573 coreconfigitem('profiling', 'showmax',
570 574 default=0.999,
571 575 )
572 576 coreconfigitem('profiling', 'showmin',
573 577 default=dynamicdefault,
574 578 )
575 579 coreconfigitem('profiling', 'sort',
576 580 default='inlinetime',
577 581 )
578 582 coreconfigitem('profiling', 'statformat',
579 583 default='hotpath',
580 584 )
581 585 coreconfigitem('profiling', 'type',
582 586 default='stat',
583 587 )
584 588 coreconfigitem('progress', 'assume-tty',
585 589 default=False,
586 590 )
587 591 coreconfigitem('progress', 'changedelay',
588 592 default=1,
589 593 )
590 594 coreconfigitem('progress', 'clear-complete',
591 595 default=True,
592 596 )
593 597 coreconfigitem('progress', 'debug',
594 598 default=False,
595 599 )
596 600 coreconfigitem('progress', 'delay',
597 601 default=3,
598 602 )
599 603 coreconfigitem('progress', 'disable',
600 604 default=False,
601 605 )
602 606 coreconfigitem('progress', 'estimateinterval',
603 607 default=60.0,
604 608 )
605 609 coreconfigitem('progress', 'format',
606 610 default=lambda: ['topic', 'bar', 'number', 'estimate'],
607 611 )
608 612 coreconfigitem('progress', 'refresh',
609 613 default=0.1,
610 614 )
611 615 coreconfigitem('progress', 'width',
612 616 default=dynamicdefault,
613 617 )
614 618 coreconfigitem('push', 'pushvars.server',
615 619 default=False,
616 620 )
617 621 coreconfigitem('server', 'bundle1',
618 622 default=True,
619 623 )
620 624 coreconfigitem('server', 'bundle1gd',
621 625 default=None,
622 626 )
623 627 coreconfigitem('server', 'bundle1.pull',
624 628 default=None,
625 629 )
626 630 coreconfigitem('server', 'bundle1gd.pull',
627 631 default=None,
628 632 )
629 633 coreconfigitem('server', 'bundle1.push',
630 634 default=None,
631 635 )
632 636 coreconfigitem('server', 'bundle1gd.push',
633 637 default=None,
634 638 )
635 639 coreconfigitem('server', 'compressionengines',
636 640 default=list,
637 641 )
638 642 coreconfigitem('server', 'concurrent-push-mode',
639 643 default='strict',
640 644 )
641 645 coreconfigitem('server', 'disablefullbundle',
642 646 default=False,
643 647 )
644 648 coreconfigitem('server', 'maxhttpheaderlen',
645 649 default=1024,
646 650 )
647 651 coreconfigitem('server', 'preferuncompressed',
648 652 default=False,
649 653 )
650 654 coreconfigitem('server', 'uncompressed',
651 655 default=True,
652 656 )
653 657 coreconfigitem('server', 'uncompressedallowsecret',
654 658 default=False,
655 659 )
656 660 coreconfigitem('server', 'validate',
657 661 default=False,
658 662 )
659 663 coreconfigitem('server', 'zliblevel',
660 664 default=-1,
661 665 )
662 666 coreconfigitem('smtp', 'host',
663 667 default=None,
664 668 )
665 669 coreconfigitem('smtp', 'local_hostname',
666 670 default=None,
667 671 )
668 672 coreconfigitem('smtp', 'password',
669 673 default=None,
670 674 )
671 675 coreconfigitem('smtp', 'port',
672 676 default=dynamicdefault,
673 677 )
674 678 coreconfigitem('smtp', 'tls',
675 679 default='none',
676 680 )
677 681 coreconfigitem('smtp', 'username',
678 682 default=None,
679 683 )
680 684 coreconfigitem('sparse', 'missingwarning',
681 685 default=True,
682 686 )
683 687 coreconfigitem('templates', '.*',
684 688 default=None,
685 689 generic=True,
686 690 )
687 691 coreconfigitem('trusted', 'groups',
688 692 default=list,
689 693 )
690 694 coreconfigitem('trusted', 'users',
691 695 default=list,
692 696 )
693 697 coreconfigitem('ui', '_usedassubrepo',
694 698 default=False,
695 699 )
696 700 coreconfigitem('ui', 'allowemptycommit',
697 701 default=False,
698 702 )
699 703 coreconfigitem('ui', 'archivemeta',
700 704 default=True,
701 705 )
702 706 coreconfigitem('ui', 'askusername',
703 707 default=False,
704 708 )
705 709 coreconfigitem('ui', 'clonebundlefallback',
706 710 default=False,
707 711 )
708 712 coreconfigitem('ui', 'clonebundleprefers',
709 713 default=list,
710 714 )
711 715 coreconfigitem('ui', 'clonebundles',
712 716 default=True,
713 717 )
714 718 coreconfigitem('ui', 'color',
715 719 default='auto',
716 720 )
717 721 coreconfigitem('ui', 'commitsubrepos',
718 722 default=False,
719 723 )
720 724 coreconfigitem('ui', 'debug',
721 725 default=False,
722 726 )
723 727 coreconfigitem('ui', 'debugger',
724 728 default=None,
725 729 )
726 730 coreconfigitem('ui', 'fallbackencoding',
727 731 default=None,
728 732 )
729 733 coreconfigitem('ui', 'forcecwd',
730 734 default=None,
731 735 )
732 736 coreconfigitem('ui', 'forcemerge',
733 737 default=None,
734 738 )
735 739 coreconfigitem('ui', 'formatdebug',
736 740 default=False,
737 741 )
738 742 coreconfigitem('ui', 'formatjson',
739 743 default=False,
740 744 )
741 745 coreconfigitem('ui', 'formatted',
742 746 default=None,
743 747 )
744 748 coreconfigitem('ui', 'graphnodetemplate',
745 749 default=None,
746 750 )
747 751 coreconfigitem('ui', 'http2debuglevel',
748 752 default=None,
749 753 )
750 754 coreconfigitem('ui', 'interactive',
751 755 default=None,
752 756 )
753 757 coreconfigitem('ui', 'interface',
754 758 default=None,
755 759 )
756 760 coreconfigitem('ui', 'interface.chunkselector',
757 761 default=None,
758 762 )
759 763 coreconfigitem('ui', 'logblockedtimes',
760 764 default=False,
761 765 )
762 766 coreconfigitem('ui', 'logtemplate',
763 767 default=None,
764 768 )
765 769 coreconfigitem('ui', 'merge',
766 770 default=None,
767 771 )
768 772 coreconfigitem('ui', 'mergemarkers',
769 773 default='basic',
770 774 )
771 775 coreconfigitem('ui', 'mergemarkertemplate',
772 776 default=('{node|short} '
773 777 '{ifeq(tags, "tip", "", '
774 778 'ifeq(tags, "", "", "{tags} "))}'
775 779 '{if(bookmarks, "{bookmarks} ")}'
776 780 '{ifeq(branch, "default", "", "{branch} ")}'
777 781 '- {author|user}: {desc|firstline}')
778 782 )
779 783 coreconfigitem('ui', 'nontty',
780 784 default=False,
781 785 )
782 786 coreconfigitem('ui', 'origbackuppath',
783 787 default=None,
784 788 )
785 789 coreconfigitem('ui', 'paginate',
786 790 default=True,
787 791 )
788 792 coreconfigitem('ui', 'patch',
789 793 default=None,
790 794 )
791 795 coreconfigitem('ui', 'portablefilenames',
792 796 default='warn',
793 797 )
794 798 coreconfigitem('ui', 'promptecho',
795 799 default=False,
796 800 )
797 801 coreconfigitem('ui', 'quiet',
798 802 default=False,
799 803 )
800 804 coreconfigitem('ui', 'quietbookmarkmove',
801 805 default=False,
802 806 )
803 807 coreconfigitem('ui', 'remotecmd',
804 808 default='hg',
805 809 )
806 810 coreconfigitem('ui', 'report_untrusted',
807 811 default=True,
808 812 )
809 813 coreconfigitem('ui', 'rollback',
810 814 default=True,
811 815 )
812 816 coreconfigitem('ui', 'slash',
813 817 default=False,
814 818 )
815 819 coreconfigitem('ui', 'ssh',
816 820 default='ssh',
817 821 )
818 822 coreconfigitem('ui', 'statuscopies',
819 823 default=False,
820 824 )
821 825 coreconfigitem('ui', 'strict',
822 826 default=False,
823 827 )
824 828 coreconfigitem('ui', 'style',
825 829 default='',
826 830 )
827 831 coreconfigitem('ui', 'supportcontact',
828 832 default=None,
829 833 )
830 834 coreconfigitem('ui', 'textwidth',
831 835 default=78,
832 836 )
833 837 coreconfigitem('ui', 'timeout',
834 838 default='600',
835 839 )
836 840 coreconfigitem('ui', 'traceback',
837 841 default=False,
838 842 )
839 843 coreconfigitem('ui', 'tweakdefaults',
840 844 default=False,
841 845 )
842 846 coreconfigitem('ui', 'usehttp2',
843 847 default=False,
844 848 )
845 849 coreconfigitem('ui', 'username',
846 850 alias=[('ui', 'user')]
847 851 )
848 852 coreconfigitem('ui', 'verbose',
849 853 default=False,
850 854 )
851 855 coreconfigitem('verify', 'skipflags',
852 856 default=None,
853 857 )
854 858 coreconfigitem('web', 'allowbz2',
855 859 default=False,
856 860 )
857 861 coreconfigitem('web', 'allowgz',
858 862 default=False,
859 863 )
860 864 coreconfigitem('web', 'allowpull',
861 865 default=True,
862 866 )
863 867 coreconfigitem('web', 'allow_push',
864 868 default=list,
865 869 )
866 870 coreconfigitem('web', 'allowzip',
867 871 default=False,
868 872 )
869 873 coreconfigitem('web', 'cache',
870 874 default=True,
871 875 )
872 876 coreconfigitem('web', 'contact',
873 877 default=None,
874 878 )
875 879 coreconfigitem('web', 'deny_push',
876 880 default=list,
877 881 )
878 882 coreconfigitem('web', 'guessmime',
879 883 default=False,
880 884 )
881 885 coreconfigitem('web', 'hidden',
882 886 default=False,
883 887 )
884 888 coreconfigitem('web', 'labels',
885 889 default=list,
886 890 )
887 891 coreconfigitem('web', 'logoimg',
888 892 default='hglogo.png',
889 893 )
890 894 coreconfigitem('web', 'logourl',
891 895 default='https://mercurial-scm.org/',
892 896 )
893 897 coreconfigitem('web', 'accesslog',
894 898 default='-',
895 899 )
896 900 coreconfigitem('web', 'address',
897 901 default='',
898 902 )
899 903 coreconfigitem('web', 'allow_archive',
900 904 default=list,
901 905 )
902 906 coreconfigitem('web', 'allow_read',
903 907 default=list,
904 908 )
905 909 coreconfigitem('web', 'baseurl',
906 910 default=None,
907 911 )
908 912 coreconfigitem('web', 'cacerts',
909 913 default=None,
910 914 )
911 915 coreconfigitem('web', 'certificate',
912 916 default=None,
913 917 )
914 918 coreconfigitem('web', 'collapse',
915 919 default=False,
916 920 )
917 921 coreconfigitem('web', 'csp',
918 922 default=None,
919 923 )
920 924 coreconfigitem('web', 'deny_read',
921 925 default=list,
922 926 )
923 927 coreconfigitem('web', 'descend',
924 928 default=True,
925 929 )
926 930 coreconfigitem('web', 'description',
927 931 default="",
928 932 )
929 933 coreconfigitem('web', 'encoding',
930 934 default=lambda: encoding.encoding,
931 935 )
932 936 coreconfigitem('web', 'errorlog',
933 937 default='-',
934 938 )
935 939 coreconfigitem('web', 'ipv6',
936 940 default=False,
937 941 )
938 942 coreconfigitem('web', 'maxchanges',
939 943 default=10,
940 944 )
941 945 coreconfigitem('web', 'maxfiles',
942 946 default=10,
943 947 )
944 948 coreconfigitem('web', 'maxshortchanges',
945 949 default=60,
946 950 )
947 951 coreconfigitem('web', 'motd',
948 952 default='',
949 953 )
950 954 coreconfigitem('web', 'name',
951 955 default=dynamicdefault,
952 956 )
953 957 coreconfigitem('web', 'port',
954 958 default=8000,
955 959 )
956 960 coreconfigitem('web', 'prefix',
957 961 default='',
958 962 )
959 963 coreconfigitem('web', 'push_ssl',
960 964 default=True,
961 965 )
962 966 coreconfigitem('web', 'refreshinterval',
963 967 default=20,
964 968 )
965 969 coreconfigitem('web', 'staticurl',
966 970 default=None,
967 971 )
968 972 coreconfigitem('web', 'stripes',
969 973 default=1,
970 974 )
971 975 coreconfigitem('web', 'style',
972 976 default='paper',
973 977 )
974 978 coreconfigitem('web', 'templates',
975 979 default=None,
976 980 )
977 981 coreconfigitem('web', 'view',
978 982 default='served',
979 983 )
980 984 coreconfigitem('worker', 'backgroundclose',
981 985 default=dynamicdefault,
982 986 )
983 987 # Windows defaults to a limit of 512 open files. A buffer of 128
984 988 # should give us enough headway.
985 989 coreconfigitem('worker', 'backgroundclosemaxqueue',
986 990 default=384,
987 991 )
988 992 coreconfigitem('worker', 'backgroundcloseminfilecount',
989 993 default=2048,
990 994 )
991 995 coreconfigitem('worker', 'backgroundclosethreadcount',
992 996 default=4,
993 997 )
994 998 coreconfigitem('worker', 'numcpus',
995 999 default=None,
996 1000 )
General Comments 0
You need to be logged in to leave comments. Login now