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