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