Show More
@@ -241,15 +241,19 b' try:' | |||||
241 | configitem = mercurial.registrar.configitem(configtable) |
|
241 | configitem = mercurial.registrar.configitem(configtable) | |
242 | configitem(b'perf', b'presleep', |
|
242 | configitem(b'perf', b'presleep', | |
243 | default=mercurial.configitems.dynamicdefault, |
|
243 | default=mercurial.configitems.dynamicdefault, | |
|
244 | experimental=True, | |||
244 | ) |
|
245 | ) | |
245 | configitem(b'perf', b'stub', |
|
246 | configitem(b'perf', b'stub', | |
246 | default=mercurial.configitems.dynamicdefault, |
|
247 | default=mercurial.configitems.dynamicdefault, | |
|
248 | experimental=True, | |||
247 | ) |
|
249 | ) | |
248 | configitem(b'perf', b'parentscount', |
|
250 | configitem(b'perf', b'parentscount', | |
249 | default=mercurial.configitems.dynamicdefault, |
|
251 | default=mercurial.configitems.dynamicdefault, | |
|
252 | experimental=True, | |||
250 | ) |
|
253 | ) | |
251 | configitem(b'perf', b'all-timing', |
|
254 | configitem(b'perf', b'all-timing', | |
252 | default=mercurial.configitems.dynamicdefault, |
|
255 | default=mercurial.configitems.dynamicdefault, | |
|
256 | experimental=True, | |||
253 | ) |
|
257 | ) | |
254 | configitem(b'perf', b'pre-run', |
|
258 | configitem(b'perf', b'pre-run', | |
255 | default=mercurial.configitems.dynamicdefault, |
|
259 | default=mercurial.configitems.dynamicdefault, | |
@@ -259,6 +263,7 b' try:' | |||||
259 | ) |
|
263 | ) | |
260 | configitem(b'perf', b'run-limits', |
|
264 | configitem(b'perf', b'run-limits', | |
261 | default=mercurial.configitems.dynamicdefault, |
|
265 | default=mercurial.configitems.dynamicdefault, | |
|
266 | experimental=True, | |||
262 | ) |
|
267 | ) | |
263 | except (ImportError, AttributeError): |
|
268 | except (ImportError, AttributeError): | |
264 | pass |
|
269 | pass |
@@ -167,6 +167,7 b" configitem('fsmonitor', 'watchman_exe'," | |||||
167 | ) |
|
167 | ) | |
168 | configitem('fsmonitor', 'verbose', |
|
168 | configitem('fsmonitor', 'verbose', | |
169 | default=True, |
|
169 | default=True, | |
|
170 | experimental=True, | |||
170 | ) |
|
171 | ) | |
171 | configitem('experimental', 'fsmonitor.transaction_notify', |
|
172 | configitem('experimental', 'fsmonitor.transaction_notify', | |
172 | default=False, |
|
173 | default=False, |
@@ -219,7 +219,7 b" configitem('remotefilelog', 'excludepatt" | |||||
219 |
|
219 | |||
220 | configitem('remotefilelog', 'gcrepack', default=False) |
|
220 | configitem('remotefilelog', 'gcrepack', default=False) | |
221 | configitem('remotefilelog', 'repackonhggc', default=False) |
|
221 | configitem('remotefilelog', 'repackonhggc', default=False) | |
222 | configitem('repack', 'chainorphansbysize', default=True) |
|
222 | configitem('repack', 'chainorphansbysize', default=True, experimental=True) | |
223 |
|
223 | |||
224 | configitem('packs', 'maxpacksize', default=0) |
|
224 | configitem('packs', 'maxpacksize', default=0) | |
225 | configitem('packs', 'maxchainlen', default=1000) |
|
225 | configitem('packs', 'maxchainlen', default=1000) |
@@ -90,7 +90,8 b' configitem = registrar.configitem(config' | |||||
90 |
|
90 | |||
91 | # experimental config: storage.sqlite.compression |
|
91 | # experimental config: storage.sqlite.compression | |
92 | configitem('storage', 'sqlite.compression', |
|
92 | configitem('storage', 'sqlite.compression', | |
93 |
default='zstd' if zstd else 'zlib' |
|
93 | default='zstd' if zstd else 'zlib', | |
|
94 | experimental=True) | |||
94 |
|
95 | |||
95 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
96 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | |
96 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
97 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
@@ -39,13 +39,14 b' class configitem(object):' | |||||
39 | """ |
|
39 | """ | |
40 |
|
40 | |||
41 | def __init__(self, section, name, default=None, alias=(), |
|
41 | def __init__(self, section, name, default=None, alias=(), | |
42 | generic=False, priority=0): |
|
42 | generic=False, priority=0, experimental=False): | |
43 | self.section = section |
|
43 | self.section = section | |
44 | self.name = name |
|
44 | self.name = name | |
45 | self.default = default |
|
45 | self.default = default | |
46 | self.alias = list(alias) |
|
46 | self.alias = list(alias) | |
47 | self.generic = generic |
|
47 | self.generic = generic | |
48 | self.priority = priority |
|
48 | self.priority = priority | |
|
49 | self.experimental = experimental | |||
49 | self._re = None |
|
50 | self._re = None | |
50 | if generic: |
|
51 | if generic: | |
51 | self._re = re.compile(self.name) |
|
52 | self._re = re.compile(self.name) | |
@@ -166,6 +167,7 b" coreconfigitem('bundle', 'mainreporoot'," | |||||
166 | ) |
|
167 | ) | |
167 | coreconfigitem('censor', 'policy', |
|
168 | coreconfigitem('censor', 'policy', | |
168 | default='abort', |
|
169 | default='abort', | |
|
170 | experimental=True, | |||
169 | ) |
|
171 | ) | |
170 | coreconfigitem('chgserver', 'idletimeout', |
|
172 | coreconfigitem('chgserver', 'idletimeout', | |
171 | default=3600, |
|
173 | default=3600, | |
@@ -184,9 +186,11 b" coreconfigitem('cmdserver', 'max-log-siz" | |||||
184 | ) |
|
186 | ) | |
185 | coreconfigitem('cmdserver', 'max-repo-cache', |
|
187 | coreconfigitem('cmdserver', 'max-repo-cache', | |
186 | default=0, |
|
188 | default=0, | |
|
189 | experimental=True, | |||
187 | ) |
|
190 | ) | |
188 | coreconfigitem('cmdserver', 'message-encodings', |
|
191 | coreconfigitem('cmdserver', 'message-encodings', | |
189 | default=list, |
|
192 | default=list, | |
|
193 | experimental=True, | |||
190 | ) |
|
194 | ) | |
191 | coreconfigitem('cmdserver', 'track-log', |
|
195 | coreconfigitem('cmdserver', 'track-log', | |
192 | default=lambda: ['chgserver', 'cmdserver', 'repocache'], |
|
196 | default=lambda: ['chgserver', 'cmdserver', 'repocache'], | |
@@ -207,6 +211,7 b" coreconfigitem('commands', 'commit.post-" | |||||
207 | ) |
|
211 | ) | |
208 | coreconfigitem('commands', 'grep.all-files', |
|
212 | coreconfigitem('commands', 'grep.all-files', | |
209 | default=False, |
|
213 | default=False, | |
|
214 | experimental=True, | |||
210 | ) |
|
215 | ) | |
211 | coreconfigitem('commands', 'resolve.confirm', |
|
216 | coreconfigitem('commands', 'resolve.confirm', | |
212 | default=False, |
|
217 | default=False, | |
@@ -226,6 +231,7 b" coreconfigitem('commands', 'status.relat" | |||||
226 | ) |
|
231 | ) | |
227 | coreconfigitem('commands', 'status.skipstates', |
|
232 | coreconfigitem('commands', 'status.skipstates', | |
228 | default=[], |
|
233 | default=[], | |
|
234 | experimental=True, | |||
229 | ) |
|
235 | ) | |
230 | coreconfigitem('commands', 'status.terse', |
|
236 | coreconfigitem('commands', 'status.terse', | |
231 | default='', |
|
237 | default='', | |
@@ -314,6 +320,7 b" coreconfigitem('convert', 'hg.usebranchn" | |||||
314 | ) |
|
320 | ) | |
315 | coreconfigitem('convert', 'ignoreancestorcheck', |
|
321 | coreconfigitem('convert', 'ignoreancestorcheck', | |
316 | default=False, |
|
322 | default=False, | |
|
323 | experimental=True, | |||
317 | ) |
|
324 | ) | |
318 | coreconfigitem('convert', 'localtimezone', |
|
325 | coreconfigitem('convert', 'localtimezone', | |
319 | default=False, |
|
326 | default=False, | |
@@ -687,18 +694,22 b" coreconfigitem('format', 'bookmarks-in-s" | |||||
687 | ) |
|
694 | ) | |
688 | coreconfigitem('format', 'chunkcachesize', |
|
695 | coreconfigitem('format', 'chunkcachesize', | |
689 | default=None, |
|
696 | default=None, | |
|
697 | experimental=True, | |||
690 | ) |
|
698 | ) | |
691 | coreconfigitem('format', 'dotencode', |
|
699 | coreconfigitem('format', 'dotencode', | |
692 | default=True, |
|
700 | default=True, | |
693 | ) |
|
701 | ) | |
694 | coreconfigitem('format', 'generaldelta', |
|
702 | coreconfigitem('format', 'generaldelta', | |
695 | default=False, |
|
703 | default=False, | |
|
704 | experimental=True, | |||
696 | ) |
|
705 | ) | |
697 | coreconfigitem('format', 'manifestcachesize', |
|
706 | coreconfigitem('format', 'manifestcachesize', | |
698 | default=None, |
|
707 | default=None, | |
|
708 | experimental=True, | |||
699 | ) |
|
709 | ) | |
700 | coreconfigitem('format', 'maxchainlen', |
|
710 | coreconfigitem('format', 'maxchainlen', | |
701 | default=dynamicdefault, |
|
711 | default=dynamicdefault, | |
|
712 | experimental=True, | |||
702 | ) |
|
713 | ) | |
703 | coreconfigitem('format', 'obsstore-version', |
|
714 | coreconfigitem('format', 'obsstore-version', | |
704 | default=None, |
|
715 | default=None, | |
@@ -721,6 +732,7 b" coreconfigitem('format', 'usestore'," | |||||
721 | ) |
|
732 | ) | |
722 | coreconfigitem('format', 'internal-phase', |
|
733 | coreconfigitem('format', 'internal-phase', | |
723 | default=False, |
|
734 | default=False, | |
|
735 | experimental=True, | |||
724 | ) |
|
736 | ) | |
725 | coreconfigitem('fsmonitor', 'warn_when_unused', |
|
737 | coreconfigitem('fsmonitor', 'warn_when_unused', | |
726 | default=True, |
|
738 | default=True, | |
@@ -826,6 +838,7 b" coreconfigitem('merge', 'on-failure'," | |||||
826 | ) |
|
838 | ) | |
827 | coreconfigitem('merge', 'preferancestor', |
|
839 | coreconfigitem('merge', 'preferancestor', | |
828 | default=lambda: ['*'], |
|
840 | default=lambda: ['*'], | |
|
841 | experimental=True, | |||
829 | ) |
|
842 | ) | |
830 | coreconfigitem('merge', 'strict-capability-check', |
|
843 | coreconfigitem('merge', 'strict-capability-check', | |
831 | default=False, |
|
844 | default=False, | |
@@ -1010,6 +1023,7 b" coreconfigitem('rewrite', 'update-timest" | |||||
1010 | ) |
|
1023 | ) | |
1011 | coreconfigitem('storage', 'new-repo-backend', |
|
1024 | coreconfigitem('storage', 'new-repo-backend', | |
1012 | default='revlogv1', |
|
1025 | default='revlogv1', | |
|
1026 | experimental=True, | |||
1013 | ) |
|
1027 | ) | |
1014 | coreconfigitem('storage', 'revlog.optimize-delta-parent-choice', |
|
1028 | coreconfigitem('storage', 'revlog.optimize-delta-parent-choice', | |
1015 | default=True, |
|
1029 | default=True, | |
@@ -1120,6 +1134,7 b" coreconfigitem('smtp', 'username'," | |||||
1120 | ) |
|
1134 | ) | |
1121 | coreconfigitem('sparse', 'missingwarning', |
|
1135 | coreconfigitem('sparse', 'missingwarning', | |
1122 | default=True, |
|
1136 | default=True, | |
|
1137 | experimental=True, | |||
1123 | ) |
|
1138 | ) | |
1124 | coreconfigitem('subrepos', 'allowed', |
|
1139 | coreconfigitem('subrepos', 'allowed', | |
1125 | default=dynamicdefault, # to make backporting simpler |
|
1140 | default=dynamicdefault, # to make backporting simpler | |
@@ -1466,6 +1481,7 b" coreconfigitem('web', 'templates'," | |||||
1466 | ) |
|
1481 | ) | |
1467 | coreconfigitem('web', 'view', |
|
1482 | coreconfigitem('web', 'view', | |
1468 | default='served', |
|
1483 | default='served', | |
|
1484 | experimental=True, | |||
1469 | ) |
|
1485 | ) | |
1470 | coreconfigitem('worker', 'backgroundclose', |
|
1486 | coreconfigitem('worker', 'backgroundclose', | |
1471 | default=dynamicdefault, |
|
1487 | default=dynamicdefault, |
General Comments 0
You need to be logged in to leave comments.
Login now