configitems.py
1521 lines
| 34.3 KiB
| text/x-python
|
PythonLexer
/ mercurial / configitems.py
r32983 | # configitems.py - centralized declaration of configuration option | |||
# | ||||
# Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net> | ||||
# | ||||
# This software may be used and distributed according to the terms of the | ||||
# GNU General Public License version 2 or any later version. | ||||
from __future__ import absolute_import | ||||
r33126 | import functools | |||
|
r34663 | import re | ||
r33126 | ||||
r32984 | from . import ( | |||
|
r34236 | encoding, | ||
r32984 | error, | |||
) | ||||
r33127 | def loadconfigtable(ui, extname, configtable): | |||
"""update config item known to the ui with the extension ones""" | ||||
|
r35826 | for section, items in sorted(configtable.items()): | ||
|
r34769 | knownitems = ui._knownconfig.setdefault(section, itemregister()) | ||
r33128 | knownkeys = set(knownitems) | |||
newkeys = set(items) | ||||
for key in sorted(knownkeys & newkeys): | ||||
msg = "extension '%s' overwrite config item '%s.%s'" | ||||
msg %= (extname, section, key) | ||||
ui.develwarn(msg, config='warn-config') | ||||
knownitems.update(items) | ||||
r33127 | ||||
r32983 | class configitem(object): | |||
"""represent a known config item | ||||
:section: the official config section where to find this item, | ||||
:name: the official name within the section, | ||||
:default: default value for this item, | ||||
|
r34663 | :alias: optional list of tuples as alternatives, | ||
:generic: this is a generic definition, match name using regular expression. | ||||
r32983 | """ | |||
|
r34663 | def __init__(self, section, name, default=None, alias=(), | ||
|
r43028 | generic=False, priority=0, experimental=False): | ||
r32983 | self.section = section | |||
self.name = name | ||||
self.default = default | ||||
|
r33329 | self.alias = list(alias) | ||
|
r34663 | self.generic = generic | ||
self.priority = priority | ||||
|
r43028 | self.experimental = experimental | ||
|
r34663 | self._re = None | ||
if generic: | ||||
self._re = re.compile(self.name) | ||||
class itemregister(dict): | ||||
"""A specialized dictionary that can handle wild-card selection""" | ||||
def __init__(self): | ||||
super(itemregister, self).__init__() | ||||
self._generics = set() | ||||
def update(self, other): | ||||
super(itemregister, self).update(other) | ||||
self._generics.update(other._generics) | ||||
def __setitem__(self, key, item): | ||||
super(itemregister, self).__setitem__(key, item) | ||||
if item.generic: | ||||
self._generics.add(item) | ||||
def get(self, key): | ||||
|
r34875 | baseitem = super(itemregister, self).get(key) | ||
if baseitem is not None and not baseitem.generic: | ||||
return baseitem | ||||
|
r34663 | |||
# search for a matching generic item | ||||
generics = sorted(self._generics, key=(lambda x: (x.priority, x.name))) | ||||
for item in generics: | ||||
|
r34876 | # we use 'match' instead of 'search' to make the matching simpler | ||
# for people unfamiliar with regular expression. Having the match | ||||
# rooted to the start of the string will produce less surprising | ||||
# result for user writing simple regex for sub-attribute. | ||||
# | ||||
# For example using "color\..*" match produces an unsurprising | ||||
# result, while using search could suddenly match apparently | ||||
# unrelated configuration that happens to contains "color." | ||||
# anywhere. This is a tradeoff where we favor requiring ".*" on | ||||
# some match to avoid the need to prefix most pattern with "^". | ||||
# The "^" seems more error prone. | ||||
|
r34663 | if item._re.match(key): | ||
return item | ||||
|
r34875 | return None | ||
r32984 | ||||
coreitems = {} | ||||
r33126 | def _register(configtable, *args, **kwargs): | |||
r32984 | item = configitem(*args, **kwargs) | |||
|
r34663 | section = configtable.setdefault(item.section, itemregister()) | ||
r32984 | if item.name in section: | |||
msg = "duplicated config item registration for '%s.%s'" | ||||
raise error.ProgrammingError(msg % (item.section, item.name)) | ||||
section[item.name] = item | ||||
r32986 | ||||
|
r33471 | # special value for case where the default is derived from other values | ||
dynamicdefault = object() | ||||
r32986 | # Registering actual config items | |||
r33126 | def getitemregister(configtable): | |||
|
r34918 | f = functools.partial(_register, configtable) | ||
# export pseudo enum as configitem.* | ||||
f.dynamicdefault = dynamicdefault | ||||
return f | ||||
r33126 | ||||
coreconfigitem = getitemregister(coreitems) | ||||
|
r41699 | def _registerdiffopts(section, configprefix=''): | ||
coreconfigitem(section, configprefix + 'nodates', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'showfunc', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'unified', | ||||
default=None, | ||||
) | ||||
coreconfigitem(section, configprefix + 'git', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'ignorews', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'ignorewsamount', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'ignoreblanklines', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'ignorewseol', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'nobinary', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'noprefix', | ||||
default=False, | ||||
) | ||||
coreconfigitem(section, configprefix + 'word-diff', | ||||
default=False, | ||||
) | ||||
|
r34664 | coreconfigitem('alias', '.*', | ||
|
r37152 | default=dynamicdefault, | ||
|
r34664 | generic=True, | ||
) | ||||
r33177 | coreconfigitem('auth', 'cookiefile', | |||
default=None, | ||||
) | ||||
|
r41699 | _registerdiffopts(section='annotate') | ||
r33178 | # bookmarks.pushing: internal hack for discovery | |||
coreconfigitem('bookmarks', 'pushing', | ||||
default=list, | ||||
) | ||||
r33179 | # bundle.mainreporoot: internal hack for bundlerepo | |||
coreconfigitem('bundle', 'mainreporoot', | ||||
default='', | ||||
) | ||||
|
r33499 | coreconfigitem('censor', 'policy', | ||
default='abort', | ||||
|
r43028 | experimental=True, | ||
|
r33499 | ) | ||
coreconfigitem('chgserver', 'idletimeout', | ||||
default=3600, | ||||
) | ||||
coreconfigitem('chgserver', 'skiphash', | ||||
default=False, | ||||
) | ||||
coreconfigitem('cmdserver', 'log', | ||||
default=None, | ||||
) | ||||
|
r40862 | coreconfigitem('cmdserver', 'max-log-files', | ||
default=7, | ||||
) | ||||
coreconfigitem('cmdserver', 'max-log-size', | ||||
default='1 MB', | ||||
) | ||||
|
r41035 | coreconfigitem('cmdserver', 'max-repo-cache', | ||
default=0, | ||||
|
r43028 | experimental=True, | ||
|
r41035 | ) | ||
|
r40625 | coreconfigitem('cmdserver', 'message-encodings', | ||
default=list, | ||||
|
r43028 | experimental=True, | ||
|
r40625 | ) | ||
|
r40862 | coreconfigitem('cmdserver', 'track-log', | ||
|
r41035 | default=lambda: ['chgserver', 'cmdserver', 'repocache'], | ||
|
r40862 | ) | ||
|
r34665 | coreconfigitem('color', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
r33176 | coreconfigitem('color', 'mode', | |||
default='auto', | ||||
) | ||||
|
r33472 | coreconfigitem('color', 'pagermode', | ||
default=dynamicdefault, | ||||
) | ||||
|
r41701 | _registerdiffopts(section='commands', configprefix='commit.interactive.') | ||
r42430 | coreconfigitem('commands', 'commit.post-status', | |||
default=False, | ||||
) | ||||
|
r38673 | coreconfigitem('commands', 'grep.all-files', | ||
|
r38674 | default=False, | ||
|
r43028 | experimental=True, | ||
|
r38673 | ) | ||
|
r38858 | coreconfigitem('commands', 'resolve.confirm', | ||
default=False, | ||||
) | ||||
|
r39430 | coreconfigitem('commands', 'resolve.explicit-re-merge', | ||
default=False, | ||||
) | ||||
|
r38893 | coreconfigitem('commands', 'resolve.mark-check', | ||
|
r38909 | default='none', | ||
|
r38893 | ) | ||
|
r41701 | _registerdiffopts(section='commands', configprefix='revert.interactive.') | ||
|
r34889 | coreconfigitem('commands', 'show.aliasprefix', | ||
default=list, | ||||
) | ||||
|
r33499 | coreconfigitem('commands', 'status.relative', | ||
default=False, | ||||
) | ||||
|
r33766 | coreconfigitem('commands', 'status.skipstates', | ||
default=[], | ||||
|
r43028 | experimental=True, | ||
|
r33766 | ) | ||
|
r38112 | coreconfigitem('commands', 'status.terse', | ||
default='', | ||||
) | ||||
|
r33766 | coreconfigitem('commands', 'status.verbose', | ||
default=False, | ||||
) | ||||
|
r34706 | coreconfigitem('commands', 'update.check', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('commands', 'update.requiredest', | ||
default=False, | ||||
) | ||||
|
r34666 | coreconfigitem('committemplate', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r38591 | coreconfigitem('convert', 'bzr.saverev', | ||
default=True, | ||||
) | ||||
|
r35141 | coreconfigitem('convert', 'cvsps.cache', | ||
default=True, | ||||
) | ||||
coreconfigitem('convert', 'cvsps.fuzz', | ||||
default=60, | ||||
) | ||||
coreconfigitem('convert', 'cvsps.logencoding', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'cvsps.mergefrom', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'cvsps.mergeto', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'git.committeractions', | ||||
default=lambda: ['messagedifferent'], | ||||
) | ||||
coreconfigitem('convert', 'git.extrakeys', | ||||
default=list, | ||||
) | ||||
coreconfigitem('convert', 'git.findcopiesharder', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'git.remoteprefix', | ||||
default='remote', | ||||
) | ||||
coreconfigitem('convert', 'git.renamelimit', | ||||
default=400, | ||||
) | ||||
coreconfigitem('convert', 'git.saverev', | ||||
default=True, | ||||
) | ||||
coreconfigitem('convert', 'git.similarity', | ||||
default=50, | ||||
) | ||||
coreconfigitem('convert', 'git.skipsubmodules', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'hg.clonebranches', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'hg.ignoreerrors', | ||||
default=False, | ||||
) | ||||
|
r42839 | coreconfigitem('convert', 'hg.preserve-hash', | ||
default=False, | ||||
) | ||||
|
r35141 | coreconfigitem('convert', 'hg.revs', | ||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'hg.saverev', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'hg.sourcename', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'hg.startrev', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'hg.tagsbranch', | ||||
default='default', | ||||
) | ||||
coreconfigitem('convert', 'hg.usebranchnames', | ||||
default=True, | ||||
) | ||||
coreconfigitem('convert', 'ignoreancestorcheck', | ||||
default=False, | ||||
|
r43028 | experimental=True, | ||
|
r35141 | ) | ||
coreconfigitem('convert', 'localtimezone', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'p4.encoding', | ||||
default=dynamicdefault, | ||||
) | ||||
coreconfigitem('convert', 'p4.startrev', | ||||
default=0, | ||||
) | ||||
coreconfigitem('convert', 'skiptags', | ||||
default=False, | ||||
) | ||||
coreconfigitem('convert', 'svn.debugsvnlog', | ||||
default=True, | ||||
) | ||||
coreconfigitem('convert', 'svn.trunk', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'svn.tags', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'svn.branches', | ||||
default=None, | ||||
) | ||||
coreconfigitem('convert', 'svn.startrev', | ||||
default=0, | ||||
) | ||||
|
r34482 | coreconfigitem('debug', 'dirstate.delaywrite', | ||
default=0, | ||||
) | ||||
|
r34667 | coreconfigitem('defaults', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
r33159 | coreconfigitem('devel', 'all-warnings', | |||
default=False, | ||||
) | ||||
r33160 | coreconfigitem('devel', 'bundle2.debug', | |||
default=False, | ||||
) | ||||
|
r40458 | coreconfigitem('devel', 'bundle.delta', | ||
default='', | ||||
) | ||||
|
r34526 | coreconfigitem('devel', 'cache-vfs', | ||
default=None, | ||||
) | ||||
r33161 | coreconfigitem('devel', 'check-locks', | |||
default=False, | ||||
) | ||||
r33162 | coreconfigitem('devel', 'check-relroot', | |||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('devel', 'default-date', | ||
default=None, | ||||
) | ||||
coreconfigitem('devel', 'deprec-warn', | ||||
default=False, | ||||
) | ||||
r33163 | coreconfigitem('devel', 'disableloaddefaultcerts', | |||
default=False, | ||||
) | ||||
|
r34735 | coreconfigitem('devel', 'warn-empty-changegroup', | ||
|
r34527 | default=False, | ||
) | ||||
r33181 | coreconfigitem('devel', 'legacy.exchange', | |||
default=list, | ||||
) | ||||
r33164 | coreconfigitem('devel', 'servercafile', | |||
default='', | ||||
) | ||||
r33165 | coreconfigitem('devel', 'serverexactprotocol', | |||
default='', | ||||
) | ||||
r33166 | coreconfigitem('devel', 'serverrequirecert', | |||
r33174 | default=False, | |||
r33166 | ) | |||
r33167 | coreconfigitem('devel', 'strip-obsmarkers', | |||
default=True, | ||||
) | ||||
|
r34524 | coreconfigitem('devel', 'warn-config', | ||
default=None, | ||||
) | ||||
|
r34525 | coreconfigitem('devel', 'warn-config-default', | ||
default=None, | ||||
) | ||||
|
r34576 | coreconfigitem('devel', 'user.obsmarker', | ||
default=None, | ||||
) | ||||
|
r34859 | coreconfigitem('devel', 'warn-config-unknown', | ||
default=None, | ||||
) | ||||
|
r40093 | coreconfigitem('devel', 'debug.copies', | ||
default=False, | ||||
) | ||||
|
r38750 | coreconfigitem('devel', 'debug.extensions', | ||
default=False, | ||||
) | ||||
|
r35716 | coreconfigitem('devel', 'debug.peer-request', | ||
default=False, | ||||
) | ||||
|
r42969 | coreconfigitem('devel', 'discovery.randomize', | ||
default=True, | ||||
) | ||||
|
r41699 | _registerdiffopts(section='diff') | ||
|
r34598 | coreconfigitem('email', 'bcc', | ||
default=None, | ||||
) | ||||
|
r34599 | coreconfigitem('email', 'cc', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('email', 'charsets', | ||
default=list, | ||||
) | ||||
|
r34480 | coreconfigitem('email', 'from', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('email', 'method', | ||
default='smtp', | ||||
) | ||||
|
r34600 | coreconfigitem('email', 'reply-to', | ||
default=None, | ||||
) | ||||
|
r34912 | coreconfigitem('email', 'to', | ||
default=None, | ||||
) | ||||
|
r34616 | coreconfigitem('experimental', 'archivemetatemplate', | ||
default=dynamicdefault, | ||||
) | ||||
r40803 | coreconfigitem('experimental', 'auto-publish', | |||
default='publish', | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'bundle-phases', | ||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'bundle2-advertise', | ||||
default=True, | ||||
) | ||||
coreconfigitem('experimental', 'bundle2-output-capture', | ||||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'bundle2.pushback', | ||||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'bundle2lazylocking', | ||||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'bundlecomplevel', | ||||
default=None, | ||||
) | ||||
|
r37787 | coreconfigitem('experimental', 'bundlecomplevel.bzip2', | ||
default=None, | ||||
) | ||||
coreconfigitem('experimental', 'bundlecomplevel.gzip', | ||||
default=None, | ||||
) | ||||
coreconfigitem('experimental', 'bundlecomplevel.none', | ||||
default=None, | ||||
) | ||||
coreconfigitem('experimental', 'bundlecomplevel.zstd', | ||||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'changegroup3', | ||
default=False, | ||||
) | ||||
|
r41961 | coreconfigitem('experimental', 'cleanup-as-archived', | ||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'clientcompressionengines', | ||
default=list, | ||||
) | ||||
|
r34079 | coreconfigitem('experimental', 'copytrace', | ||
default='on', | ||||
) | ||||
|
r34847 | coreconfigitem('experimental', 'copytrace.movecandidateslimit', | ||
default=100, | ||||
) | ||||
|
r34312 | coreconfigitem('experimental', 'copytrace.sourcecommitlimit', | ||
default=100, | ||||
) | ||||
|
r41922 | coreconfigitem('experimental', 'copies.read-from', | ||
default="filelog-only", | ||||
) | ||||
|
r42317 | coreconfigitem('experimental', 'copies.write-to', | ||
default='filelog-only', | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'crecordtest', | ||
default=None, | ||||
) | ||||
|
r35512 | coreconfigitem('experimental', 'directaccess', | ||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'directaccess.revnums', | ||||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'editortmpinhg', | ||
default=False, | ||||
) | ||||
|
r34864 | coreconfigitem('experimental', 'evolution', | ||
default=list, | ||||
) | ||||
|
r34873 | coreconfigitem('experimental', 'evolution.allowdivergence', | ||
default=False, | ||||
alias=[('experimental', 'allowdivergence')] | ||||
) | ||||
|
r34865 | coreconfigitem('experimental', 'evolution.allowunstable', | ||
default=None, | ||||
) | ||||
coreconfigitem('experimental', 'evolution.createmarkers', | ||||
default=None, | ||||
) | ||||
|
r34903 | coreconfigitem('experimental', 'evolution.effect-flags', | ||
|
r34962 | default=True, | ||
|
r34903 | alias=[('experimental', 'effect-flags')] | ||
) | ||||
|
r34865 | coreconfigitem('experimental', 'evolution.exchange', | ||
default=None, | ||||
) | ||||
|
r34864 | coreconfigitem('experimental', 'evolution.bundle-obsmarker', | ||
default=False, | ||||
) | ||||
|
r42500 | coreconfigitem('experimental', 'log.topo', | ||
default=False, | ||||
) | ||||
|
r35728 | coreconfigitem('experimental', 'evolution.report-instabilities', | ||
default=True, | ||||
) | ||||
|
r34864 | coreconfigitem('experimental', 'evolution.track-operation', | ||
default=True, | ||||
) | ||||
r42417 | # repo-level config to exclude a revset visibility | |||
# | ||||
# The target use case is to use `share` to expose different subset of the same | ||||
# repository, especially server side. See also `server.view`. | ||||
coreconfigitem('experimental', 'extra-filter-revs', | ||||
default=None, | ||||
) | ||||
|
r34520 | coreconfigitem('experimental', 'maxdeltachainspan', | ||
default=-1, | ||||
) | ||||
|
r37017 | coreconfigitem('experimental', 'mergetempdirprefix', | ||
default=None, | ||||
) | ||||
|
r41332 | coreconfigitem('experimental', 'mmapindexthreshold', | ||
default=None, | ||||
) | ||||
|
r40109 | coreconfigitem('experimental', 'narrow', | ||
default=False, | ||||
) | ||||
|
r34492 | coreconfigitem('experimental', 'nonnormalparanoidcheck', | ||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'exportableenviron', | ||
default=list, | ||||
) | ||||
coreconfigitem('experimental', 'extendedheader.index', | ||||
default=None, | ||||
) | ||||
coreconfigitem('experimental', 'extendedheader.similarity', | ||||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'graphshorten', | ||||
default=False, | ||||
) | ||||
|
r34528 | coreconfigitem('experimental', 'graphstyle.parent', | ||
default=dynamicdefault, | ||||
) | ||||
|
r34529 | coreconfigitem('experimental', 'graphstyle.missing', | ||
default=dynamicdefault, | ||||
) | ||||
|
r34530 | coreconfigitem('experimental', 'graphstyle.grandparent', | ||
default=dynamicdefault, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'hook-track-tags', | ||
default=False, | ||||
) | ||||
|
r37576 | coreconfigitem('experimental', 'httppeer.advertise-v2', | ||
default=False, | ||||
) | ||||
|
r40168 | coreconfigitem('experimental', 'httppeer.v2-encoder-order', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'httppostargs', | ||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'mergedriver', | ||||
default=None, | ||||
) | ||||
|
r38545 | coreconfigitem('experimental', 'nointerrupt', default=False) | ||
coreconfigitem('experimental', 'nointerrupt-interactiveonly', default=True) | ||||
|
r33499 | coreconfigitem('experimental', 'obsmarkers-exchange-debug', | ||
default=False, | ||||
) | ||||
|
r35236 | coreconfigitem('experimental', 'remotenames', | ||
default=False, | ||||
) | ||||
|
r38512 | coreconfigitem('experimental', 'removeemptydirs', | ||
default=True, | ||||
) | ||||
|
r42154 | coreconfigitem('experimental', 'revert.interactive.select-to-keep', | ||
default=False, | ||||
) | ||||
|
r38891 | coreconfigitem('experimental', 'revisions.prefixhexnode', | ||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('experimental', 'revlogv2', | ||
default=None, | ||||
) | ||||
|
r38878 | coreconfigitem('experimental', 'revisions.disambiguatewithin', | ||
default=None, | ||||
) | ||||
|
r40214 | coreconfigitem('experimental', 'server.filesdata.recommended-batch-size', | ||
default=50000, | ||||
) | ||||
|
r40208 | coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size', | ||
default=100000, | ||||
) | ||||
|
r40480 | coreconfigitem('experimental', 'server.stream-narrow-clones', | ||
|
r40374 | default=False, | ||
) | ||||
|
r35186 | coreconfigitem('experimental', 'single-head-per-branch', | ||
default=False, | ||||
) | ||||
|
r36233 | coreconfigitem('experimental', 'sshserver.support-v2', | ||
default=False, | ||||
) | ||||
|
r34825 | coreconfigitem('experimental', 'sparse-read', | ||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'sparse-read.density-threshold', | ||||
|
r38651 | default=0.50, | ||
|
r34825 | ) | ||
|
r34882 | coreconfigitem('experimental', 'sparse-read.min-gap-size', | ||
|
r38652 | default='65K', | ||
|
r34826 | ) | ||
|
r33499 | coreconfigitem('experimental', 'treemanifest', | ||
default=False, | ||||
) | ||||
|
r35744 | coreconfigitem('experimental', 'update.atomic-file', | ||
default=False, | ||||
) | ||||
|
r35994 | coreconfigitem('experimental', 'sshpeer.advertise-v2', | ||
default=False, | ||||
) | ||||
|
r37064 | coreconfigitem('experimental', 'web.apiserver', | ||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'web.api.http-v2', | ||||
default=False, | ||||
) | ||||
|
r37070 | coreconfigitem('experimental', 'web.api.debugreflect', | ||
default=False, | ||||
) | ||||
|
r38755 | coreconfigitem('experimental', 'worker.wdir-get-thread-safe', | ||
default=False, | ||||
) | ||||
|
r36694 | coreconfigitem('experimental', 'xdiff', | ||
default=False, | ||||
) | ||||
|
r34668 | coreconfigitem('extensions', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r34770 | coreconfigitem('extdata', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r42512 | coreconfigitem('format', 'bookmarks-in-store', | ||
default=False, | ||||
) | ||||
r33233 | coreconfigitem('format', 'chunkcachesize', | |||
default=None, | ||||
|
r43028 | experimental=True, | ||
r33233 | ) | |||
r33234 | coreconfigitem('format', 'dotencode', | |||
default=True, | ||||
) | ||||
r33235 | coreconfigitem('format', 'generaldelta', | |||
default=False, | ||||
|
r43028 | experimental=True, | ||
r33235 | ) | |||
r33236 | coreconfigitem('format', 'manifestcachesize', | |||
default=None, | ||||
|
r43028 | experimental=True, | ||
r33236 | ) | |||
r33237 | coreconfigitem('format', 'maxchainlen', | |||
|
r39542 | default=dynamicdefault, | ||
|
r43028 | experimental=True, | ||
r33237 | ) | |||
r33241 | coreconfigitem('format', 'obsstore-version', | |||
default=None, | ||||
) | ||||
|
r38739 | coreconfigitem('format', 'sparse-revlog', | ||
|
r40954 | default=True, | ||
|
r38739 | ) | ||
r42213 | coreconfigitem('format', 'revlog-compression', | |||
default='zlib', | ||||
alias=[('experimental', 'format.compression')] | ||||
) | ||||
r33242 | coreconfigitem('format', 'usefncache', | |||
default=True, | ||||
) | ||||
r33243 | coreconfigitem('format', 'usegeneraldelta', | |||
default=True, | ||||
) | ||||
r33244 | coreconfigitem('format', 'usestore', | |||
default=True, | ||||
) | ||||
|
r39334 | coreconfigitem('format', 'internal-phase', | ||
default=False, | ||||
|
r43028 | experimental=True, | ||
|
r39334 | ) | ||
|
r34886 | coreconfigitem('fsmonitor', 'warn_when_unused', | ||
default=True, | ||||
) | ||||
coreconfigitem('fsmonitor', 'warn_update_file_count', | ||||
default=50000, | ||||
) | ||||
|
r41679 | coreconfigitem('help', br'hidden-command\..*', | ||
|
r40448 | default=False, | ||
generic=True, | ||||
) | ||||
|
r41679 | coreconfigitem('help', br'hidden-topic\..*', | ||
|
r40449 | default=False, | ||
generic=True, | ||||
) | ||||
|
r34669 | coreconfigitem('hooks', '.*', | ||
default=dynamicdefault, | ||||
generic=True, | ||||
) | ||||
|
r34752 | coreconfigitem('hgweb-paths', '.*', | ||
default=list, | ||||
generic=True, | ||||
) | ||||
|
r34749 | coreconfigitem('hostfingerprints', '.*', | ||
default=list, | ||||
generic=True, | ||||
) | ||||
r33214 | coreconfigitem('hostsecurity', 'ciphers', | |||
default=None, | ||||
) | ||||
r33215 | coreconfigitem('hostsecurity', 'disabletls10warning', | |||
default=False, | ||||
) | ||||
|
r34748 | coreconfigitem('hostsecurity', 'minimumprotocol', | ||
default=dynamicdefault, | ||||
) | ||||
|
r34774 | coreconfigitem('hostsecurity', '.*:minimumprotocol$', | ||
default=dynamicdefault, | ||||
generic=True, | ||||
) | ||||
|
r34775 | coreconfigitem('hostsecurity', '.*:ciphers$', | ||
default=dynamicdefault, | ||||
generic=True, | ||||
) | ||||
|
r34776 | coreconfigitem('hostsecurity', '.*:fingerprints$', | ||
default=list, | ||||
generic=True, | ||||
) | ||||
|
r34777 | coreconfigitem('hostsecurity', '.*:verifycertsfile$', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r33499 | coreconfigitem('http_proxy', 'always', | ||
default=False, | ||||
) | ||||
coreconfigitem('http_proxy', 'host', | ||||
default=None, | ||||
) | ||||
coreconfigitem('http_proxy', 'no', | ||||
default=list, | ||||
) | ||||
coreconfigitem('http_proxy', 'passwd', | ||||
default=None, | ||||
) | ||||
coreconfigitem('http_proxy', 'user', | ||||
default=None, | ||||
) | ||||
|
r40079 | |||
coreconfigitem('http', 'timeout', | ||||
default=None, | ||||
) | ||||
|
r34593 | coreconfigitem('logtoprocess', 'commandexception', | ||
default=None, | ||||
) | ||||
|
r34594 | coreconfigitem('logtoprocess', 'commandfinish', | ||
default=None, | ||||
) | ||||
|
r34595 | coreconfigitem('logtoprocess', 'command', | ||
default=None, | ||||
) | ||||
|
r34596 | coreconfigitem('logtoprocess', 'develwarn', | ||
default=None, | ||||
) | ||||
|
r34597 | coreconfigitem('logtoprocess', 'uiblocked', | ||
default=None, | ||||
) | ||||
|
r34523 | coreconfigitem('merge', 'checkunknown', | ||
default='abort', | ||||
) | ||||
coreconfigitem('merge', 'checkignored', | ||||
default='abort', | ||||
) | ||||
|
r34942 | coreconfigitem('experimental', 'merge.checkpathconflicts', | ||
|
r34943 | default=False, | ||
|
r34942 | ) | ||
|
r33499 | coreconfigitem('merge', 'followcopies', | ||
default=True, | ||||
) | ||||
|
r34797 | coreconfigitem('merge', 'on-failure', | ||
default='continue', | ||||
) | ||||
|
r34481 | coreconfigitem('merge', 'preferancestor', | ||
default=lambda: ['*'], | ||||
|
r43028 | experimental=True, | ||
|
r34481 | ) | ||
|
r39161 | coreconfigitem('merge', 'strict-capability-check', | ||
default=False, | ||||
) | ||||
|
r34827 | coreconfigitem('merge-tools', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.args$', | ||
|
r34827 | default="$local $base $other", | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.binary$', | ||
|
r34827 | default=False, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.check$', | ||
|
r34827 | default=list, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.checkchanged$', | ||
|
r34827 | default=False, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.executable$', | ||
|
r34827 | default=dynamicdefault, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.fixeol$', | ||
|
r34827 | default=False, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.gui$', | ||
|
r34827 | default=False, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r35925 | coreconfigitem('merge-tools', br'.*\.mergemarkers$', | ||
default='basic', | ||||
generic=True, | ||||
priority=-1, | ||||
) | ||||
coreconfigitem('merge-tools', br'.*\.mergemarkertemplate$', | ||||
default=dynamicdefault, # take from ui.mergemarkertemplate | ||||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.priority$', | ||
|
r34827 | default=0, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.premerge$', | ||
|
r34827 | default=dynamicdefault, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34892 | coreconfigitem('merge-tools', br'.*\.symlink$', | ||
|
r34827 | default=False, | ||
generic=True, | ||||
priority=-1, | ||||
) | ||||
|
r34670 | coreconfigitem('pager', 'attend-.*', | ||
default=dynamicdefault, | ||||
generic=True, | ||||
) | ||||
|
r33499 | coreconfigitem('pager', 'ignore', | ||
default=list, | ||||
) | ||||
|
r34592 | coreconfigitem('pager', 'pager', | ||
default=dynamicdefault, | ||||
) | ||||
r33226 | coreconfigitem('patch', 'eol', | |||
default='strict', | ||||
) | ||||
r32988 | coreconfigitem('patch', 'fuzz', | |||
default=2, | ||||
) | ||||
|
r33499 | coreconfigitem('paths', 'default', | ||
default=None, | ||||
) | ||||
coreconfigitem('paths', 'default-push', | ||||
default=None, | ||||
) | ||||
|
r34671 | coreconfigitem('paths', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r33499 | coreconfigitem('phases', 'checksubrepos', | ||
default='follow', | ||||
) | ||||
|
r34478 | coreconfigitem('phases', 'new-commit', | ||
|
r34564 | default='draft', | ||
|
r34478 | ) | ||
|
r33499 | coreconfigitem('phases', 'publish', | ||
default=True, | ||||
) | ||||
coreconfigitem('profiling', 'enabled', | ||||
default=False, | ||||
) | ||||
coreconfigitem('profiling', 'format', | ||||
default='text', | ||||
) | ||||
coreconfigitem('profiling', 'freq', | ||||
default=1000, | ||||
) | ||||
coreconfigitem('profiling', 'limit', | ||||
default=30, | ||||
) | ||||
coreconfigitem('profiling', 'nested', | ||||
default=0, | ||||
) | ||||
|
r34410 | coreconfigitem('profiling', 'output', | ||
default=None, | ||||
) | ||||
|
r34411 | coreconfigitem('profiling', 'showmax', | ||
default=0.999, | ||||
) | ||||
|
r34412 | coreconfigitem('profiling', 'showmin', | ||
default=dynamicdefault, | ||||
) | ||||
|
r42615 | coreconfigitem('profiling', 'showtime', | ||
default=True, | ||||
) | ||||
|
r33499 | coreconfigitem('profiling', 'sort', | ||
default='inlinetime', | ||||
) | ||||
coreconfigitem('profiling', 'statformat', | ||||
default='hotpath', | ||||
) | ||||
|
r38279 | coreconfigitem('profiling', 'time-track', | ||
|
r40469 | default=dynamicdefault, | ||
|
r38279 | ) | ||
|
r34413 | coreconfigitem('profiling', 'type', | ||
default='stat', | ||||
) | ||||
r33245 | coreconfigitem('progress', 'assume-tty', | |||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('progress', 'changedelay', | ||
default=1, | ||||
) | ||||
r33246 | coreconfigitem('progress', 'clear-complete', | |||
default=True, | ||||
) | ||||
|
r33499 | coreconfigitem('progress', 'debug', | ||
default=False, | ||||
) | ||||
coreconfigitem('progress', 'delay', | ||||
default=3, | ||||
) | ||||
coreconfigitem('progress', 'disable', | ||||
default=False, | ||||
) | ||||
|
r34315 | coreconfigitem('progress', 'estimateinterval', | ||
default=60.0, | ||||
) | ||||
|
r34747 | coreconfigitem('progress', 'format', | ||
default=lambda: ['topic', 'bar', 'number', 'estimate'], | ||||
) | ||||
|
r33499 | coreconfigitem('progress', 'refresh', | ||
default=0.1, | ||||
) | ||||
|
r33473 | coreconfigitem('progress', 'width', | ||
default=dynamicdefault, | ||||
) | ||||
|
r33834 | coreconfigitem('push', 'pushvars.server', | ||
default=False, | ||||
) | ||||
|
r41242 | coreconfigitem('rewrite', 'backup-bundle', | ||
default=True, | ||||
alias=[('ui', 'history-editing-backup')], | ||||
) | ||||
|
r41155 | coreconfigitem('rewrite', 'update-timestamp', | ||
default=False, | ||||
) | ||||
|
r40032 | coreconfigitem('storage', 'new-repo-backend', | ||
default='revlogv1', | ||||
|
r43028 | experimental=True, | ||
|
r40032 | ) | ||
|
r38767 | coreconfigitem('storage', 'revlog.optimize-delta-parent-choice', | ||
|
r38760 | default=True, | ||
|
r38764 | alias=[('format', 'aggressivemergedeltas')], | ||
|
r38760 | ) | ||
r41985 | coreconfigitem('storage', 'revlog.reuse-external-delta', | |||
default=True, | ||||
) | ||||
r41984 | coreconfigitem('storage', 'revlog.reuse-external-delta-parent', | |||
default=None, | ||||
) | ||||
r42210 | coreconfigitem('storage', 'revlog.zlib.level', | |||
default=None, | ||||
) | ||||
r42211 | coreconfigitem('storage', 'revlog.zstd.level', | |||
default=None, | ||||
) | ||||
|
r35262 | coreconfigitem('server', 'bookmarks-pushkey-compat', | ||
default=True, | ||||
) | ||||
r33216 | coreconfigitem('server', 'bundle1', | |||
default=True, | ||||
) | ||||
r33217 | coreconfigitem('server', 'bundle1gd', | |||
default=None, | ||||
) | ||||
|
r34614 | coreconfigitem('server', 'bundle1.pull', | ||
default=None, | ||||
) | ||||
coreconfigitem('server', 'bundle1gd.pull', | ||||
default=None, | ||||
) | ||||
coreconfigitem('server', 'bundle1.push', | ||||
default=None, | ||||
) | ||||
coreconfigitem('server', 'bundle1gd.push', | ||||
default=None, | ||||
) | ||||
r39757 | coreconfigitem('server', 'bundle2.stream', | |||
r39758 | default=True, | |||
r39757 | alias=[('experimental', 'bundle2.stream')] | |||
) | ||||
r33218 | coreconfigitem('server', 'compressionengines', | |||
default=list, | ||||
) | ||||
r33219 | coreconfigitem('server', 'concurrent-push-mode', | |||
default='strict', | ||||
) | ||||
r33220 | coreconfigitem('server', 'disablefullbundle', | |||
default=False, | ||||
) | ||||
|
r38435 | coreconfigitem('server', 'maxhttpheaderlen', | ||
default=1024, | ||||
|
r37432 | ) | ||
|
r37516 | coreconfigitem('server', 'pullbundle', | ||
default=False, | ||||
) | ||||
|
r38435 | coreconfigitem('server', 'preferuncompressed', | ||
default=False, | ||||
r33221 | ) | |||
|
r38435 | coreconfigitem('server', 'streamunbundle', | ||
r33222 | default=False, | |||
) | ||||
|
r33499 | coreconfigitem('server', 'uncompressed', | ||
default=True, | ||||
) | ||||
r33223 | coreconfigitem('server', 'uncompressedallowsecret', | |||
default=False, | ||||
) | ||||
|
r42006 | coreconfigitem('server', 'view', | ||
default='served', | ||||
) | ||||
r33224 | coreconfigitem('server', 'validate', | |||
default=False, | ||||
) | ||||
r33225 | coreconfigitem('server', 'zliblevel', | |||
default=-1, | ||||
) | ||||
|
r37728 | coreconfigitem('server', 'zstdlevel', | ||
default=3, | ||||
) | ||||
|
r34983 | coreconfigitem('share', 'pool', | ||
default=None, | ||||
) | ||||
coreconfigitem('share', 'poolnaming', | ||||
default='identity', | ||||
) | ||||
|
r42744 | coreconfigitem('shelve','maxbackups', | ||
default=10, | ||||
) | ||||
|
r33499 | coreconfigitem('smtp', 'host', | ||
default=None, | ||||
) | ||||
coreconfigitem('smtp', 'local_hostname', | ||||
default=None, | ||||
) | ||||
coreconfigitem('smtp', 'password', | ||||
default=None, | ||||
) | ||||
|
r34479 | coreconfigitem('smtp', 'port', | ||
default=dynamicdefault, | ||||
) | ||||
|
r33499 | coreconfigitem('smtp', 'tls', | ||
default='none', | ||||
) | ||||
coreconfigitem('smtp', 'username', | ||||
default=None, | ||||
) | ||||
coreconfigitem('sparse', 'missingwarning', | ||||
default=True, | ||||
|
r43028 | experimental=True, | ||
|
r33499 | ) | ||
|
r34986 | coreconfigitem('subrepos', 'allowed', | ||
default=dynamicdefault, # to make backporting simpler | ||||
) | ||||
|
r34990 | coreconfigitem('subrepos', 'hg:allowed', | ||
default=dynamicdefault, | ||||
) | ||||
coreconfigitem('subrepos', 'git:allowed', | ||||
default=dynamicdefault, | ||||
) | ||||
coreconfigitem('subrepos', 'svn:allowed', | ||||
default=dynamicdefault, | ||||
) | ||||
|
r34672 | coreconfigitem('templates', '.*', | ||
default=None, | ||||
generic=True, | ||||
) | ||||
|
r41869 | coreconfigitem('templateconfig', '.*', | ||
default=dynamicdefault, | ||||
generic=True, | ||||
) | ||||
|
r33499 | coreconfigitem('trusted', 'groups', | ||
default=list, | ||||
) | ||||
coreconfigitem('trusted', 'users', | ||||
default=list, | ||||
) | ||||
coreconfigitem('ui', '_usedassubrepo', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'allowemptycommit', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'archivemeta', | ||||
default=True, | ||||
) | ||||
coreconfigitem('ui', 'askusername', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'clonebundlefallback', | ||||
default=False, | ||||
) | ||||
r32989 | coreconfigitem('ui', 'clonebundleprefers', | |||
r33151 | default=list, | |||
r32989 | ) | |||
|
r33499 | coreconfigitem('ui', 'clonebundles', | ||
default=True, | ||||
) | ||||
|
r33522 | coreconfigitem('ui', 'color', | ||
default='auto', | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'commitsubrepos', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'debug', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'debugger', | ||||
default=None, | ||||
) | ||||
|
r34917 | coreconfigitem('ui', 'editor', | ||
default=dynamicdefault, | ||||
) | ||||
|
r33519 | coreconfigitem('ui', 'fallbackencoding', | ||
default=None, | ||||
) | ||||
|
r33520 | coreconfigitem('ui', 'forcecwd', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'forcemerge', | ||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'formatdebug', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'formatjson', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'formatted', | ||||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'graphnodetemplate', | ||||
default=None, | ||||
) | ||||
r33061 | coreconfigitem('ui', 'interactive', | |||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'interface', | ||
default=None, | ||||
) | ||||
|
r34617 | coreconfigitem('ui', 'interface.chunkselector', | ||
default=None, | ||||
) | ||||
|
r38619 | coreconfigitem('ui', 'large-file-limit', | ||
default=10000000, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'logblockedtimes', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'logtemplate', | ||||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'merge', | ||||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'mergemarkers', | ||||
default='basic', | ||||
) | ||||
|
r33523 | coreconfigitem('ui', 'mergemarkertemplate', | ||
default=('{node|short} ' | ||||
'{ifeq(tags, "tip", "", ' | ||||
'ifeq(tags, "", "", "{tags} "))}' | ||||
'{if(bookmarks, "{bookmarks} ")}' | ||||
'{ifeq(branch, "default", "", "{branch} ")}' | ||||
'- {author|user}: {desc|firstline}') | ||||
) | ||||
|
r40580 | coreconfigitem('ui', 'message-output', | ||
default='stdio', | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'nontty', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'origbackuppath', | ||||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'paginate', | ||||
default=True, | ||||
) | ||||
coreconfigitem('ui', 'patch', | ||||
default=None, | ||||
) | ||||
|
r40512 | coreconfigitem('ui', 'pre-merge-tool-output-template', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'portablefilenames', | ||
default='warn', | ||||
) | ||||
coreconfigitem('ui', 'promptecho', | ||||
default=False, | ||||
) | ||||
r32986 | coreconfigitem('ui', 'quiet', | |||
default=False, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'quietbookmarkmove', | ||
default=False, | ||||
) | ||||
|
r41633 | coreconfigitem('ui', 'relative-paths', | ||
|
r41716 | default='legacy', | ||
|
r41633 | ) | ||
|
r33499 | coreconfigitem('ui', 'remotecmd', | ||
default='hg', | ||||
) | ||||
coreconfigitem('ui', 'report_untrusted', | ||||
default=True, | ||||
) | ||||
coreconfigitem('ui', 'rollback', | ||||
default=True, | ||||
) | ||||
|
r38157 | coreconfigitem('ui', 'signal-safe-lock', | ||
default=True, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'slash', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'ssh', | ||||
default='ssh', | ||||
) | ||||
|
r35107 | coreconfigitem('ui', 'ssherrorhint', | ||
default=None, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'statuscopies', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'strict', | ||||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'style', | ||||
default='', | ||||
) | ||||
coreconfigitem('ui', 'supportcontact', | ||||
default=None, | ||||
) | ||||
coreconfigitem('ui', 'textwidth', | ||||
default=78, | ||||
) | ||||
coreconfigitem('ui', 'timeout', | ||||
default='600', | ||||
) | ||||
|
r35210 | coreconfigitem('ui', 'timeout.warn', | ||
default=0, | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'traceback', | ||
default=False, | ||||
) | ||||
coreconfigitem('ui', 'tweakdefaults', | ||||
default=False, | ||||
) | ||||
|
r33329 | coreconfigitem('ui', 'username', | ||
alias=[('ui', 'user')] | ||||
) | ||||
|
r33499 | coreconfigitem('ui', 'verbose', | ||
default=False, | ||||
) | ||||
coreconfigitem('verify', 'skipflags', | ||||
default=None, | ||||
) | ||||
|
r34601 | coreconfigitem('web', 'allowbz2', | ||
|
r34654 | default=False, | ||
|
r34601 | ) | ||
|
r34602 | coreconfigitem('web', 'allowgz', | ||
|
r34654 | default=False, | ||
|
r34602 | ) | ||
|
r35028 | coreconfigitem('web', 'allow-pull', | ||
alias=[('web', 'allowpull')], | ||||
|
r34603 | default=True, | ||
) | ||||
|
r35029 | coreconfigitem('web', 'allow-push', | ||
alias=[('web', 'allow_push')], | ||||
|
r34604 | default=list, | ||
) | ||||
|
r34605 | coreconfigitem('web', 'allowzip', | ||
|
r34654 | default=False, | ||
|
r34605 | ) | ||
|
r34829 | coreconfigitem('web', 'archivesubrepos', | ||
default=False, | ||||
) | ||||
|
r34606 | coreconfigitem('web', 'cache', | ||
default=True, | ||||
) | ||||
|
r40910 | coreconfigitem('web', 'comparisoncontext', | ||
default=5, | ||||
) | ||||
|
r34607 | coreconfigitem('web', 'contact', | ||
default=None, | ||||
) | ||||
|
r34608 | coreconfigitem('web', 'deny_push', | ||
default=list, | ||||
) | ||||
|
r34609 | coreconfigitem('web', 'guessmime', | ||
default=False, | ||||
) | ||||
|
r34610 | coreconfigitem('web', 'hidden', | ||
|
r34654 | default=False, | ||
|
r34610 | ) | ||
|
r34611 | coreconfigitem('web', 'labels', | ||
default=list, | ||||
) | ||||
|
r34612 | coreconfigitem('web', 'logoimg', | ||
default='hglogo.png', | ||||
) | ||||
|
r34613 | coreconfigitem('web', 'logourl', | ||
default='https://mercurial-scm.org/', | ||||
) | ||||
|
r34224 | coreconfigitem('web', 'accesslog', | ||
default='-', | ||||
) | ||||
|
r34225 | coreconfigitem('web', 'address', | ||
default='', | ||||
) | ||||
|
r38215 | coreconfigitem('web', 'allow-archive', | ||
alias=[('web', 'allow_archive')], | ||||
|
r34226 | default=list, | ||
) | ||||
|
r34227 | coreconfigitem('web', 'allow_read', | ||
default=list, | ||||
) | ||||
|
r34228 | coreconfigitem('web', 'baseurl', | ||
default=None, | ||||
) | ||||
|
r34229 | coreconfigitem('web', 'cacerts', | ||
default=None, | ||||
) | ||||
|
r34230 | coreconfigitem('web', 'certificate', | ||
default=None, | ||||
) | ||||
|
r34231 | coreconfigitem('web', 'collapse', | ||
default=False, | ||||
) | ||||
|
r34232 | coreconfigitem('web', 'csp', | ||
default=None, | ||||
) | ||||
|
r34233 | coreconfigitem('web', 'deny_read', | ||
default=list, | ||||
) | ||||
|
r34234 | coreconfigitem('web', 'descend', | ||
default=True, | ||||
) | ||||
|
r34235 | coreconfigitem('web', 'description', | ||
default="", | ||||
) | ||||
|
r34236 | coreconfigitem('web', 'encoding', | ||
default=lambda: encoding.encoding, | ||||
) | ||||
|
r34237 | coreconfigitem('web', 'errorlog', | ||
default='-', | ||||
) | ||||
|
r34238 | coreconfigitem('web', 'ipv6', | ||
default=False, | ||||
) | ||||
|
r34591 | coreconfigitem('web', 'maxchanges', | ||
default=10, | ||||
) | ||||
|
r34590 | coreconfigitem('web', 'maxfiles', | ||
default=10, | ||||
) | ||||
|
r34589 | coreconfigitem('web', 'maxshortchanges', | ||
default=60, | ||||
) | ||||
|
r34588 | coreconfigitem('web', 'motd', | ||
default='', | ||||
) | ||||
|
r34587 | coreconfigitem('web', 'name', | ||
default=dynamicdefault, | ||||
) | ||||
|
r34239 | coreconfigitem('web', 'port', | ||
default=8000, | ||||
) | ||||
|
r34240 | coreconfigitem('web', 'prefix', | ||
default='', | ||||
) | ||||
|
r34586 | coreconfigitem('web', 'push_ssl', | ||
default=True, | ||||
) | ||||
|
r34241 | coreconfigitem('web', 'refreshinterval', | ||
default=20, | ||||
) | ||||
|
r37027 | coreconfigitem('web', 'server-header', | ||
default=None, | ||||
) | ||||
|
r39829 | coreconfigitem('web', 'static', | ||
default=None, | ||||
) | ||||
|
r34760 | coreconfigitem('web', 'staticurl', | ||
default=None, | ||||
) | ||||
|
r34242 | coreconfigitem('web', 'stripes', | ||
default=1, | ||||
) | ||||
|
r34243 | coreconfigitem('web', 'style', | ||
default='paper', | ||||
) | ||||
|
r34244 | coreconfigitem('web', 'templates', | ||
default=None, | ||||
) | ||||
|
r34585 | coreconfigitem('web', 'view', | ||
default='served', | ||||
|
r43028 | experimental=True, | ||
|
r34585 | ) | ||
|
r33474 | coreconfigitem('worker', 'backgroundclose', | ||
default=dynamicdefault, | ||||
) | ||||
r33231 | # Windows defaults to a limit of 512 open files. A buffer of 128 | |||
# should give us enough headway. | ||||
r33227 | coreconfigitem('worker', 'backgroundclosemaxqueue', | |||
default=384, | ||||
) | ||||
r33228 | coreconfigitem('worker', 'backgroundcloseminfilecount', | |||
default=2048, | ||||
) | ||||
r33229 | coreconfigitem('worker', 'backgroundclosethreadcount', | |||
default=4, | ||||
) | ||||
|
r35447 | coreconfigitem('worker', 'enabled', | ||
default=True, | ||||
) | ||||
r33230 | coreconfigitem('worker', 'numcpus', | |||
default=None, | ||||
) | ||||
|
r34832 | |||
# Rebase related configuration moved to core because other extension are doing | ||||
# strange things. For example, shelve import the extensions to reuse some bit | ||||
# without formally loading it. | ||||
coreconfigitem('commands', 'rebase.requiredest', | ||||
default=False, | ||||
) | ||||
coreconfigitem('experimental', 'rebaseskipobsolete', | ||||
default=True, | ||||
) | ||||
coreconfigitem('rebase', 'singletransaction', | ||||
default=False, | ||||
) | ||||
|
r35389 | coreconfigitem('rebase', 'experimental.inmemory', | ||
default=False, | ||||
) | ||||