Show More
@@ -1,2633 +1,2641 b'' | |||||
1 | # configitems.py - centralized declaration of configuration option |
|
1 | # configitems.py - centralized declaration of configuration option | |
2 | # |
|
2 | # | |
3 | # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net> |
|
3 | # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net> | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | import functools |
|
10 | import functools | |
11 | import re |
|
11 | import re | |
12 |
|
12 | |||
13 | from . import ( |
|
13 | from . import ( | |
14 | encoding, |
|
14 | encoding, | |
15 | error, |
|
15 | error, | |
16 | ) |
|
16 | ) | |
17 |
|
17 | |||
18 |
|
18 | |||
19 | def loadconfigtable(ui, extname, configtable): |
|
19 | def loadconfigtable(ui, extname, configtable): | |
20 | """update config item known to the ui with the extension ones""" |
|
20 | """update config item known to the ui with the extension ones""" | |
21 | for section, items in sorted(configtable.items()): |
|
21 | for section, items in sorted(configtable.items()): | |
22 | knownitems = ui._knownconfig.setdefault(section, itemregister()) |
|
22 | knownitems = ui._knownconfig.setdefault(section, itemregister()) | |
23 | knownkeys = set(knownitems) |
|
23 | knownkeys = set(knownitems) | |
24 | newkeys = set(items) |
|
24 | newkeys = set(items) | |
25 | for key in sorted(knownkeys & newkeys): |
|
25 | for key in sorted(knownkeys & newkeys): | |
26 | msg = b"extension '%s' overwrite config item '%s.%s'" |
|
26 | msg = b"extension '%s' overwrite config item '%s.%s'" | |
27 | msg %= (extname, section, key) |
|
27 | msg %= (extname, section, key) | |
28 | ui.develwarn(msg, config=b'warn-config') |
|
28 | ui.develwarn(msg, config=b'warn-config') | |
29 |
|
29 | |||
30 | knownitems.update(items) |
|
30 | knownitems.update(items) | |
31 |
|
31 | |||
32 |
|
32 | |||
33 | class configitem(object): |
|
33 | class configitem(object): | |
34 | """represent a known config item |
|
34 | """represent a known config item | |
35 |
|
35 | |||
36 | :section: the official config section where to find this item, |
|
36 | :section: the official config section where to find this item, | |
37 | :name: the official name within the section, |
|
37 | :name: the official name within the section, | |
38 | :default: default value for this item, |
|
38 | :default: default value for this item, | |
39 | :alias: optional list of tuples as alternatives, |
|
39 | :alias: optional list of tuples as alternatives, | |
40 | :generic: this is a generic definition, match name using regular expression. |
|
40 | :generic: this is a generic definition, match name using regular expression. | |
41 | """ |
|
41 | """ | |
42 |
|
42 | |||
43 | def __init__( |
|
43 | def __init__( | |
44 | self, |
|
44 | self, | |
45 | section, |
|
45 | section, | |
46 | name, |
|
46 | name, | |
47 | default=None, |
|
47 | default=None, | |
48 | alias=(), |
|
48 | alias=(), | |
49 | generic=False, |
|
49 | generic=False, | |
50 | priority=0, |
|
50 | priority=0, | |
51 | experimental=False, |
|
51 | experimental=False, | |
52 | ): |
|
52 | ): | |
53 | self.section = section |
|
53 | self.section = section | |
54 | self.name = name |
|
54 | self.name = name | |
55 | self.default = default |
|
55 | self.default = default | |
56 | self.alias = list(alias) |
|
56 | self.alias = list(alias) | |
57 | self.generic = generic |
|
57 | self.generic = generic | |
58 | self.priority = priority |
|
58 | self.priority = priority | |
59 | self.experimental = experimental |
|
59 | self.experimental = experimental | |
60 | self._re = None |
|
60 | self._re = None | |
61 | if generic: |
|
61 | if generic: | |
62 | self._re = re.compile(self.name) |
|
62 | self._re = re.compile(self.name) | |
63 |
|
63 | |||
64 |
|
64 | |||
65 | class itemregister(dict): |
|
65 | class itemregister(dict): | |
66 | """A specialized dictionary that can handle wild-card selection""" |
|
66 | """A specialized dictionary that can handle wild-card selection""" | |
67 |
|
67 | |||
68 | def __init__(self): |
|
68 | def __init__(self): | |
69 | super(itemregister, self).__init__() |
|
69 | super(itemregister, self).__init__() | |
70 | self._generics = set() |
|
70 | self._generics = set() | |
71 |
|
71 | |||
72 | def update(self, other): |
|
72 | def update(self, other): | |
73 | super(itemregister, self).update(other) |
|
73 | super(itemregister, self).update(other) | |
74 | self._generics.update(other._generics) |
|
74 | self._generics.update(other._generics) | |
75 |
|
75 | |||
76 | def __setitem__(self, key, item): |
|
76 | def __setitem__(self, key, item): | |
77 | super(itemregister, self).__setitem__(key, item) |
|
77 | super(itemregister, self).__setitem__(key, item) | |
78 | if item.generic: |
|
78 | if item.generic: | |
79 | self._generics.add(item) |
|
79 | self._generics.add(item) | |
80 |
|
80 | |||
81 | def get(self, key): |
|
81 | def get(self, key): | |
82 | baseitem = super(itemregister, self).get(key) |
|
82 | baseitem = super(itemregister, self).get(key) | |
83 | if baseitem is not None and not baseitem.generic: |
|
83 | if baseitem is not None and not baseitem.generic: | |
84 | return baseitem |
|
84 | return baseitem | |
85 |
|
85 | |||
86 | # search for a matching generic item |
|
86 | # search for a matching generic item | |
87 | generics = sorted(self._generics, key=(lambda x: (x.priority, x.name))) |
|
87 | generics = sorted(self._generics, key=(lambda x: (x.priority, x.name))) | |
88 | for item in generics: |
|
88 | for item in generics: | |
89 | # we use 'match' instead of 'search' to make the matching simpler |
|
89 | # we use 'match' instead of 'search' to make the matching simpler | |
90 | # for people unfamiliar with regular expression. Having the match |
|
90 | # for people unfamiliar with regular expression. Having the match | |
91 | # rooted to the start of the string will produce less surprising |
|
91 | # rooted to the start of the string will produce less surprising | |
92 | # result for user writing simple regex for sub-attribute. |
|
92 | # result for user writing simple regex for sub-attribute. | |
93 | # |
|
93 | # | |
94 | # For example using "color\..*" match produces an unsurprising |
|
94 | # For example using "color\..*" match produces an unsurprising | |
95 | # result, while using search could suddenly match apparently |
|
95 | # result, while using search could suddenly match apparently | |
96 | # unrelated configuration that happens to contains "color." |
|
96 | # unrelated configuration that happens to contains "color." | |
97 | # anywhere. This is a tradeoff where we favor requiring ".*" on |
|
97 | # anywhere. This is a tradeoff where we favor requiring ".*" on | |
98 | # some match to avoid the need to prefix most pattern with "^". |
|
98 | # some match to avoid the need to prefix most pattern with "^". | |
99 | # The "^" seems more error prone. |
|
99 | # The "^" seems more error prone. | |
100 | if item._re.match(key): |
|
100 | if item._re.match(key): | |
101 | return item |
|
101 | return item | |
102 |
|
102 | |||
103 | return None |
|
103 | return None | |
104 |
|
104 | |||
105 |
|
105 | |||
106 | coreitems = {} |
|
106 | coreitems = {} | |
107 |
|
107 | |||
108 |
|
108 | |||
109 | def _register(configtable, *args, **kwargs): |
|
109 | def _register(configtable, *args, **kwargs): | |
110 | item = configitem(*args, **kwargs) |
|
110 | item = configitem(*args, **kwargs) | |
111 | section = configtable.setdefault(item.section, itemregister()) |
|
111 | section = configtable.setdefault(item.section, itemregister()) | |
112 | if item.name in section: |
|
112 | if item.name in section: | |
113 | msg = b"duplicated config item registration for '%s.%s'" |
|
113 | msg = b"duplicated config item registration for '%s.%s'" | |
114 | raise error.ProgrammingError(msg % (item.section, item.name)) |
|
114 | raise error.ProgrammingError(msg % (item.section, item.name)) | |
115 | section[item.name] = item |
|
115 | section[item.name] = item | |
116 |
|
116 | |||
117 |
|
117 | |||
118 | # special value for case where the default is derived from other values |
|
118 | # special value for case where the default is derived from other values | |
119 | dynamicdefault = object() |
|
119 | dynamicdefault = object() | |
120 |
|
120 | |||
121 | # Registering actual config items |
|
121 | # Registering actual config items | |
122 |
|
122 | |||
123 |
|
123 | |||
124 | def getitemregister(configtable): |
|
124 | def getitemregister(configtable): | |
125 | f = functools.partial(_register, configtable) |
|
125 | f = functools.partial(_register, configtable) | |
126 | # export pseudo enum as configitem.* |
|
126 | # export pseudo enum as configitem.* | |
127 | f.dynamicdefault = dynamicdefault |
|
127 | f.dynamicdefault = dynamicdefault | |
128 | return f |
|
128 | return f | |
129 |
|
129 | |||
130 |
|
130 | |||
131 | coreconfigitem = getitemregister(coreitems) |
|
131 | coreconfigitem = getitemregister(coreitems) | |
132 |
|
132 | |||
133 |
|
133 | |||
134 | def _registerdiffopts(section, configprefix=b''): |
|
134 | def _registerdiffopts(section, configprefix=b''): | |
135 | coreconfigitem( |
|
135 | coreconfigitem( | |
136 | section, |
|
136 | section, | |
137 | configprefix + b'nodates', |
|
137 | configprefix + b'nodates', | |
138 | default=False, |
|
138 | default=False, | |
139 | ) |
|
139 | ) | |
140 | coreconfigitem( |
|
140 | coreconfigitem( | |
141 | section, |
|
141 | section, | |
142 | configprefix + b'showfunc', |
|
142 | configprefix + b'showfunc', | |
143 | default=False, |
|
143 | default=False, | |
144 | ) |
|
144 | ) | |
145 | coreconfigitem( |
|
145 | coreconfigitem( | |
146 | section, |
|
146 | section, | |
147 | configprefix + b'unified', |
|
147 | configprefix + b'unified', | |
148 | default=None, |
|
148 | default=None, | |
149 | ) |
|
149 | ) | |
150 | coreconfigitem( |
|
150 | coreconfigitem( | |
151 | section, |
|
151 | section, | |
152 | configprefix + b'git', |
|
152 | configprefix + b'git', | |
153 | default=False, |
|
153 | default=False, | |
154 | ) |
|
154 | ) | |
155 | coreconfigitem( |
|
155 | coreconfigitem( | |
156 | section, |
|
156 | section, | |
157 | configprefix + b'ignorews', |
|
157 | configprefix + b'ignorews', | |
158 | default=False, |
|
158 | default=False, | |
159 | ) |
|
159 | ) | |
160 | coreconfigitem( |
|
160 | coreconfigitem( | |
161 | section, |
|
161 | section, | |
162 | configprefix + b'ignorewsamount', |
|
162 | configprefix + b'ignorewsamount', | |
163 | default=False, |
|
163 | default=False, | |
164 | ) |
|
164 | ) | |
165 | coreconfigitem( |
|
165 | coreconfigitem( | |
166 | section, |
|
166 | section, | |
167 | configprefix + b'ignoreblanklines', |
|
167 | configprefix + b'ignoreblanklines', | |
168 | default=False, |
|
168 | default=False, | |
169 | ) |
|
169 | ) | |
170 | coreconfigitem( |
|
170 | coreconfigitem( | |
171 | section, |
|
171 | section, | |
172 | configprefix + b'ignorewseol', |
|
172 | configprefix + b'ignorewseol', | |
173 | default=False, |
|
173 | default=False, | |
174 | ) |
|
174 | ) | |
175 | coreconfigitem( |
|
175 | coreconfigitem( | |
176 | section, |
|
176 | section, | |
177 | configprefix + b'nobinary', |
|
177 | configprefix + b'nobinary', | |
178 | default=False, |
|
178 | default=False, | |
179 | ) |
|
179 | ) | |
180 | coreconfigitem( |
|
180 | coreconfigitem( | |
181 | section, |
|
181 | section, | |
182 | configprefix + b'noprefix', |
|
182 | configprefix + b'noprefix', | |
183 | default=False, |
|
183 | default=False, | |
184 | ) |
|
184 | ) | |
185 | coreconfigitem( |
|
185 | coreconfigitem( | |
186 | section, |
|
186 | section, | |
187 | configprefix + b'word-diff', |
|
187 | configprefix + b'word-diff', | |
188 | default=False, |
|
188 | default=False, | |
189 | ) |
|
189 | ) | |
190 |
|
190 | |||
191 |
|
191 | |||
192 | coreconfigitem( |
|
192 | coreconfigitem( | |
193 | b'alias', |
|
193 | b'alias', | |
194 | b'.*', |
|
194 | b'.*', | |
195 | default=dynamicdefault, |
|
195 | default=dynamicdefault, | |
196 | generic=True, |
|
196 | generic=True, | |
197 | ) |
|
197 | ) | |
198 | coreconfigitem( |
|
198 | coreconfigitem( | |
199 | b'auth', |
|
199 | b'auth', | |
200 | b'cookiefile', |
|
200 | b'cookiefile', | |
201 | default=None, |
|
201 | default=None, | |
202 | ) |
|
202 | ) | |
203 | _registerdiffopts(section=b'annotate') |
|
203 | _registerdiffopts(section=b'annotate') | |
204 | # bookmarks.pushing: internal hack for discovery |
|
204 | # bookmarks.pushing: internal hack for discovery | |
205 | coreconfigitem( |
|
205 | coreconfigitem( | |
206 | b'bookmarks', |
|
206 | b'bookmarks', | |
207 | b'pushing', |
|
207 | b'pushing', | |
208 | default=list, |
|
208 | default=list, | |
209 | ) |
|
209 | ) | |
210 | # bundle.mainreporoot: internal hack for bundlerepo |
|
210 | # bundle.mainreporoot: internal hack for bundlerepo | |
211 | coreconfigitem( |
|
211 | coreconfigitem( | |
212 | b'bundle', |
|
212 | b'bundle', | |
213 | b'mainreporoot', |
|
213 | b'mainreporoot', | |
214 | default=b'', |
|
214 | default=b'', | |
215 | ) |
|
215 | ) | |
216 | coreconfigitem( |
|
216 | coreconfigitem( | |
217 | b'censor', |
|
217 | b'censor', | |
218 | b'policy', |
|
218 | b'policy', | |
219 | default=b'abort', |
|
219 | default=b'abort', | |
220 | experimental=True, |
|
220 | experimental=True, | |
221 | ) |
|
221 | ) | |
222 | coreconfigitem( |
|
222 | coreconfigitem( | |
223 | b'chgserver', |
|
223 | b'chgserver', | |
224 | b'idletimeout', |
|
224 | b'idletimeout', | |
225 | default=3600, |
|
225 | default=3600, | |
226 | ) |
|
226 | ) | |
227 | coreconfigitem( |
|
227 | coreconfigitem( | |
228 | b'chgserver', |
|
228 | b'chgserver', | |
229 | b'skiphash', |
|
229 | b'skiphash', | |
230 | default=False, |
|
230 | default=False, | |
231 | ) |
|
231 | ) | |
232 | coreconfigitem( |
|
232 | coreconfigitem( | |
233 | b'cmdserver', |
|
233 | b'cmdserver', | |
234 | b'log', |
|
234 | b'log', | |
235 | default=None, |
|
235 | default=None, | |
236 | ) |
|
236 | ) | |
237 | coreconfigitem( |
|
237 | coreconfigitem( | |
238 | b'cmdserver', |
|
238 | b'cmdserver', | |
239 | b'max-log-files', |
|
239 | b'max-log-files', | |
240 | default=7, |
|
240 | default=7, | |
241 | ) |
|
241 | ) | |
242 | coreconfigitem( |
|
242 | coreconfigitem( | |
243 | b'cmdserver', |
|
243 | b'cmdserver', | |
244 | b'max-log-size', |
|
244 | b'max-log-size', | |
245 | default=b'1 MB', |
|
245 | default=b'1 MB', | |
246 | ) |
|
246 | ) | |
247 | coreconfigitem( |
|
247 | coreconfigitem( | |
248 | b'cmdserver', |
|
248 | b'cmdserver', | |
249 | b'max-repo-cache', |
|
249 | b'max-repo-cache', | |
250 | default=0, |
|
250 | default=0, | |
251 | experimental=True, |
|
251 | experimental=True, | |
252 | ) |
|
252 | ) | |
253 | coreconfigitem( |
|
253 | coreconfigitem( | |
254 | b'cmdserver', |
|
254 | b'cmdserver', | |
255 | b'message-encodings', |
|
255 | b'message-encodings', | |
256 | default=list, |
|
256 | default=list, | |
257 | ) |
|
257 | ) | |
258 | coreconfigitem( |
|
258 | coreconfigitem( | |
259 | b'cmdserver', |
|
259 | b'cmdserver', | |
260 | b'track-log', |
|
260 | b'track-log', | |
261 | default=lambda: [b'chgserver', b'cmdserver', b'repocache'], |
|
261 | default=lambda: [b'chgserver', b'cmdserver', b'repocache'], | |
262 | ) |
|
262 | ) | |
263 | coreconfigitem( |
|
263 | coreconfigitem( | |
264 | b'cmdserver', |
|
264 | b'cmdserver', | |
265 | b'shutdown-on-interrupt', |
|
265 | b'shutdown-on-interrupt', | |
266 | default=True, |
|
266 | default=True, | |
267 | ) |
|
267 | ) | |
268 | coreconfigitem( |
|
268 | coreconfigitem( | |
269 | b'color', |
|
269 | b'color', | |
270 | b'.*', |
|
270 | b'.*', | |
271 | default=None, |
|
271 | default=None, | |
272 | generic=True, |
|
272 | generic=True, | |
273 | ) |
|
273 | ) | |
274 | coreconfigitem( |
|
274 | coreconfigitem( | |
275 | b'color', |
|
275 | b'color', | |
276 | b'mode', |
|
276 | b'mode', | |
277 | default=b'auto', |
|
277 | default=b'auto', | |
278 | ) |
|
278 | ) | |
279 | coreconfigitem( |
|
279 | coreconfigitem( | |
280 | b'color', |
|
280 | b'color', | |
281 | b'pagermode', |
|
281 | b'pagermode', | |
282 | default=dynamicdefault, |
|
282 | default=dynamicdefault, | |
283 | ) |
|
283 | ) | |
284 | coreconfigitem( |
|
284 | coreconfigitem( | |
285 | b'command-templates', |
|
285 | b'command-templates', | |
286 | b'graphnode', |
|
286 | b'graphnode', | |
287 | default=None, |
|
287 | default=None, | |
288 | alias=[(b'ui', b'graphnodetemplate')], |
|
288 | alias=[(b'ui', b'graphnodetemplate')], | |
289 | ) |
|
289 | ) | |
290 | coreconfigitem( |
|
290 | coreconfigitem( | |
291 | b'command-templates', |
|
291 | b'command-templates', | |
292 | b'log', |
|
292 | b'log', | |
293 | default=None, |
|
293 | default=None, | |
294 | alias=[(b'ui', b'logtemplate')], |
|
294 | alias=[(b'ui', b'logtemplate')], | |
295 | ) |
|
295 | ) | |
296 | coreconfigitem( |
|
296 | coreconfigitem( | |
297 | b'command-templates', |
|
297 | b'command-templates', | |
298 | b'mergemarker', |
|
298 | b'mergemarker', | |
299 | default=( |
|
299 | default=( | |
300 | b'{node|short} ' |
|
300 | b'{node|short} ' | |
301 | b'{ifeq(tags, "tip", "", ' |
|
301 | b'{ifeq(tags, "tip", "", ' | |
302 | b'ifeq(tags, "", "", "{tags} "))}' |
|
302 | b'ifeq(tags, "", "", "{tags} "))}' | |
303 | b'{if(bookmarks, "{bookmarks} ")}' |
|
303 | b'{if(bookmarks, "{bookmarks} ")}' | |
304 | b'{ifeq(branch, "default", "", "{branch} ")}' |
|
304 | b'{ifeq(branch, "default", "", "{branch} ")}' | |
305 | b'- {author|user}: {desc|firstline}' |
|
305 | b'- {author|user}: {desc|firstline}' | |
306 | ), |
|
306 | ), | |
307 | alias=[(b'ui', b'mergemarkertemplate')], |
|
307 | alias=[(b'ui', b'mergemarkertemplate')], | |
308 | ) |
|
308 | ) | |
309 | coreconfigitem( |
|
309 | coreconfigitem( | |
310 | b'command-templates', |
|
310 | b'command-templates', | |
311 | b'pre-merge-tool-output', |
|
311 | b'pre-merge-tool-output', | |
312 | default=None, |
|
312 | default=None, | |
313 | alias=[(b'ui', b'pre-merge-tool-output-template')], |
|
313 | alias=[(b'ui', b'pre-merge-tool-output-template')], | |
314 | ) |
|
314 | ) | |
315 | coreconfigitem( |
|
315 | coreconfigitem( | |
316 | b'command-templates', |
|
316 | b'command-templates', | |
317 | b'oneline-summary', |
|
317 | b'oneline-summary', | |
318 | default=None, |
|
318 | default=None, | |
319 | ) |
|
319 | ) | |
320 | coreconfigitem( |
|
320 | coreconfigitem( | |
321 | b'command-templates', |
|
321 | b'command-templates', | |
322 | b'oneline-summary.*', |
|
322 | b'oneline-summary.*', | |
323 | default=dynamicdefault, |
|
323 | default=dynamicdefault, | |
324 | generic=True, |
|
324 | generic=True, | |
325 | ) |
|
325 | ) | |
326 | _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.') |
|
326 | _registerdiffopts(section=b'commands', configprefix=b'commit.interactive.') | |
327 | coreconfigitem( |
|
327 | coreconfigitem( | |
328 | b'commands', |
|
328 | b'commands', | |
329 | b'commit.post-status', |
|
329 | b'commit.post-status', | |
330 | default=False, |
|
330 | default=False, | |
331 | ) |
|
331 | ) | |
332 | coreconfigitem( |
|
332 | coreconfigitem( | |
333 | b'commands', |
|
333 | b'commands', | |
334 | b'grep.all-files', |
|
334 | b'grep.all-files', | |
335 | default=False, |
|
335 | default=False, | |
336 | experimental=True, |
|
336 | experimental=True, | |
337 | ) |
|
337 | ) | |
338 | coreconfigitem( |
|
338 | coreconfigitem( | |
339 | b'commands', |
|
339 | b'commands', | |
340 | b'merge.require-rev', |
|
340 | b'merge.require-rev', | |
341 | default=False, |
|
341 | default=False, | |
342 | ) |
|
342 | ) | |
343 | coreconfigitem( |
|
343 | coreconfigitem( | |
344 | b'commands', |
|
344 | b'commands', | |
345 | b'push.require-revs', |
|
345 | b'push.require-revs', | |
346 | default=False, |
|
346 | default=False, | |
347 | ) |
|
347 | ) | |
348 | coreconfigitem( |
|
348 | coreconfigitem( | |
349 | b'commands', |
|
349 | b'commands', | |
350 | b'resolve.confirm', |
|
350 | b'resolve.confirm', | |
351 | default=False, |
|
351 | default=False, | |
352 | ) |
|
352 | ) | |
353 | coreconfigitem( |
|
353 | coreconfigitem( | |
354 | b'commands', |
|
354 | b'commands', | |
355 | b'resolve.explicit-re-merge', |
|
355 | b'resolve.explicit-re-merge', | |
356 | default=False, |
|
356 | default=False, | |
357 | ) |
|
357 | ) | |
358 | coreconfigitem( |
|
358 | coreconfigitem( | |
359 | b'commands', |
|
359 | b'commands', | |
360 | b'resolve.mark-check', |
|
360 | b'resolve.mark-check', | |
361 | default=b'none', |
|
361 | default=b'none', | |
362 | ) |
|
362 | ) | |
363 | _registerdiffopts(section=b'commands', configprefix=b'revert.interactive.') |
|
363 | _registerdiffopts(section=b'commands', configprefix=b'revert.interactive.') | |
364 | coreconfigitem( |
|
364 | coreconfigitem( | |
365 | b'commands', |
|
365 | b'commands', | |
366 | b'show.aliasprefix', |
|
366 | b'show.aliasprefix', | |
367 | default=list, |
|
367 | default=list, | |
368 | ) |
|
368 | ) | |
369 | coreconfigitem( |
|
369 | coreconfigitem( | |
370 | b'commands', |
|
370 | b'commands', | |
371 | b'status.relative', |
|
371 | b'status.relative', | |
372 | default=False, |
|
372 | default=False, | |
373 | ) |
|
373 | ) | |
374 | coreconfigitem( |
|
374 | coreconfigitem( | |
375 | b'commands', |
|
375 | b'commands', | |
376 | b'status.skipstates', |
|
376 | b'status.skipstates', | |
377 | default=[], |
|
377 | default=[], | |
378 | experimental=True, |
|
378 | experimental=True, | |
379 | ) |
|
379 | ) | |
380 | coreconfigitem( |
|
380 | coreconfigitem( | |
381 | b'commands', |
|
381 | b'commands', | |
382 | b'status.terse', |
|
382 | b'status.terse', | |
383 | default=b'', |
|
383 | default=b'', | |
384 | ) |
|
384 | ) | |
385 | coreconfigitem( |
|
385 | coreconfigitem( | |
386 | b'commands', |
|
386 | b'commands', | |
387 | b'status.verbose', |
|
387 | b'status.verbose', | |
388 | default=False, |
|
388 | default=False, | |
389 | ) |
|
389 | ) | |
390 | coreconfigitem( |
|
390 | coreconfigitem( | |
391 | b'commands', |
|
391 | b'commands', | |
392 | b'update.check', |
|
392 | b'update.check', | |
393 | default=None, |
|
393 | default=None, | |
394 | ) |
|
394 | ) | |
395 | coreconfigitem( |
|
395 | coreconfigitem( | |
396 | b'commands', |
|
396 | b'commands', | |
397 | b'update.requiredest', |
|
397 | b'update.requiredest', | |
398 | default=False, |
|
398 | default=False, | |
399 | ) |
|
399 | ) | |
400 | coreconfigitem( |
|
400 | coreconfigitem( | |
401 | b'committemplate', |
|
401 | b'committemplate', | |
402 | b'.*', |
|
402 | b'.*', | |
403 | default=None, |
|
403 | default=None, | |
404 | generic=True, |
|
404 | generic=True, | |
405 | ) |
|
405 | ) | |
406 | coreconfigitem( |
|
406 | coreconfigitem( | |
407 | b'convert', |
|
407 | b'convert', | |
408 | b'bzr.saverev', |
|
408 | b'bzr.saverev', | |
409 | default=True, |
|
409 | default=True, | |
410 | ) |
|
410 | ) | |
411 | coreconfigitem( |
|
411 | coreconfigitem( | |
412 | b'convert', |
|
412 | b'convert', | |
413 | b'cvsps.cache', |
|
413 | b'cvsps.cache', | |
414 | default=True, |
|
414 | default=True, | |
415 | ) |
|
415 | ) | |
416 | coreconfigitem( |
|
416 | coreconfigitem( | |
417 | b'convert', |
|
417 | b'convert', | |
418 | b'cvsps.fuzz', |
|
418 | b'cvsps.fuzz', | |
419 | default=60, |
|
419 | default=60, | |
420 | ) |
|
420 | ) | |
421 | coreconfigitem( |
|
421 | coreconfigitem( | |
422 | b'convert', |
|
422 | b'convert', | |
423 | b'cvsps.logencoding', |
|
423 | b'cvsps.logencoding', | |
424 | default=None, |
|
424 | default=None, | |
425 | ) |
|
425 | ) | |
426 | coreconfigitem( |
|
426 | coreconfigitem( | |
427 | b'convert', |
|
427 | b'convert', | |
428 | b'cvsps.mergefrom', |
|
428 | b'cvsps.mergefrom', | |
429 | default=None, |
|
429 | default=None, | |
430 | ) |
|
430 | ) | |
431 | coreconfigitem( |
|
431 | coreconfigitem( | |
432 | b'convert', |
|
432 | b'convert', | |
433 | b'cvsps.mergeto', |
|
433 | b'cvsps.mergeto', | |
434 | default=None, |
|
434 | default=None, | |
435 | ) |
|
435 | ) | |
436 | coreconfigitem( |
|
436 | coreconfigitem( | |
437 | b'convert', |
|
437 | b'convert', | |
438 | b'git.committeractions', |
|
438 | b'git.committeractions', | |
439 | default=lambda: [b'messagedifferent'], |
|
439 | default=lambda: [b'messagedifferent'], | |
440 | ) |
|
440 | ) | |
441 | coreconfigitem( |
|
441 | coreconfigitem( | |
442 | b'convert', |
|
442 | b'convert', | |
443 | b'git.extrakeys', |
|
443 | b'git.extrakeys', | |
444 | default=list, |
|
444 | default=list, | |
445 | ) |
|
445 | ) | |
446 | coreconfigitem( |
|
446 | coreconfigitem( | |
447 | b'convert', |
|
447 | b'convert', | |
448 | b'git.findcopiesharder', |
|
448 | b'git.findcopiesharder', | |
449 | default=False, |
|
449 | default=False, | |
450 | ) |
|
450 | ) | |
451 | coreconfigitem( |
|
451 | coreconfigitem( | |
452 | b'convert', |
|
452 | b'convert', | |
453 | b'git.remoteprefix', |
|
453 | b'git.remoteprefix', | |
454 | default=b'remote', |
|
454 | default=b'remote', | |
455 | ) |
|
455 | ) | |
456 | coreconfigitem( |
|
456 | coreconfigitem( | |
457 | b'convert', |
|
457 | b'convert', | |
458 | b'git.renamelimit', |
|
458 | b'git.renamelimit', | |
459 | default=400, |
|
459 | default=400, | |
460 | ) |
|
460 | ) | |
461 | coreconfigitem( |
|
461 | coreconfigitem( | |
462 | b'convert', |
|
462 | b'convert', | |
463 | b'git.saverev', |
|
463 | b'git.saverev', | |
464 | default=True, |
|
464 | default=True, | |
465 | ) |
|
465 | ) | |
466 | coreconfigitem( |
|
466 | coreconfigitem( | |
467 | b'convert', |
|
467 | b'convert', | |
468 | b'git.similarity', |
|
468 | b'git.similarity', | |
469 | default=50, |
|
469 | default=50, | |
470 | ) |
|
470 | ) | |
471 | coreconfigitem( |
|
471 | coreconfigitem( | |
472 | b'convert', |
|
472 | b'convert', | |
473 | b'git.skipsubmodules', |
|
473 | b'git.skipsubmodules', | |
474 | default=False, |
|
474 | default=False, | |
475 | ) |
|
475 | ) | |
476 | coreconfigitem( |
|
476 | coreconfigitem( | |
477 | b'convert', |
|
477 | b'convert', | |
478 | b'hg.clonebranches', |
|
478 | b'hg.clonebranches', | |
479 | default=False, |
|
479 | default=False, | |
480 | ) |
|
480 | ) | |
481 | coreconfigitem( |
|
481 | coreconfigitem( | |
482 | b'convert', |
|
482 | b'convert', | |
483 | b'hg.ignoreerrors', |
|
483 | b'hg.ignoreerrors', | |
484 | default=False, |
|
484 | default=False, | |
485 | ) |
|
485 | ) | |
486 | coreconfigitem( |
|
486 | coreconfigitem( | |
487 | b'convert', |
|
487 | b'convert', | |
488 | b'hg.preserve-hash', |
|
488 | b'hg.preserve-hash', | |
489 | default=False, |
|
489 | default=False, | |
490 | ) |
|
490 | ) | |
491 | coreconfigitem( |
|
491 | coreconfigitem( | |
492 | b'convert', |
|
492 | b'convert', | |
493 | b'hg.revs', |
|
493 | b'hg.revs', | |
494 | default=None, |
|
494 | default=None, | |
495 | ) |
|
495 | ) | |
496 | coreconfigitem( |
|
496 | coreconfigitem( | |
497 | b'convert', |
|
497 | b'convert', | |
498 | b'hg.saverev', |
|
498 | b'hg.saverev', | |
499 | default=False, |
|
499 | default=False, | |
500 | ) |
|
500 | ) | |
501 | coreconfigitem( |
|
501 | coreconfigitem( | |
502 | b'convert', |
|
502 | b'convert', | |
503 | b'hg.sourcename', |
|
503 | b'hg.sourcename', | |
504 | default=None, |
|
504 | default=None, | |
505 | ) |
|
505 | ) | |
506 | coreconfigitem( |
|
506 | coreconfigitem( | |
507 | b'convert', |
|
507 | b'convert', | |
508 | b'hg.startrev', |
|
508 | b'hg.startrev', | |
509 | default=None, |
|
509 | default=None, | |
510 | ) |
|
510 | ) | |
511 | coreconfigitem( |
|
511 | coreconfigitem( | |
512 | b'convert', |
|
512 | b'convert', | |
513 | b'hg.tagsbranch', |
|
513 | b'hg.tagsbranch', | |
514 | default=b'default', |
|
514 | default=b'default', | |
515 | ) |
|
515 | ) | |
516 | coreconfigitem( |
|
516 | coreconfigitem( | |
517 | b'convert', |
|
517 | b'convert', | |
518 | b'hg.usebranchnames', |
|
518 | b'hg.usebranchnames', | |
519 | default=True, |
|
519 | default=True, | |
520 | ) |
|
520 | ) | |
521 | coreconfigitem( |
|
521 | coreconfigitem( | |
522 | b'convert', |
|
522 | b'convert', | |
523 | b'ignoreancestorcheck', |
|
523 | b'ignoreancestorcheck', | |
524 | default=False, |
|
524 | default=False, | |
525 | experimental=True, |
|
525 | experimental=True, | |
526 | ) |
|
526 | ) | |
527 | coreconfigitem( |
|
527 | coreconfigitem( | |
528 | b'convert', |
|
528 | b'convert', | |
529 | b'localtimezone', |
|
529 | b'localtimezone', | |
530 | default=False, |
|
530 | default=False, | |
531 | ) |
|
531 | ) | |
532 | coreconfigitem( |
|
532 | coreconfigitem( | |
533 | b'convert', |
|
533 | b'convert', | |
534 | b'p4.encoding', |
|
534 | b'p4.encoding', | |
535 | default=dynamicdefault, |
|
535 | default=dynamicdefault, | |
536 | ) |
|
536 | ) | |
537 | coreconfigitem( |
|
537 | coreconfigitem( | |
538 | b'convert', |
|
538 | b'convert', | |
539 | b'p4.startrev', |
|
539 | b'p4.startrev', | |
540 | default=0, |
|
540 | default=0, | |
541 | ) |
|
541 | ) | |
542 | coreconfigitem( |
|
542 | coreconfigitem( | |
543 | b'convert', |
|
543 | b'convert', | |
544 | b'skiptags', |
|
544 | b'skiptags', | |
545 | default=False, |
|
545 | default=False, | |
546 | ) |
|
546 | ) | |
547 | coreconfigitem( |
|
547 | coreconfigitem( | |
548 | b'convert', |
|
548 | b'convert', | |
549 | b'svn.debugsvnlog', |
|
549 | b'svn.debugsvnlog', | |
550 | default=True, |
|
550 | default=True, | |
551 | ) |
|
551 | ) | |
552 | coreconfigitem( |
|
552 | coreconfigitem( | |
553 | b'convert', |
|
553 | b'convert', | |
554 | b'svn.trunk', |
|
554 | b'svn.trunk', | |
555 | default=None, |
|
555 | default=None, | |
556 | ) |
|
556 | ) | |
557 | coreconfigitem( |
|
557 | coreconfigitem( | |
558 | b'convert', |
|
558 | b'convert', | |
559 | b'svn.tags', |
|
559 | b'svn.tags', | |
560 | default=None, |
|
560 | default=None, | |
561 | ) |
|
561 | ) | |
562 | coreconfigitem( |
|
562 | coreconfigitem( | |
563 | b'convert', |
|
563 | b'convert', | |
564 | b'svn.branches', |
|
564 | b'svn.branches', | |
565 | default=None, |
|
565 | default=None, | |
566 | ) |
|
566 | ) | |
567 | coreconfigitem( |
|
567 | coreconfigitem( | |
568 | b'convert', |
|
568 | b'convert', | |
569 | b'svn.startrev', |
|
569 | b'svn.startrev', | |
570 | default=0, |
|
570 | default=0, | |
571 | ) |
|
571 | ) | |
572 | coreconfigitem( |
|
572 | coreconfigitem( | |
573 | b'convert', |
|
573 | b'convert', | |
574 | b'svn.dangerous-set-commit-dates', |
|
574 | b'svn.dangerous-set-commit-dates', | |
575 | default=False, |
|
575 | default=False, | |
576 | ) |
|
576 | ) | |
577 | coreconfigitem( |
|
577 | coreconfigitem( | |
578 | b'debug', |
|
578 | b'debug', | |
579 | b'dirstate.delaywrite', |
|
579 | b'dirstate.delaywrite', | |
580 | default=0, |
|
580 | default=0, | |
581 | ) |
|
581 | ) | |
582 | coreconfigitem( |
|
582 | coreconfigitem( | |
583 | b'debug', |
|
583 | b'debug', | |
584 | b'revlog.verifyposition.changelog', |
|
584 | b'revlog.verifyposition.changelog', | |
585 | default=b'', |
|
585 | default=b'', | |
586 | ) |
|
586 | ) | |
587 | coreconfigitem( |
|
587 | coreconfigitem( | |
588 | b'defaults', |
|
588 | b'defaults', | |
589 | b'.*', |
|
589 | b'.*', | |
590 | default=None, |
|
590 | default=None, | |
591 | generic=True, |
|
591 | generic=True, | |
592 | ) |
|
592 | ) | |
593 | coreconfigitem( |
|
593 | coreconfigitem( | |
594 | b'devel', |
|
594 | b'devel', | |
595 | b'all-warnings', |
|
595 | b'all-warnings', | |
596 | default=False, |
|
596 | default=False, | |
597 | ) |
|
597 | ) | |
598 | coreconfigitem( |
|
598 | coreconfigitem( | |
599 | b'devel', |
|
599 | b'devel', | |
600 | b'bundle2.debug', |
|
600 | b'bundle2.debug', | |
601 | default=False, |
|
601 | default=False, | |
602 | ) |
|
602 | ) | |
603 | coreconfigitem( |
|
603 | coreconfigitem( | |
604 | b'devel', |
|
604 | b'devel', | |
605 | b'bundle.delta', |
|
605 | b'bundle.delta', | |
606 | default=b'', |
|
606 | default=b'', | |
607 | ) |
|
607 | ) | |
608 | coreconfigitem( |
|
608 | coreconfigitem( | |
609 | b'devel', |
|
609 | b'devel', | |
610 | b'cache-vfs', |
|
610 | b'cache-vfs', | |
611 | default=None, |
|
611 | default=None, | |
612 | ) |
|
612 | ) | |
613 | coreconfigitem( |
|
613 | coreconfigitem( | |
614 | b'devel', |
|
614 | b'devel', | |
615 | b'check-locks', |
|
615 | b'check-locks', | |
616 | default=False, |
|
616 | default=False, | |
617 | ) |
|
617 | ) | |
618 | coreconfigitem( |
|
618 | coreconfigitem( | |
619 | b'devel', |
|
619 | b'devel', | |
620 | b'check-relroot', |
|
620 | b'check-relroot', | |
621 | default=False, |
|
621 | default=False, | |
622 | ) |
|
622 | ) | |
623 | # Track copy information for all file, not just "added" one (very slow) |
|
623 | # Track copy information for all file, not just "added" one (very slow) | |
624 | coreconfigitem( |
|
624 | coreconfigitem( | |
625 | b'devel', |
|
625 | b'devel', | |
626 | b'copy-tracing.trace-all-files', |
|
626 | b'copy-tracing.trace-all-files', | |
627 | default=False, |
|
627 | default=False, | |
628 | ) |
|
628 | ) | |
629 | coreconfigitem( |
|
629 | coreconfigitem( | |
630 | b'devel', |
|
630 | b'devel', | |
631 | b'default-date', |
|
631 | b'default-date', | |
632 | default=None, |
|
632 | default=None, | |
633 | ) |
|
633 | ) | |
634 | coreconfigitem( |
|
634 | coreconfigitem( | |
635 | b'devel', |
|
635 | b'devel', | |
636 | b'deprec-warn', |
|
636 | b'deprec-warn', | |
637 | default=False, |
|
637 | default=False, | |
638 | ) |
|
638 | ) | |
639 | coreconfigitem( |
|
639 | coreconfigitem( | |
640 | b'devel', |
|
640 | b'devel', | |
641 | b'disableloaddefaultcerts', |
|
641 | b'disableloaddefaultcerts', | |
642 | default=False, |
|
642 | default=False, | |
643 | ) |
|
643 | ) | |
644 | coreconfigitem( |
|
644 | coreconfigitem( | |
645 | b'devel', |
|
645 | b'devel', | |
646 | b'warn-empty-changegroup', |
|
646 | b'warn-empty-changegroup', | |
647 | default=False, |
|
647 | default=False, | |
648 | ) |
|
648 | ) | |
649 | coreconfigitem( |
|
649 | coreconfigitem( | |
650 | b'devel', |
|
650 | b'devel', | |
651 | b'legacy.exchange', |
|
651 | b'legacy.exchange', | |
652 | default=list, |
|
652 | default=list, | |
653 | ) |
|
653 | ) | |
654 | # When True, revlogs use a special reference version of the nodemap, that is not |
|
654 | # When True, revlogs use a special reference version of the nodemap, that is not | |
655 | # performant but is "known" to behave properly. |
|
655 | # performant but is "known" to behave properly. | |
656 | coreconfigitem( |
|
656 | coreconfigitem( | |
657 | b'devel', |
|
657 | b'devel', | |
658 | b'persistent-nodemap', |
|
658 | b'persistent-nodemap', | |
659 | default=False, |
|
659 | default=False, | |
660 | ) |
|
660 | ) | |
661 | coreconfigitem( |
|
661 | coreconfigitem( | |
662 | b'devel', |
|
662 | b'devel', | |
663 | b'servercafile', |
|
663 | b'servercafile', | |
664 | default=b'', |
|
664 | default=b'', | |
665 | ) |
|
665 | ) | |
666 | coreconfigitem( |
|
666 | coreconfigitem( | |
667 | b'devel', |
|
667 | b'devel', | |
668 | b'serverexactprotocol', |
|
668 | b'serverexactprotocol', | |
669 | default=b'', |
|
669 | default=b'', | |
670 | ) |
|
670 | ) | |
671 | coreconfigitem( |
|
671 | coreconfigitem( | |
672 | b'devel', |
|
672 | b'devel', | |
673 | b'serverrequirecert', |
|
673 | b'serverrequirecert', | |
674 | default=False, |
|
674 | default=False, | |
675 | ) |
|
675 | ) | |
676 | coreconfigitem( |
|
676 | coreconfigitem( | |
677 | b'devel', |
|
677 | b'devel', | |
678 | b'strip-obsmarkers', |
|
678 | b'strip-obsmarkers', | |
679 | default=True, |
|
679 | default=True, | |
680 | ) |
|
680 | ) | |
681 | coreconfigitem( |
|
681 | coreconfigitem( | |
682 | b'devel', |
|
682 | b'devel', | |
683 | b'warn-config', |
|
683 | b'warn-config', | |
684 | default=None, |
|
684 | default=None, | |
685 | ) |
|
685 | ) | |
686 | coreconfigitem( |
|
686 | coreconfigitem( | |
687 | b'devel', |
|
687 | b'devel', | |
688 | b'warn-config-default', |
|
688 | b'warn-config-default', | |
689 | default=None, |
|
689 | default=None, | |
690 | ) |
|
690 | ) | |
691 | coreconfigitem( |
|
691 | coreconfigitem( | |
692 | b'devel', |
|
692 | b'devel', | |
693 | b'user.obsmarker', |
|
693 | b'user.obsmarker', | |
694 | default=None, |
|
694 | default=None, | |
695 | ) |
|
695 | ) | |
696 | coreconfigitem( |
|
696 | coreconfigitem( | |
697 | b'devel', |
|
697 | b'devel', | |
698 | b'warn-config-unknown', |
|
698 | b'warn-config-unknown', | |
699 | default=None, |
|
699 | default=None, | |
700 | ) |
|
700 | ) | |
701 | coreconfigitem( |
|
701 | coreconfigitem( | |
702 | b'devel', |
|
702 | b'devel', | |
703 | b'debug.copies', |
|
703 | b'debug.copies', | |
704 | default=False, |
|
704 | default=False, | |
705 | ) |
|
705 | ) | |
706 | coreconfigitem( |
|
706 | coreconfigitem( | |
707 | b'devel', |
|
707 | b'devel', | |
708 | b'copy-tracing.multi-thread', |
|
708 | b'copy-tracing.multi-thread', | |
709 | default=True, |
|
709 | default=True, | |
710 | ) |
|
710 | ) | |
711 | coreconfigitem( |
|
711 | coreconfigitem( | |
712 | b'devel', |
|
712 | b'devel', | |
713 | b'debug.extensions', |
|
713 | b'debug.extensions', | |
714 | default=False, |
|
714 | default=False, | |
715 | ) |
|
715 | ) | |
716 | coreconfigitem( |
|
716 | coreconfigitem( | |
717 | b'devel', |
|
717 | b'devel', | |
718 | b'debug.repo-filters', |
|
718 | b'debug.repo-filters', | |
719 | default=False, |
|
719 | default=False, | |
720 | ) |
|
720 | ) | |
721 | coreconfigitem( |
|
721 | coreconfigitem( | |
722 | b'devel', |
|
722 | b'devel', | |
723 | b'debug.peer-request', |
|
723 | b'debug.peer-request', | |
724 | default=False, |
|
724 | default=False, | |
725 | ) |
|
725 | ) | |
726 | # If discovery.exchange-heads is False, the discovery will not start with |
|
726 | # If discovery.exchange-heads is False, the discovery will not start with | |
727 | # remote head fetching and local head querying. |
|
727 | # remote head fetching and local head querying. | |
728 | coreconfigitem( |
|
728 | coreconfigitem( | |
729 | b'devel', |
|
729 | b'devel', | |
730 | b'discovery.exchange-heads', |
|
730 | b'discovery.exchange-heads', | |
731 | default=True, |
|
731 | default=True, | |
732 | ) |
|
732 | ) | |
733 | # If discovery.grow-sample is False, the sample size used in set discovery will |
|
733 | # If discovery.grow-sample is False, the sample size used in set discovery will | |
734 | # not be increased through the process |
|
734 | # not be increased through the process | |
735 | coreconfigitem( |
|
735 | coreconfigitem( | |
736 | b'devel', |
|
736 | b'devel', | |
737 | b'discovery.grow-sample', |
|
737 | b'discovery.grow-sample', | |
738 | default=True, |
|
738 | default=True, | |
739 | ) |
|
739 | ) | |
740 | # discovery.grow-sample.rate control the rate at which the sample grow |
|
740 | # discovery.grow-sample.rate control the rate at which the sample grow | |
741 | coreconfigitem( |
|
741 | coreconfigitem( | |
742 | b'devel', |
|
742 | b'devel', | |
743 | b'discovery.grow-sample.rate', |
|
743 | b'discovery.grow-sample.rate', | |
744 | default=1.05, |
|
744 | default=1.05, | |
745 | ) |
|
745 | ) | |
746 | # If discovery.randomize is False, random sampling during discovery are |
|
746 | # If discovery.randomize is False, random sampling during discovery are | |
747 | # deterministic. It is meant for integration tests. |
|
747 | # deterministic. It is meant for integration tests. | |
748 | coreconfigitem( |
|
748 | coreconfigitem( | |
749 | b'devel', |
|
749 | b'devel', | |
750 | b'discovery.randomize', |
|
750 | b'discovery.randomize', | |
751 | default=True, |
|
751 | default=True, | |
752 | ) |
|
752 | ) | |
753 | # Control the initial size of the discovery sample |
|
753 | # Control the initial size of the discovery sample | |
754 | coreconfigitem( |
|
754 | coreconfigitem( | |
755 | b'devel', |
|
755 | b'devel', | |
756 | b'discovery.sample-size', |
|
756 | b'discovery.sample-size', | |
757 | default=200, |
|
757 | default=200, | |
758 | ) |
|
758 | ) | |
759 | # Control the initial size of the discovery for initial change |
|
759 | # Control the initial size of the discovery for initial change | |
760 | coreconfigitem( |
|
760 | coreconfigitem( | |
761 | b'devel', |
|
761 | b'devel', | |
762 | b'discovery.sample-size.initial', |
|
762 | b'discovery.sample-size.initial', | |
763 | default=100, |
|
763 | default=100, | |
764 | ) |
|
764 | ) | |
765 | _registerdiffopts(section=b'diff') |
|
765 | _registerdiffopts(section=b'diff') | |
766 | coreconfigitem( |
|
766 | coreconfigitem( | |
767 | b'diff', |
|
767 | b'diff', | |
768 | b'merge', |
|
768 | b'merge', | |
769 | default=False, |
|
769 | default=False, | |
770 | experimental=True, |
|
770 | experimental=True, | |
771 | ) |
|
771 | ) | |
772 | coreconfigitem( |
|
772 | coreconfigitem( | |
773 | b'email', |
|
773 | b'email', | |
774 | b'bcc', |
|
774 | b'bcc', | |
775 | default=None, |
|
775 | default=None, | |
776 | ) |
|
776 | ) | |
777 | coreconfigitem( |
|
777 | coreconfigitem( | |
778 | b'email', |
|
778 | b'email', | |
779 | b'cc', |
|
779 | b'cc', | |
780 | default=None, |
|
780 | default=None, | |
781 | ) |
|
781 | ) | |
782 | coreconfigitem( |
|
782 | coreconfigitem( | |
783 | b'email', |
|
783 | b'email', | |
784 | b'charsets', |
|
784 | b'charsets', | |
785 | default=list, |
|
785 | default=list, | |
786 | ) |
|
786 | ) | |
787 | coreconfigitem( |
|
787 | coreconfigitem( | |
788 | b'email', |
|
788 | b'email', | |
789 | b'from', |
|
789 | b'from', | |
790 | default=None, |
|
790 | default=None, | |
791 | ) |
|
791 | ) | |
792 | coreconfigitem( |
|
792 | coreconfigitem( | |
793 | b'email', |
|
793 | b'email', | |
794 | b'method', |
|
794 | b'method', | |
795 | default=b'smtp', |
|
795 | default=b'smtp', | |
796 | ) |
|
796 | ) | |
797 | coreconfigitem( |
|
797 | coreconfigitem( | |
798 | b'email', |
|
798 | b'email', | |
799 | b'reply-to', |
|
799 | b'reply-to', | |
800 | default=None, |
|
800 | default=None, | |
801 | ) |
|
801 | ) | |
802 | coreconfigitem( |
|
802 | coreconfigitem( | |
803 | b'email', |
|
803 | b'email', | |
804 | b'to', |
|
804 | b'to', | |
805 | default=None, |
|
805 | default=None, | |
806 | ) |
|
806 | ) | |
807 | coreconfigitem( |
|
807 | coreconfigitem( | |
808 | b'experimental', |
|
808 | b'experimental', | |
809 | b'archivemetatemplate', |
|
809 | b'archivemetatemplate', | |
810 | default=dynamicdefault, |
|
810 | default=dynamicdefault, | |
811 | ) |
|
811 | ) | |
812 | coreconfigitem( |
|
812 | coreconfigitem( | |
813 | b'experimental', |
|
813 | b'experimental', | |
814 | b'auto-publish', |
|
814 | b'auto-publish', | |
815 | default=b'publish', |
|
815 | default=b'publish', | |
816 | ) |
|
816 | ) | |
817 | coreconfigitem( |
|
817 | coreconfigitem( | |
818 | b'experimental', |
|
818 | b'experimental', | |
819 | b'bundle-phases', |
|
819 | b'bundle-phases', | |
820 | default=False, |
|
820 | default=False, | |
821 | ) |
|
821 | ) | |
822 | coreconfigitem( |
|
822 | coreconfigitem( | |
823 | b'experimental', |
|
823 | b'experimental', | |
824 | b'bundle2-advertise', |
|
824 | b'bundle2-advertise', | |
825 | default=True, |
|
825 | default=True, | |
826 | ) |
|
826 | ) | |
827 | coreconfigitem( |
|
827 | coreconfigitem( | |
828 | b'experimental', |
|
828 | b'experimental', | |
829 | b'bundle2-output-capture', |
|
829 | b'bundle2-output-capture', | |
830 | default=False, |
|
830 | default=False, | |
831 | ) |
|
831 | ) | |
832 | coreconfigitem( |
|
832 | coreconfigitem( | |
833 | b'experimental', |
|
833 | b'experimental', | |
834 | b'bundle2.pushback', |
|
834 | b'bundle2.pushback', | |
835 | default=False, |
|
835 | default=False, | |
836 | ) |
|
836 | ) | |
837 | coreconfigitem( |
|
837 | coreconfigitem( | |
838 | b'experimental', |
|
838 | b'experimental', | |
839 | b'bundle2lazylocking', |
|
839 | b'bundle2lazylocking', | |
840 | default=False, |
|
840 | default=False, | |
841 | ) |
|
841 | ) | |
842 | coreconfigitem( |
|
842 | coreconfigitem( | |
843 | b'experimental', |
|
843 | b'experimental', | |
844 | b'bundlecomplevel', |
|
844 | b'bundlecomplevel', | |
845 | default=None, |
|
845 | default=None, | |
846 | ) |
|
846 | ) | |
847 | coreconfigitem( |
|
847 | coreconfigitem( | |
848 | b'experimental', |
|
848 | b'experimental', | |
849 | b'bundlecomplevel.bzip2', |
|
849 | b'bundlecomplevel.bzip2', | |
850 | default=None, |
|
850 | default=None, | |
851 | ) |
|
851 | ) | |
852 | coreconfigitem( |
|
852 | coreconfigitem( | |
853 | b'experimental', |
|
853 | b'experimental', | |
854 | b'bundlecomplevel.gzip', |
|
854 | b'bundlecomplevel.gzip', | |
855 | default=None, |
|
855 | default=None, | |
856 | ) |
|
856 | ) | |
857 | coreconfigitem( |
|
857 | coreconfigitem( | |
858 | b'experimental', |
|
858 | b'experimental', | |
859 | b'bundlecomplevel.none', |
|
859 | b'bundlecomplevel.none', | |
860 | default=None, |
|
860 | default=None, | |
861 | ) |
|
861 | ) | |
862 | coreconfigitem( |
|
862 | coreconfigitem( | |
863 | b'experimental', |
|
863 | b'experimental', | |
864 | b'bundlecomplevel.zstd', |
|
864 | b'bundlecomplevel.zstd', | |
865 | default=None, |
|
865 | default=None, | |
866 | ) |
|
866 | ) | |
867 | coreconfigitem( |
|
867 | coreconfigitem( | |
868 | b'experimental', |
|
868 | b'experimental', | |
869 | b'changegroup3', |
|
869 | b'changegroup3', | |
870 | default=False, |
|
870 | default=False, | |
871 | ) |
|
871 | ) | |
872 | coreconfigitem( |
|
872 | coreconfigitem( | |
873 | b'experimental', |
|
873 | b'experimental', | |
874 | b'cleanup-as-archived', |
|
874 | b'cleanup-as-archived', | |
875 | default=False, |
|
875 | default=False, | |
876 | ) |
|
876 | ) | |
877 | coreconfigitem( |
|
877 | coreconfigitem( | |
878 | b'experimental', |
|
878 | b'experimental', | |
879 | b'clientcompressionengines', |
|
879 | b'clientcompressionengines', | |
880 | default=list, |
|
880 | default=list, | |
881 | ) |
|
881 | ) | |
882 | coreconfigitem( |
|
882 | coreconfigitem( | |
883 | b'experimental', |
|
883 | b'experimental', | |
884 | b'copytrace', |
|
884 | b'copytrace', | |
885 | default=b'on', |
|
885 | default=b'on', | |
886 | ) |
|
886 | ) | |
887 | coreconfigitem( |
|
887 | coreconfigitem( | |
888 | b'experimental', |
|
888 | b'experimental', | |
889 | b'copytrace.movecandidateslimit', |
|
889 | b'copytrace.movecandidateslimit', | |
890 | default=100, |
|
890 | default=100, | |
891 | ) |
|
891 | ) | |
892 | coreconfigitem( |
|
892 | coreconfigitem( | |
893 | b'experimental', |
|
893 | b'experimental', | |
894 | b'copytrace.sourcecommitlimit', |
|
894 | b'copytrace.sourcecommitlimit', | |
895 | default=100, |
|
895 | default=100, | |
896 | ) |
|
896 | ) | |
897 | coreconfigitem( |
|
897 | coreconfigitem( | |
898 | b'experimental', |
|
898 | b'experimental', | |
899 | b'copies.read-from', |
|
899 | b'copies.read-from', | |
900 | default=b"filelog-only", |
|
900 | default=b"filelog-only", | |
901 | ) |
|
901 | ) | |
902 | coreconfigitem( |
|
902 | coreconfigitem( | |
903 | b'experimental', |
|
903 | b'experimental', | |
904 | b'copies.write-to', |
|
904 | b'copies.write-to', | |
905 | default=b'filelog-only', |
|
905 | default=b'filelog-only', | |
906 | ) |
|
906 | ) | |
907 | coreconfigitem( |
|
907 | coreconfigitem( | |
908 | b'experimental', |
|
908 | b'experimental', | |
909 | b'crecordtest', |
|
909 | b'crecordtest', | |
910 | default=None, |
|
910 | default=None, | |
911 | ) |
|
911 | ) | |
912 | coreconfigitem( |
|
912 | coreconfigitem( | |
913 | b'experimental', |
|
913 | b'experimental', | |
914 | b'directaccess', |
|
914 | b'directaccess', | |
915 | default=False, |
|
915 | default=False, | |
916 | ) |
|
916 | ) | |
917 | coreconfigitem( |
|
917 | coreconfigitem( | |
918 | b'experimental', |
|
918 | b'experimental', | |
919 | b'directaccess.revnums', |
|
919 | b'directaccess.revnums', | |
920 | default=False, |
|
920 | default=False, | |
921 | ) |
|
921 | ) | |
922 | coreconfigitem( |
|
922 | coreconfigitem( | |
923 | b'experimental', |
|
923 | b'experimental', | |
924 | b'editortmpinhg', |
|
924 | b'editortmpinhg', | |
925 | default=False, |
|
925 | default=False, | |
926 | ) |
|
926 | ) | |
927 | coreconfigitem( |
|
927 | coreconfigitem( | |
928 | b'experimental', |
|
928 | b'experimental', | |
929 | b'evolution', |
|
929 | b'evolution', | |
930 | default=list, |
|
930 | default=list, | |
931 | ) |
|
931 | ) | |
932 | coreconfigitem( |
|
932 | coreconfigitem( | |
933 | b'experimental', |
|
933 | b'experimental', | |
934 | b'evolution.allowdivergence', |
|
934 | b'evolution.allowdivergence', | |
935 | default=False, |
|
935 | default=False, | |
936 | alias=[(b'experimental', b'allowdivergence')], |
|
936 | alias=[(b'experimental', b'allowdivergence')], | |
937 | ) |
|
937 | ) | |
938 | coreconfigitem( |
|
938 | coreconfigitem( | |
939 | b'experimental', |
|
939 | b'experimental', | |
940 | b'evolution.allowunstable', |
|
940 | b'evolution.allowunstable', | |
941 | default=None, |
|
941 | default=None, | |
942 | ) |
|
942 | ) | |
943 | coreconfigitem( |
|
943 | coreconfigitem( | |
944 | b'experimental', |
|
944 | b'experimental', | |
945 | b'evolution.createmarkers', |
|
945 | b'evolution.createmarkers', | |
946 | default=None, |
|
946 | default=None, | |
947 | ) |
|
947 | ) | |
948 | coreconfigitem( |
|
948 | coreconfigitem( | |
949 | b'experimental', |
|
949 | b'experimental', | |
950 | b'evolution.effect-flags', |
|
950 | b'evolution.effect-flags', | |
951 | default=True, |
|
951 | default=True, | |
952 | alias=[(b'experimental', b'effect-flags')], |
|
952 | alias=[(b'experimental', b'effect-flags')], | |
953 | ) |
|
953 | ) | |
954 | coreconfigitem( |
|
954 | coreconfigitem( | |
955 | b'experimental', |
|
955 | b'experimental', | |
956 | b'evolution.exchange', |
|
956 | b'evolution.exchange', | |
957 | default=None, |
|
957 | default=None, | |
958 | ) |
|
958 | ) | |
959 | coreconfigitem( |
|
959 | coreconfigitem( | |
960 | b'experimental', |
|
960 | b'experimental', | |
961 | b'evolution.bundle-obsmarker', |
|
961 | b'evolution.bundle-obsmarker', | |
962 | default=False, |
|
962 | default=False, | |
963 | ) |
|
963 | ) | |
964 | coreconfigitem( |
|
964 | coreconfigitem( | |
965 | b'experimental', |
|
965 | b'experimental', | |
966 | b'evolution.bundle-obsmarker:mandatory', |
|
966 | b'evolution.bundle-obsmarker:mandatory', | |
967 | default=True, |
|
967 | default=True, | |
968 | ) |
|
968 | ) | |
969 | coreconfigitem( |
|
969 | coreconfigitem( | |
970 | b'experimental', |
|
970 | b'experimental', | |
971 | b'log.topo', |
|
971 | b'log.topo', | |
972 | default=False, |
|
972 | default=False, | |
973 | ) |
|
973 | ) | |
974 | coreconfigitem( |
|
974 | coreconfigitem( | |
975 | b'experimental', |
|
975 | b'experimental', | |
976 | b'evolution.report-instabilities', |
|
976 | b'evolution.report-instabilities', | |
977 | default=True, |
|
977 | default=True, | |
978 | ) |
|
978 | ) | |
979 | coreconfigitem( |
|
979 | coreconfigitem( | |
980 | b'experimental', |
|
980 | b'experimental', | |
981 | b'evolution.track-operation', |
|
981 | b'evolution.track-operation', | |
982 | default=True, |
|
982 | default=True, | |
983 | ) |
|
983 | ) | |
984 | # repo-level config to exclude a revset visibility |
|
984 | # repo-level config to exclude a revset visibility | |
985 | # |
|
985 | # | |
986 | # The target use case is to use `share` to expose different subset of the same |
|
986 | # The target use case is to use `share` to expose different subset of the same | |
987 | # repository, especially server side. See also `server.view`. |
|
987 | # repository, especially server side. See also `server.view`. | |
988 | coreconfigitem( |
|
988 | coreconfigitem( | |
989 | b'experimental', |
|
989 | b'experimental', | |
990 | b'extra-filter-revs', |
|
990 | b'extra-filter-revs', | |
991 | default=None, |
|
991 | default=None, | |
992 | ) |
|
992 | ) | |
993 | coreconfigitem( |
|
993 | coreconfigitem( | |
994 | b'experimental', |
|
994 | b'experimental', | |
995 | b'maxdeltachainspan', |
|
995 | b'maxdeltachainspan', | |
996 | default=-1, |
|
996 | default=-1, | |
997 | ) |
|
997 | ) | |
998 | # tracks files which were undeleted (merge might delete them but we explicitly |
|
998 | # tracks files which were undeleted (merge might delete them but we explicitly | |
999 | # kept/undeleted them) and creates new filenodes for them |
|
999 | # kept/undeleted them) and creates new filenodes for them | |
1000 | coreconfigitem( |
|
1000 | coreconfigitem( | |
1001 | b'experimental', |
|
1001 | b'experimental', | |
1002 | b'merge-track-salvaged', |
|
1002 | b'merge-track-salvaged', | |
1003 | default=False, |
|
1003 | default=False, | |
1004 | ) |
|
1004 | ) | |
1005 | coreconfigitem( |
|
1005 | coreconfigitem( | |
1006 | b'experimental', |
|
1006 | b'experimental', | |
1007 | b'mergetempdirprefix', |
|
1007 | b'mergetempdirprefix', | |
1008 | default=None, |
|
1008 | default=None, | |
1009 | ) |
|
1009 | ) | |
1010 | coreconfigitem( |
|
1010 | coreconfigitem( | |
1011 | b'experimental', |
|
1011 | b'experimental', | |
1012 | b'mmapindexthreshold', |
|
1012 | b'mmapindexthreshold', | |
1013 | default=None, |
|
1013 | default=None, | |
1014 | ) |
|
1014 | ) | |
1015 | coreconfigitem( |
|
1015 | coreconfigitem( | |
1016 | b'experimental', |
|
1016 | b'experimental', | |
1017 | b'narrow', |
|
1017 | b'narrow', | |
1018 | default=False, |
|
1018 | default=False, | |
1019 | ) |
|
1019 | ) | |
1020 | coreconfigitem( |
|
1020 | coreconfigitem( | |
1021 | b'experimental', |
|
1021 | b'experimental', | |
1022 | b'nonnormalparanoidcheck', |
|
1022 | b'nonnormalparanoidcheck', | |
1023 | default=False, |
|
1023 | default=False, | |
1024 | ) |
|
1024 | ) | |
1025 | coreconfigitem( |
|
1025 | coreconfigitem( | |
1026 | b'experimental', |
|
1026 | b'experimental', | |
1027 | b'exportableenviron', |
|
1027 | b'exportableenviron', | |
1028 | default=list, |
|
1028 | default=list, | |
1029 | ) |
|
1029 | ) | |
1030 | coreconfigitem( |
|
1030 | coreconfigitem( | |
1031 | b'experimental', |
|
1031 | b'experimental', | |
1032 | b'extendedheader.index', |
|
1032 | b'extendedheader.index', | |
1033 | default=None, |
|
1033 | default=None, | |
1034 | ) |
|
1034 | ) | |
1035 | coreconfigitem( |
|
1035 | coreconfigitem( | |
1036 | b'experimental', |
|
1036 | b'experimental', | |
1037 | b'extendedheader.similarity', |
|
1037 | b'extendedheader.similarity', | |
1038 | default=False, |
|
1038 | default=False, | |
1039 | ) |
|
1039 | ) | |
1040 | coreconfigitem( |
|
1040 | coreconfigitem( | |
1041 | b'experimental', |
|
1041 | b'experimental', | |
1042 | b'graphshorten', |
|
1042 | b'graphshorten', | |
1043 | default=False, |
|
1043 | default=False, | |
1044 | ) |
|
1044 | ) | |
1045 | coreconfigitem( |
|
1045 | coreconfigitem( | |
1046 | b'experimental', |
|
1046 | b'experimental', | |
1047 | b'graphstyle.parent', |
|
1047 | b'graphstyle.parent', | |
1048 | default=dynamicdefault, |
|
1048 | default=dynamicdefault, | |
1049 | ) |
|
1049 | ) | |
1050 | coreconfigitem( |
|
1050 | coreconfigitem( | |
1051 | b'experimental', |
|
1051 | b'experimental', | |
1052 | b'graphstyle.missing', |
|
1052 | b'graphstyle.missing', | |
1053 | default=dynamicdefault, |
|
1053 | default=dynamicdefault, | |
1054 | ) |
|
1054 | ) | |
1055 | coreconfigitem( |
|
1055 | coreconfigitem( | |
1056 | b'experimental', |
|
1056 | b'experimental', | |
1057 | b'graphstyle.grandparent', |
|
1057 | b'graphstyle.grandparent', | |
1058 | default=dynamicdefault, |
|
1058 | default=dynamicdefault, | |
1059 | ) |
|
1059 | ) | |
1060 | coreconfigitem( |
|
1060 | coreconfigitem( | |
1061 | b'experimental', |
|
1061 | b'experimental', | |
1062 | b'hook-track-tags', |
|
1062 | b'hook-track-tags', | |
1063 | default=False, |
|
1063 | default=False, | |
1064 | ) |
|
1064 | ) | |
1065 | coreconfigitem( |
|
1065 | coreconfigitem( | |
1066 | b'experimental', |
|
1066 | b'experimental', | |
1067 | b'httppeer.advertise-v2', |
|
1067 | b'httppeer.advertise-v2', | |
1068 | default=False, |
|
1068 | default=False, | |
1069 | ) |
|
1069 | ) | |
1070 | coreconfigitem( |
|
1070 | coreconfigitem( | |
1071 | b'experimental', |
|
1071 | b'experimental', | |
1072 | b'httppeer.v2-encoder-order', |
|
1072 | b'httppeer.v2-encoder-order', | |
1073 | default=None, |
|
1073 | default=None, | |
1074 | ) |
|
1074 | ) | |
1075 | coreconfigitem( |
|
1075 | coreconfigitem( | |
1076 | b'experimental', |
|
1076 | b'experimental', | |
1077 | b'httppostargs', |
|
1077 | b'httppostargs', | |
1078 | default=False, |
|
1078 | default=False, | |
1079 | ) |
|
1079 | ) | |
1080 | coreconfigitem(b'experimental', b'nointerrupt', default=False) |
|
1080 | coreconfigitem(b'experimental', b'nointerrupt', default=False) | |
1081 | coreconfigitem(b'experimental', b'nointerrupt-interactiveonly', default=True) |
|
1081 | coreconfigitem(b'experimental', b'nointerrupt-interactiveonly', default=True) | |
1082 |
|
1082 | |||
1083 | coreconfigitem( |
|
1083 | coreconfigitem( | |
1084 | b'experimental', |
|
1084 | b'experimental', | |
1085 | b'obsmarkers-exchange-debug', |
|
1085 | b'obsmarkers-exchange-debug', | |
1086 | default=False, |
|
1086 | default=False, | |
1087 | ) |
|
1087 | ) | |
1088 | coreconfigitem( |
|
1088 | coreconfigitem( | |
1089 | b'experimental', |
|
1089 | b'experimental', | |
1090 | b'remotenames', |
|
1090 | b'remotenames', | |
1091 | default=False, |
|
1091 | default=False, | |
1092 | ) |
|
1092 | ) | |
1093 | coreconfigitem( |
|
1093 | coreconfigitem( | |
1094 | b'experimental', |
|
1094 | b'experimental', | |
1095 | b'removeemptydirs', |
|
1095 | b'removeemptydirs', | |
1096 | default=True, |
|
1096 | default=True, | |
1097 | ) |
|
1097 | ) | |
1098 | coreconfigitem( |
|
1098 | coreconfigitem( | |
1099 | b'experimental', |
|
1099 | b'experimental', | |
1100 | b'revert.interactive.select-to-keep', |
|
1100 | b'revert.interactive.select-to-keep', | |
1101 | default=False, |
|
1101 | default=False, | |
1102 | ) |
|
1102 | ) | |
1103 | coreconfigitem( |
|
1103 | coreconfigitem( | |
1104 | b'experimental', |
|
1104 | b'experimental', | |
1105 | b'revisions.prefixhexnode', |
|
1105 | b'revisions.prefixhexnode', | |
1106 | default=False, |
|
1106 | default=False, | |
1107 | ) |
|
1107 | ) | |
1108 | coreconfigitem( |
|
1108 | coreconfigitem( | |
1109 | b'experimental', |
|
1109 | b'experimental', | |
1110 | b'revlogv2', |
|
1110 | b'revlogv2', | |
1111 | default=None, |
|
1111 | default=None, | |
1112 | ) |
|
1112 | ) | |
1113 | coreconfigitem( |
|
1113 | coreconfigitem( | |
1114 | b'experimental', |
|
1114 | b'experimental', | |
1115 | b'revisions.disambiguatewithin', |
|
1115 | b'revisions.disambiguatewithin', | |
1116 | default=None, |
|
1116 | default=None, | |
1117 | ) |
|
1117 | ) | |
1118 | coreconfigitem( |
|
1118 | coreconfigitem( | |
1119 | b'experimental', |
|
1119 | b'experimental', | |
1120 | b'rust.index', |
|
1120 | b'rust.index', | |
1121 | default=False, |
|
1121 | default=False, | |
1122 | ) |
|
1122 | ) | |
1123 | coreconfigitem( |
|
1123 | coreconfigitem( | |
1124 | b'experimental', |
|
1124 | b'experimental', | |
1125 | b'server.filesdata.recommended-batch-size', |
|
1125 | b'server.filesdata.recommended-batch-size', | |
1126 | default=50000, |
|
1126 | default=50000, | |
1127 | ) |
|
1127 | ) | |
1128 | coreconfigitem( |
|
1128 | coreconfigitem( | |
1129 | b'experimental', |
|
1129 | b'experimental', | |
1130 | b'server.manifestdata.recommended-batch-size', |
|
1130 | b'server.manifestdata.recommended-batch-size', | |
1131 | default=100000, |
|
1131 | default=100000, | |
1132 | ) |
|
1132 | ) | |
1133 | coreconfigitem( |
|
1133 | coreconfigitem( | |
1134 | b'experimental', |
|
1134 | b'experimental', | |
1135 | b'server.stream-narrow-clones', |
|
1135 | b'server.stream-narrow-clones', | |
1136 | default=False, |
|
1136 | default=False, | |
1137 | ) |
|
1137 | ) | |
1138 | coreconfigitem( |
|
1138 | coreconfigitem( | |
1139 | b'experimental', |
|
1139 | b'experimental', | |
1140 | b'single-head-per-branch', |
|
1140 | b'single-head-per-branch', | |
1141 | default=False, |
|
1141 | default=False, | |
1142 | ) |
|
1142 | ) | |
1143 | coreconfigitem( |
|
1143 | coreconfigitem( | |
1144 | b'experimental', |
|
1144 | b'experimental', | |
1145 | b'single-head-per-branch:account-closed-heads', |
|
1145 | b'single-head-per-branch:account-closed-heads', | |
1146 | default=False, |
|
1146 | default=False, | |
1147 | ) |
|
1147 | ) | |
1148 | coreconfigitem( |
|
1148 | coreconfigitem( | |
1149 | b'experimental', |
|
1149 | b'experimental', | |
1150 | b'single-head-per-branch:public-changes-only', |
|
1150 | b'single-head-per-branch:public-changes-only', | |
1151 | default=False, |
|
1151 | default=False, | |
1152 | ) |
|
1152 | ) | |
1153 | coreconfigitem( |
|
1153 | coreconfigitem( | |
1154 | b'experimental', |
|
1154 | b'experimental', | |
1155 | b'sshserver.support-v2', |
|
1155 | b'sshserver.support-v2', | |
1156 | default=False, |
|
1156 | default=False, | |
1157 | ) |
|
1157 | ) | |
1158 | coreconfigitem( |
|
1158 | coreconfigitem( | |
1159 | b'experimental', |
|
1159 | b'experimental', | |
1160 | b'sparse-read', |
|
1160 | b'sparse-read', | |
1161 | default=False, |
|
1161 | default=False, | |
1162 | ) |
|
1162 | ) | |
1163 | coreconfigitem( |
|
1163 | coreconfigitem( | |
1164 | b'experimental', |
|
1164 | b'experimental', | |
1165 | b'sparse-read.density-threshold', |
|
1165 | b'sparse-read.density-threshold', | |
1166 | default=0.50, |
|
1166 | default=0.50, | |
1167 | ) |
|
1167 | ) | |
1168 | coreconfigitem( |
|
1168 | coreconfigitem( | |
1169 | b'experimental', |
|
1169 | b'experimental', | |
1170 | b'sparse-read.min-gap-size', |
|
1170 | b'sparse-read.min-gap-size', | |
1171 | default=b'65K', |
|
1171 | default=b'65K', | |
1172 | ) |
|
1172 | ) | |
1173 | coreconfigitem( |
|
1173 | coreconfigitem( | |
1174 | b'experimental', |
|
1174 | b'experimental', | |
1175 | b'treemanifest', |
|
1175 | b'treemanifest', | |
1176 | default=False, |
|
1176 | default=False, | |
1177 | ) |
|
1177 | ) | |
1178 | coreconfigitem( |
|
1178 | coreconfigitem( | |
1179 | b'experimental', |
|
1179 | b'experimental', | |
1180 | b'update.atomic-file', |
|
1180 | b'update.atomic-file', | |
1181 | default=False, |
|
1181 | default=False, | |
1182 | ) |
|
1182 | ) | |
1183 | coreconfigitem( |
|
1183 | coreconfigitem( | |
1184 | b'experimental', |
|
1184 | b'experimental', | |
1185 | b'sshpeer.advertise-v2', |
|
1185 | b'sshpeer.advertise-v2', | |
1186 | default=False, |
|
1186 | default=False, | |
1187 | ) |
|
1187 | ) | |
1188 | coreconfigitem( |
|
1188 | coreconfigitem( | |
1189 | b'experimental', |
|
1189 | b'experimental', | |
1190 | b'web.apiserver', |
|
1190 | b'web.apiserver', | |
1191 | default=False, |
|
1191 | default=False, | |
1192 | ) |
|
1192 | ) | |
1193 | coreconfigitem( |
|
1193 | coreconfigitem( | |
1194 | b'experimental', |
|
1194 | b'experimental', | |
1195 | b'web.api.http-v2', |
|
1195 | b'web.api.http-v2', | |
1196 | default=False, |
|
1196 | default=False, | |
1197 | ) |
|
1197 | ) | |
1198 | coreconfigitem( |
|
1198 | coreconfigitem( | |
1199 | b'experimental', |
|
1199 | b'experimental', | |
1200 | b'web.api.debugreflect', |
|
1200 | b'web.api.debugreflect', | |
1201 | default=False, |
|
1201 | default=False, | |
1202 | ) |
|
1202 | ) | |
1203 | coreconfigitem( |
|
1203 | coreconfigitem( | |
1204 | b'experimental', |
|
1204 | b'experimental', | |
1205 | b'worker.wdir-get-thread-safe', |
|
1205 | b'worker.wdir-get-thread-safe', | |
1206 | default=False, |
|
1206 | default=False, | |
1207 | ) |
|
1207 | ) | |
1208 | coreconfigitem( |
|
1208 | coreconfigitem( | |
1209 | b'experimental', |
|
1209 | b'experimental', | |
1210 | b'worker.repository-upgrade', |
|
1210 | b'worker.repository-upgrade', | |
1211 | default=False, |
|
1211 | default=False, | |
1212 | ) |
|
1212 | ) | |
1213 | coreconfigitem( |
|
1213 | coreconfigitem( | |
1214 | b'experimental', |
|
1214 | b'experimental', | |
1215 | b'xdiff', |
|
1215 | b'xdiff', | |
1216 | default=False, |
|
1216 | default=False, | |
1217 | ) |
|
1217 | ) | |
1218 | coreconfigitem( |
|
1218 | coreconfigitem( | |
1219 | b'extensions', |
|
1219 | b'extensions', | |
1220 | b'.*', |
|
1220 | b'.*', | |
1221 | default=None, |
|
1221 | default=None, | |
1222 | generic=True, |
|
1222 | generic=True, | |
1223 | ) |
|
1223 | ) | |
1224 | coreconfigitem( |
|
1224 | coreconfigitem( | |
1225 | b'extdata', |
|
1225 | b'extdata', | |
1226 | b'.*', |
|
1226 | b'.*', | |
1227 | default=None, |
|
1227 | default=None, | |
1228 | generic=True, |
|
1228 | generic=True, | |
1229 | ) |
|
1229 | ) | |
1230 | coreconfigitem( |
|
1230 | coreconfigitem( | |
1231 | b'format', |
|
1231 | b'format', | |
1232 | b'bookmarks-in-store', |
|
1232 | b'bookmarks-in-store', | |
1233 | default=False, |
|
1233 | default=False, | |
1234 | ) |
|
1234 | ) | |
1235 | coreconfigitem( |
|
1235 | coreconfigitem( | |
1236 | b'format', |
|
1236 | b'format', | |
1237 | b'chunkcachesize', |
|
1237 | b'chunkcachesize', | |
1238 | default=None, |
|
1238 | default=None, | |
1239 | experimental=True, |
|
1239 | experimental=True, | |
1240 | ) |
|
1240 | ) | |
1241 | coreconfigitem( |
|
1241 | coreconfigitem( | |
1242 | b'format', |
|
1242 | b'format', | |
1243 | b'dotencode', |
|
1243 | b'dotencode', | |
1244 | default=True, |
|
1244 | default=True, | |
1245 | ) |
|
1245 | ) | |
1246 | coreconfigitem( |
|
1246 | coreconfigitem( | |
1247 | b'format', |
|
1247 | b'format', | |
1248 | b'generaldelta', |
|
1248 | b'generaldelta', | |
1249 | default=False, |
|
1249 | default=False, | |
1250 | experimental=True, |
|
1250 | experimental=True, | |
1251 | ) |
|
1251 | ) | |
1252 | coreconfigitem( |
|
1252 | coreconfigitem( | |
1253 | b'format', |
|
1253 | b'format', | |
1254 | b'manifestcachesize', |
|
1254 | b'manifestcachesize', | |
1255 | default=None, |
|
1255 | default=None, | |
1256 | experimental=True, |
|
1256 | experimental=True, | |
1257 | ) |
|
1257 | ) | |
1258 | coreconfigitem( |
|
1258 | coreconfigitem( | |
1259 | b'format', |
|
1259 | b'format', | |
1260 | b'maxchainlen', |
|
1260 | b'maxchainlen', | |
1261 | default=dynamicdefault, |
|
1261 | default=dynamicdefault, | |
1262 | experimental=True, |
|
1262 | experimental=True, | |
1263 | ) |
|
1263 | ) | |
1264 | coreconfigitem( |
|
1264 | coreconfigitem( | |
1265 | b'format', |
|
1265 | b'format', | |
1266 | b'obsstore-version', |
|
1266 | b'obsstore-version', | |
1267 | default=None, |
|
1267 | default=None, | |
1268 | ) |
|
1268 | ) | |
1269 | coreconfigitem( |
|
1269 | coreconfigitem( | |
1270 | b'format', |
|
1270 | b'format', | |
1271 | b'sparse-revlog', |
|
1271 | b'sparse-revlog', | |
1272 | default=True, |
|
1272 | default=True, | |
1273 | ) |
|
1273 | ) | |
1274 | coreconfigitem( |
|
1274 | coreconfigitem( | |
1275 | b'format', |
|
1275 | b'format', | |
1276 | b'revlog-compression', |
|
1276 | b'revlog-compression', | |
1277 | default=lambda: [b'zlib'], |
|
1277 | default=lambda: [b'zlib'], | |
1278 | alias=[(b'experimental', b'format.compression')], |
|
1278 | alias=[(b'experimental', b'format.compression')], | |
1279 | ) |
|
1279 | ) | |
1280 | coreconfigitem( |
|
1280 | coreconfigitem( | |
1281 | b'format', |
|
1281 | b'format', | |
1282 | b'usefncache', |
|
1282 | b'usefncache', | |
1283 | default=True, |
|
1283 | default=True, | |
1284 | ) |
|
1284 | ) | |
1285 | coreconfigitem( |
|
1285 | coreconfigitem( | |
1286 | b'format', |
|
1286 | b'format', | |
1287 | b'usegeneraldelta', |
|
1287 | b'usegeneraldelta', | |
1288 | default=True, |
|
1288 | default=True, | |
1289 | ) |
|
1289 | ) | |
1290 | coreconfigitem( |
|
1290 | coreconfigitem( | |
1291 | b'format', |
|
1291 | b'format', | |
1292 | b'usestore', |
|
1292 | b'usestore', | |
1293 | default=True, |
|
1293 | default=True, | |
1294 | ) |
|
1294 | ) | |
1295 | coreconfigitem( |
|
1295 | coreconfigitem( | |
1296 | b'format', |
|
1296 | b'format', | |
1297 | b'use-persistent-nodemap', |
|
1297 | b'use-persistent-nodemap', | |
1298 | default=False, |
|
1298 | default=False, | |
1299 | ) |
|
1299 | ) | |
|
1300 | # TODO needs to grow a docket file to at least store the last offset of the data | |||
|
1301 | # file when rewriting sidedata. | |||
|
1302 | # Will also need a way of dealing with garbage data if we allow rewriting | |||
|
1303 | # *existing* sidedata. | |||
|
1304 | # Exchange-wise, we will also need to do something more efficient than keeping | |||
|
1305 | # references to the affected revlogs, especially memory-wise when rewriting | |||
|
1306 | # sidedata. | |||
|
1307 | # Also... compress the sidedata? (this should be coming very soon) | |||
1300 | coreconfigitem( |
|
1308 | coreconfigitem( | |
1301 | b'format', |
|
1309 | b'format', | |
1302 | b'exp-revlogv2.2', |
|
1310 | b'exp-revlogv2.2', | |
1303 | default=False, |
|
1311 | default=False, | |
1304 | experimental=True, |
|
1312 | experimental=True, | |
1305 | ) |
|
1313 | ) | |
1306 | coreconfigitem( |
|
1314 | coreconfigitem( | |
1307 | b'format', |
|
1315 | b'format', | |
1308 | b'exp-use-copies-side-data-changeset', |
|
1316 | b'exp-use-copies-side-data-changeset', | |
1309 | default=False, |
|
1317 | default=False, | |
1310 | experimental=True, |
|
1318 | experimental=True, | |
1311 | ) |
|
1319 | ) | |
1312 | coreconfigitem( |
|
1320 | coreconfigitem( | |
1313 | b'format', |
|
1321 | b'format', | |
1314 | b'exp-use-side-data', |
|
1322 | b'exp-use-side-data', | |
1315 | default=False, |
|
1323 | default=False, | |
1316 | experimental=True, |
|
1324 | experimental=True, | |
1317 | ) |
|
1325 | ) | |
1318 | coreconfigitem( |
|
1326 | coreconfigitem( | |
1319 | b'format', |
|
1327 | b'format', | |
1320 | b'use-share-safe', |
|
1328 | b'use-share-safe', | |
1321 | default=False, |
|
1329 | default=False, | |
1322 | ) |
|
1330 | ) | |
1323 | coreconfigitem( |
|
1331 | coreconfigitem( | |
1324 | b'format', |
|
1332 | b'format', | |
1325 | b'internal-phase', |
|
1333 | b'internal-phase', | |
1326 | default=False, |
|
1334 | default=False, | |
1327 | experimental=True, |
|
1335 | experimental=True, | |
1328 | ) |
|
1336 | ) | |
1329 | coreconfigitem( |
|
1337 | coreconfigitem( | |
1330 | b'fsmonitor', |
|
1338 | b'fsmonitor', | |
1331 | b'warn_when_unused', |
|
1339 | b'warn_when_unused', | |
1332 | default=True, |
|
1340 | default=True, | |
1333 | ) |
|
1341 | ) | |
1334 | coreconfigitem( |
|
1342 | coreconfigitem( | |
1335 | b'fsmonitor', |
|
1343 | b'fsmonitor', | |
1336 | b'warn_update_file_count', |
|
1344 | b'warn_update_file_count', | |
1337 | default=50000, |
|
1345 | default=50000, | |
1338 | ) |
|
1346 | ) | |
1339 | coreconfigitem( |
|
1347 | coreconfigitem( | |
1340 | b'fsmonitor', |
|
1348 | b'fsmonitor', | |
1341 | b'warn_update_file_count_rust', |
|
1349 | b'warn_update_file_count_rust', | |
1342 | default=400000, |
|
1350 | default=400000, | |
1343 | ) |
|
1351 | ) | |
1344 | coreconfigitem( |
|
1352 | coreconfigitem( | |
1345 | b'help', |
|
1353 | b'help', | |
1346 | br'hidden-command\..*', |
|
1354 | br'hidden-command\..*', | |
1347 | default=False, |
|
1355 | default=False, | |
1348 | generic=True, |
|
1356 | generic=True, | |
1349 | ) |
|
1357 | ) | |
1350 | coreconfigitem( |
|
1358 | coreconfigitem( | |
1351 | b'help', |
|
1359 | b'help', | |
1352 | br'hidden-topic\..*', |
|
1360 | br'hidden-topic\..*', | |
1353 | default=False, |
|
1361 | default=False, | |
1354 | generic=True, |
|
1362 | generic=True, | |
1355 | ) |
|
1363 | ) | |
1356 | coreconfigitem( |
|
1364 | coreconfigitem( | |
1357 | b'hooks', |
|
1365 | b'hooks', | |
1358 | b'[^:]*', |
|
1366 | b'[^:]*', | |
1359 | default=dynamicdefault, |
|
1367 | default=dynamicdefault, | |
1360 | generic=True, |
|
1368 | generic=True, | |
1361 | ) |
|
1369 | ) | |
1362 | coreconfigitem( |
|
1370 | coreconfigitem( | |
1363 | b'hooks', |
|
1371 | b'hooks', | |
1364 | b'.*:run-with-plain', |
|
1372 | b'.*:run-with-plain', | |
1365 | default=True, |
|
1373 | default=True, | |
1366 | generic=True, |
|
1374 | generic=True, | |
1367 | ) |
|
1375 | ) | |
1368 | coreconfigitem( |
|
1376 | coreconfigitem( | |
1369 | b'hgweb-paths', |
|
1377 | b'hgweb-paths', | |
1370 | b'.*', |
|
1378 | b'.*', | |
1371 | default=list, |
|
1379 | default=list, | |
1372 | generic=True, |
|
1380 | generic=True, | |
1373 | ) |
|
1381 | ) | |
1374 | coreconfigitem( |
|
1382 | coreconfigitem( | |
1375 | b'hostfingerprints', |
|
1383 | b'hostfingerprints', | |
1376 | b'.*', |
|
1384 | b'.*', | |
1377 | default=list, |
|
1385 | default=list, | |
1378 | generic=True, |
|
1386 | generic=True, | |
1379 | ) |
|
1387 | ) | |
1380 | coreconfigitem( |
|
1388 | coreconfigitem( | |
1381 | b'hostsecurity', |
|
1389 | b'hostsecurity', | |
1382 | b'ciphers', |
|
1390 | b'ciphers', | |
1383 | default=None, |
|
1391 | default=None, | |
1384 | ) |
|
1392 | ) | |
1385 | coreconfigitem( |
|
1393 | coreconfigitem( | |
1386 | b'hostsecurity', |
|
1394 | b'hostsecurity', | |
1387 | b'minimumprotocol', |
|
1395 | b'minimumprotocol', | |
1388 | default=dynamicdefault, |
|
1396 | default=dynamicdefault, | |
1389 | ) |
|
1397 | ) | |
1390 | coreconfigitem( |
|
1398 | coreconfigitem( | |
1391 | b'hostsecurity', |
|
1399 | b'hostsecurity', | |
1392 | b'.*:minimumprotocol$', |
|
1400 | b'.*:minimumprotocol$', | |
1393 | default=dynamicdefault, |
|
1401 | default=dynamicdefault, | |
1394 | generic=True, |
|
1402 | generic=True, | |
1395 | ) |
|
1403 | ) | |
1396 | coreconfigitem( |
|
1404 | coreconfigitem( | |
1397 | b'hostsecurity', |
|
1405 | b'hostsecurity', | |
1398 | b'.*:ciphers$', |
|
1406 | b'.*:ciphers$', | |
1399 | default=dynamicdefault, |
|
1407 | default=dynamicdefault, | |
1400 | generic=True, |
|
1408 | generic=True, | |
1401 | ) |
|
1409 | ) | |
1402 | coreconfigitem( |
|
1410 | coreconfigitem( | |
1403 | b'hostsecurity', |
|
1411 | b'hostsecurity', | |
1404 | b'.*:fingerprints$', |
|
1412 | b'.*:fingerprints$', | |
1405 | default=list, |
|
1413 | default=list, | |
1406 | generic=True, |
|
1414 | generic=True, | |
1407 | ) |
|
1415 | ) | |
1408 | coreconfigitem( |
|
1416 | coreconfigitem( | |
1409 | b'hostsecurity', |
|
1417 | b'hostsecurity', | |
1410 | b'.*:verifycertsfile$', |
|
1418 | b'.*:verifycertsfile$', | |
1411 | default=None, |
|
1419 | default=None, | |
1412 | generic=True, |
|
1420 | generic=True, | |
1413 | ) |
|
1421 | ) | |
1414 |
|
1422 | |||
1415 | coreconfigitem( |
|
1423 | coreconfigitem( | |
1416 | b'http_proxy', |
|
1424 | b'http_proxy', | |
1417 | b'always', |
|
1425 | b'always', | |
1418 | default=False, |
|
1426 | default=False, | |
1419 | ) |
|
1427 | ) | |
1420 | coreconfigitem( |
|
1428 | coreconfigitem( | |
1421 | b'http_proxy', |
|
1429 | b'http_proxy', | |
1422 | b'host', |
|
1430 | b'host', | |
1423 | default=None, |
|
1431 | default=None, | |
1424 | ) |
|
1432 | ) | |
1425 | coreconfigitem( |
|
1433 | coreconfigitem( | |
1426 | b'http_proxy', |
|
1434 | b'http_proxy', | |
1427 | b'no', |
|
1435 | b'no', | |
1428 | default=list, |
|
1436 | default=list, | |
1429 | ) |
|
1437 | ) | |
1430 | coreconfigitem( |
|
1438 | coreconfigitem( | |
1431 | b'http_proxy', |
|
1439 | b'http_proxy', | |
1432 | b'passwd', |
|
1440 | b'passwd', | |
1433 | default=None, |
|
1441 | default=None, | |
1434 | ) |
|
1442 | ) | |
1435 | coreconfigitem( |
|
1443 | coreconfigitem( | |
1436 | b'http_proxy', |
|
1444 | b'http_proxy', | |
1437 | b'user', |
|
1445 | b'user', | |
1438 | default=None, |
|
1446 | default=None, | |
1439 | ) |
|
1447 | ) | |
1440 |
|
1448 | |||
1441 | coreconfigitem( |
|
1449 | coreconfigitem( | |
1442 | b'http', |
|
1450 | b'http', | |
1443 | b'timeout', |
|
1451 | b'timeout', | |
1444 | default=None, |
|
1452 | default=None, | |
1445 | ) |
|
1453 | ) | |
1446 |
|
1454 | |||
1447 | coreconfigitem( |
|
1455 | coreconfigitem( | |
1448 | b'logtoprocess', |
|
1456 | b'logtoprocess', | |
1449 | b'commandexception', |
|
1457 | b'commandexception', | |
1450 | default=None, |
|
1458 | default=None, | |
1451 | ) |
|
1459 | ) | |
1452 | coreconfigitem( |
|
1460 | coreconfigitem( | |
1453 | b'logtoprocess', |
|
1461 | b'logtoprocess', | |
1454 | b'commandfinish', |
|
1462 | b'commandfinish', | |
1455 | default=None, |
|
1463 | default=None, | |
1456 | ) |
|
1464 | ) | |
1457 | coreconfigitem( |
|
1465 | coreconfigitem( | |
1458 | b'logtoprocess', |
|
1466 | b'logtoprocess', | |
1459 | b'command', |
|
1467 | b'command', | |
1460 | default=None, |
|
1468 | default=None, | |
1461 | ) |
|
1469 | ) | |
1462 | coreconfigitem( |
|
1470 | coreconfigitem( | |
1463 | b'logtoprocess', |
|
1471 | b'logtoprocess', | |
1464 | b'develwarn', |
|
1472 | b'develwarn', | |
1465 | default=None, |
|
1473 | default=None, | |
1466 | ) |
|
1474 | ) | |
1467 | coreconfigitem( |
|
1475 | coreconfigitem( | |
1468 | b'logtoprocess', |
|
1476 | b'logtoprocess', | |
1469 | b'uiblocked', |
|
1477 | b'uiblocked', | |
1470 | default=None, |
|
1478 | default=None, | |
1471 | ) |
|
1479 | ) | |
1472 | coreconfigitem( |
|
1480 | coreconfigitem( | |
1473 | b'merge', |
|
1481 | b'merge', | |
1474 | b'checkunknown', |
|
1482 | b'checkunknown', | |
1475 | default=b'abort', |
|
1483 | default=b'abort', | |
1476 | ) |
|
1484 | ) | |
1477 | coreconfigitem( |
|
1485 | coreconfigitem( | |
1478 | b'merge', |
|
1486 | b'merge', | |
1479 | b'checkignored', |
|
1487 | b'checkignored', | |
1480 | default=b'abort', |
|
1488 | default=b'abort', | |
1481 | ) |
|
1489 | ) | |
1482 | coreconfigitem( |
|
1490 | coreconfigitem( | |
1483 | b'experimental', |
|
1491 | b'experimental', | |
1484 | b'merge.checkpathconflicts', |
|
1492 | b'merge.checkpathconflicts', | |
1485 | default=False, |
|
1493 | default=False, | |
1486 | ) |
|
1494 | ) | |
1487 | coreconfigitem( |
|
1495 | coreconfigitem( | |
1488 | b'merge', |
|
1496 | b'merge', | |
1489 | b'followcopies', |
|
1497 | b'followcopies', | |
1490 | default=True, |
|
1498 | default=True, | |
1491 | ) |
|
1499 | ) | |
1492 | coreconfigitem( |
|
1500 | coreconfigitem( | |
1493 | b'merge', |
|
1501 | b'merge', | |
1494 | b'on-failure', |
|
1502 | b'on-failure', | |
1495 | default=b'continue', |
|
1503 | default=b'continue', | |
1496 | ) |
|
1504 | ) | |
1497 | coreconfigitem( |
|
1505 | coreconfigitem( | |
1498 | b'merge', |
|
1506 | b'merge', | |
1499 | b'preferancestor', |
|
1507 | b'preferancestor', | |
1500 | default=lambda: [b'*'], |
|
1508 | default=lambda: [b'*'], | |
1501 | experimental=True, |
|
1509 | experimental=True, | |
1502 | ) |
|
1510 | ) | |
1503 | coreconfigitem( |
|
1511 | coreconfigitem( | |
1504 | b'merge', |
|
1512 | b'merge', | |
1505 | b'strict-capability-check', |
|
1513 | b'strict-capability-check', | |
1506 | default=False, |
|
1514 | default=False, | |
1507 | ) |
|
1515 | ) | |
1508 | coreconfigitem( |
|
1516 | coreconfigitem( | |
1509 | b'merge-tools', |
|
1517 | b'merge-tools', | |
1510 | b'.*', |
|
1518 | b'.*', | |
1511 | default=None, |
|
1519 | default=None, | |
1512 | generic=True, |
|
1520 | generic=True, | |
1513 | ) |
|
1521 | ) | |
1514 | coreconfigitem( |
|
1522 | coreconfigitem( | |
1515 | b'merge-tools', |
|
1523 | b'merge-tools', | |
1516 | br'.*\.args$', |
|
1524 | br'.*\.args$', | |
1517 | default=b"$local $base $other", |
|
1525 | default=b"$local $base $other", | |
1518 | generic=True, |
|
1526 | generic=True, | |
1519 | priority=-1, |
|
1527 | priority=-1, | |
1520 | ) |
|
1528 | ) | |
1521 | coreconfigitem( |
|
1529 | coreconfigitem( | |
1522 | b'merge-tools', |
|
1530 | b'merge-tools', | |
1523 | br'.*\.binary$', |
|
1531 | br'.*\.binary$', | |
1524 | default=False, |
|
1532 | default=False, | |
1525 | generic=True, |
|
1533 | generic=True, | |
1526 | priority=-1, |
|
1534 | priority=-1, | |
1527 | ) |
|
1535 | ) | |
1528 | coreconfigitem( |
|
1536 | coreconfigitem( | |
1529 | b'merge-tools', |
|
1537 | b'merge-tools', | |
1530 | br'.*\.check$', |
|
1538 | br'.*\.check$', | |
1531 | default=list, |
|
1539 | default=list, | |
1532 | generic=True, |
|
1540 | generic=True, | |
1533 | priority=-1, |
|
1541 | priority=-1, | |
1534 | ) |
|
1542 | ) | |
1535 | coreconfigitem( |
|
1543 | coreconfigitem( | |
1536 | b'merge-tools', |
|
1544 | b'merge-tools', | |
1537 | br'.*\.checkchanged$', |
|
1545 | br'.*\.checkchanged$', | |
1538 | default=False, |
|
1546 | default=False, | |
1539 | generic=True, |
|
1547 | generic=True, | |
1540 | priority=-1, |
|
1548 | priority=-1, | |
1541 | ) |
|
1549 | ) | |
1542 | coreconfigitem( |
|
1550 | coreconfigitem( | |
1543 | b'merge-tools', |
|
1551 | b'merge-tools', | |
1544 | br'.*\.executable$', |
|
1552 | br'.*\.executable$', | |
1545 | default=dynamicdefault, |
|
1553 | default=dynamicdefault, | |
1546 | generic=True, |
|
1554 | generic=True, | |
1547 | priority=-1, |
|
1555 | priority=-1, | |
1548 | ) |
|
1556 | ) | |
1549 | coreconfigitem( |
|
1557 | coreconfigitem( | |
1550 | b'merge-tools', |
|
1558 | b'merge-tools', | |
1551 | br'.*\.fixeol$', |
|
1559 | br'.*\.fixeol$', | |
1552 | default=False, |
|
1560 | default=False, | |
1553 | generic=True, |
|
1561 | generic=True, | |
1554 | priority=-1, |
|
1562 | priority=-1, | |
1555 | ) |
|
1563 | ) | |
1556 | coreconfigitem( |
|
1564 | coreconfigitem( | |
1557 | b'merge-tools', |
|
1565 | b'merge-tools', | |
1558 | br'.*\.gui$', |
|
1566 | br'.*\.gui$', | |
1559 | default=False, |
|
1567 | default=False, | |
1560 | generic=True, |
|
1568 | generic=True, | |
1561 | priority=-1, |
|
1569 | priority=-1, | |
1562 | ) |
|
1570 | ) | |
1563 | coreconfigitem( |
|
1571 | coreconfigitem( | |
1564 | b'merge-tools', |
|
1572 | b'merge-tools', | |
1565 | br'.*\.mergemarkers$', |
|
1573 | br'.*\.mergemarkers$', | |
1566 | default=b'basic', |
|
1574 | default=b'basic', | |
1567 | generic=True, |
|
1575 | generic=True, | |
1568 | priority=-1, |
|
1576 | priority=-1, | |
1569 | ) |
|
1577 | ) | |
1570 | coreconfigitem( |
|
1578 | coreconfigitem( | |
1571 | b'merge-tools', |
|
1579 | b'merge-tools', | |
1572 | br'.*\.mergemarkertemplate$', |
|
1580 | br'.*\.mergemarkertemplate$', | |
1573 | default=dynamicdefault, # take from command-templates.mergemarker |
|
1581 | default=dynamicdefault, # take from command-templates.mergemarker | |
1574 | generic=True, |
|
1582 | generic=True, | |
1575 | priority=-1, |
|
1583 | priority=-1, | |
1576 | ) |
|
1584 | ) | |
1577 | coreconfigitem( |
|
1585 | coreconfigitem( | |
1578 | b'merge-tools', |
|
1586 | b'merge-tools', | |
1579 | br'.*\.priority$', |
|
1587 | br'.*\.priority$', | |
1580 | default=0, |
|
1588 | default=0, | |
1581 | generic=True, |
|
1589 | generic=True, | |
1582 | priority=-1, |
|
1590 | priority=-1, | |
1583 | ) |
|
1591 | ) | |
1584 | coreconfigitem( |
|
1592 | coreconfigitem( | |
1585 | b'merge-tools', |
|
1593 | b'merge-tools', | |
1586 | br'.*\.premerge$', |
|
1594 | br'.*\.premerge$', | |
1587 | default=dynamicdefault, |
|
1595 | default=dynamicdefault, | |
1588 | generic=True, |
|
1596 | generic=True, | |
1589 | priority=-1, |
|
1597 | priority=-1, | |
1590 | ) |
|
1598 | ) | |
1591 | coreconfigitem( |
|
1599 | coreconfigitem( | |
1592 | b'merge-tools', |
|
1600 | b'merge-tools', | |
1593 | br'.*\.symlink$', |
|
1601 | br'.*\.symlink$', | |
1594 | default=False, |
|
1602 | default=False, | |
1595 | generic=True, |
|
1603 | generic=True, | |
1596 | priority=-1, |
|
1604 | priority=-1, | |
1597 | ) |
|
1605 | ) | |
1598 | coreconfigitem( |
|
1606 | coreconfigitem( | |
1599 | b'pager', |
|
1607 | b'pager', | |
1600 | b'attend-.*', |
|
1608 | b'attend-.*', | |
1601 | default=dynamicdefault, |
|
1609 | default=dynamicdefault, | |
1602 | generic=True, |
|
1610 | generic=True, | |
1603 | ) |
|
1611 | ) | |
1604 | coreconfigitem( |
|
1612 | coreconfigitem( | |
1605 | b'pager', |
|
1613 | b'pager', | |
1606 | b'ignore', |
|
1614 | b'ignore', | |
1607 | default=list, |
|
1615 | default=list, | |
1608 | ) |
|
1616 | ) | |
1609 | coreconfigitem( |
|
1617 | coreconfigitem( | |
1610 | b'pager', |
|
1618 | b'pager', | |
1611 | b'pager', |
|
1619 | b'pager', | |
1612 | default=dynamicdefault, |
|
1620 | default=dynamicdefault, | |
1613 | ) |
|
1621 | ) | |
1614 | coreconfigitem( |
|
1622 | coreconfigitem( | |
1615 | b'patch', |
|
1623 | b'patch', | |
1616 | b'eol', |
|
1624 | b'eol', | |
1617 | default=b'strict', |
|
1625 | default=b'strict', | |
1618 | ) |
|
1626 | ) | |
1619 | coreconfigitem( |
|
1627 | coreconfigitem( | |
1620 | b'patch', |
|
1628 | b'patch', | |
1621 | b'fuzz', |
|
1629 | b'fuzz', | |
1622 | default=2, |
|
1630 | default=2, | |
1623 | ) |
|
1631 | ) | |
1624 | coreconfigitem( |
|
1632 | coreconfigitem( | |
1625 | b'paths', |
|
1633 | b'paths', | |
1626 | b'default', |
|
1634 | b'default', | |
1627 | default=None, |
|
1635 | default=None, | |
1628 | ) |
|
1636 | ) | |
1629 | coreconfigitem( |
|
1637 | coreconfigitem( | |
1630 | b'paths', |
|
1638 | b'paths', | |
1631 | b'default-push', |
|
1639 | b'default-push', | |
1632 | default=None, |
|
1640 | default=None, | |
1633 | ) |
|
1641 | ) | |
1634 | coreconfigitem( |
|
1642 | coreconfigitem( | |
1635 | b'paths', |
|
1643 | b'paths', | |
1636 | b'.*', |
|
1644 | b'.*', | |
1637 | default=None, |
|
1645 | default=None, | |
1638 | generic=True, |
|
1646 | generic=True, | |
1639 | ) |
|
1647 | ) | |
1640 | coreconfigitem( |
|
1648 | coreconfigitem( | |
1641 | b'phases', |
|
1649 | b'phases', | |
1642 | b'checksubrepos', |
|
1650 | b'checksubrepos', | |
1643 | default=b'follow', |
|
1651 | default=b'follow', | |
1644 | ) |
|
1652 | ) | |
1645 | coreconfigitem( |
|
1653 | coreconfigitem( | |
1646 | b'phases', |
|
1654 | b'phases', | |
1647 | b'new-commit', |
|
1655 | b'new-commit', | |
1648 | default=b'draft', |
|
1656 | default=b'draft', | |
1649 | ) |
|
1657 | ) | |
1650 | coreconfigitem( |
|
1658 | coreconfigitem( | |
1651 | b'phases', |
|
1659 | b'phases', | |
1652 | b'publish', |
|
1660 | b'publish', | |
1653 | default=True, |
|
1661 | default=True, | |
1654 | ) |
|
1662 | ) | |
1655 | coreconfigitem( |
|
1663 | coreconfigitem( | |
1656 | b'profiling', |
|
1664 | b'profiling', | |
1657 | b'enabled', |
|
1665 | b'enabled', | |
1658 | default=False, |
|
1666 | default=False, | |
1659 | ) |
|
1667 | ) | |
1660 | coreconfigitem( |
|
1668 | coreconfigitem( | |
1661 | b'profiling', |
|
1669 | b'profiling', | |
1662 | b'format', |
|
1670 | b'format', | |
1663 | default=b'text', |
|
1671 | default=b'text', | |
1664 | ) |
|
1672 | ) | |
1665 | coreconfigitem( |
|
1673 | coreconfigitem( | |
1666 | b'profiling', |
|
1674 | b'profiling', | |
1667 | b'freq', |
|
1675 | b'freq', | |
1668 | default=1000, |
|
1676 | default=1000, | |
1669 | ) |
|
1677 | ) | |
1670 | coreconfigitem( |
|
1678 | coreconfigitem( | |
1671 | b'profiling', |
|
1679 | b'profiling', | |
1672 | b'limit', |
|
1680 | b'limit', | |
1673 | default=30, |
|
1681 | default=30, | |
1674 | ) |
|
1682 | ) | |
1675 | coreconfigitem( |
|
1683 | coreconfigitem( | |
1676 | b'profiling', |
|
1684 | b'profiling', | |
1677 | b'nested', |
|
1685 | b'nested', | |
1678 | default=0, |
|
1686 | default=0, | |
1679 | ) |
|
1687 | ) | |
1680 | coreconfigitem( |
|
1688 | coreconfigitem( | |
1681 | b'profiling', |
|
1689 | b'profiling', | |
1682 | b'output', |
|
1690 | b'output', | |
1683 | default=None, |
|
1691 | default=None, | |
1684 | ) |
|
1692 | ) | |
1685 | coreconfigitem( |
|
1693 | coreconfigitem( | |
1686 | b'profiling', |
|
1694 | b'profiling', | |
1687 | b'showmax', |
|
1695 | b'showmax', | |
1688 | default=0.999, |
|
1696 | default=0.999, | |
1689 | ) |
|
1697 | ) | |
1690 | coreconfigitem( |
|
1698 | coreconfigitem( | |
1691 | b'profiling', |
|
1699 | b'profiling', | |
1692 | b'showmin', |
|
1700 | b'showmin', | |
1693 | default=dynamicdefault, |
|
1701 | default=dynamicdefault, | |
1694 | ) |
|
1702 | ) | |
1695 | coreconfigitem( |
|
1703 | coreconfigitem( | |
1696 | b'profiling', |
|
1704 | b'profiling', | |
1697 | b'showtime', |
|
1705 | b'showtime', | |
1698 | default=True, |
|
1706 | default=True, | |
1699 | ) |
|
1707 | ) | |
1700 | coreconfigitem( |
|
1708 | coreconfigitem( | |
1701 | b'profiling', |
|
1709 | b'profiling', | |
1702 | b'sort', |
|
1710 | b'sort', | |
1703 | default=b'inlinetime', |
|
1711 | default=b'inlinetime', | |
1704 | ) |
|
1712 | ) | |
1705 | coreconfigitem( |
|
1713 | coreconfigitem( | |
1706 | b'profiling', |
|
1714 | b'profiling', | |
1707 | b'statformat', |
|
1715 | b'statformat', | |
1708 | default=b'hotpath', |
|
1716 | default=b'hotpath', | |
1709 | ) |
|
1717 | ) | |
1710 | coreconfigitem( |
|
1718 | coreconfigitem( | |
1711 | b'profiling', |
|
1719 | b'profiling', | |
1712 | b'time-track', |
|
1720 | b'time-track', | |
1713 | default=dynamicdefault, |
|
1721 | default=dynamicdefault, | |
1714 | ) |
|
1722 | ) | |
1715 | coreconfigitem( |
|
1723 | coreconfigitem( | |
1716 | b'profiling', |
|
1724 | b'profiling', | |
1717 | b'type', |
|
1725 | b'type', | |
1718 | default=b'stat', |
|
1726 | default=b'stat', | |
1719 | ) |
|
1727 | ) | |
1720 | coreconfigitem( |
|
1728 | coreconfigitem( | |
1721 | b'progress', |
|
1729 | b'progress', | |
1722 | b'assume-tty', |
|
1730 | b'assume-tty', | |
1723 | default=False, |
|
1731 | default=False, | |
1724 | ) |
|
1732 | ) | |
1725 | coreconfigitem( |
|
1733 | coreconfigitem( | |
1726 | b'progress', |
|
1734 | b'progress', | |
1727 | b'changedelay', |
|
1735 | b'changedelay', | |
1728 | default=1, |
|
1736 | default=1, | |
1729 | ) |
|
1737 | ) | |
1730 | coreconfigitem( |
|
1738 | coreconfigitem( | |
1731 | b'progress', |
|
1739 | b'progress', | |
1732 | b'clear-complete', |
|
1740 | b'clear-complete', | |
1733 | default=True, |
|
1741 | default=True, | |
1734 | ) |
|
1742 | ) | |
1735 | coreconfigitem( |
|
1743 | coreconfigitem( | |
1736 | b'progress', |
|
1744 | b'progress', | |
1737 | b'debug', |
|
1745 | b'debug', | |
1738 | default=False, |
|
1746 | default=False, | |
1739 | ) |
|
1747 | ) | |
1740 | coreconfigitem( |
|
1748 | coreconfigitem( | |
1741 | b'progress', |
|
1749 | b'progress', | |
1742 | b'delay', |
|
1750 | b'delay', | |
1743 | default=3, |
|
1751 | default=3, | |
1744 | ) |
|
1752 | ) | |
1745 | coreconfigitem( |
|
1753 | coreconfigitem( | |
1746 | b'progress', |
|
1754 | b'progress', | |
1747 | b'disable', |
|
1755 | b'disable', | |
1748 | default=False, |
|
1756 | default=False, | |
1749 | ) |
|
1757 | ) | |
1750 | coreconfigitem( |
|
1758 | coreconfigitem( | |
1751 | b'progress', |
|
1759 | b'progress', | |
1752 | b'estimateinterval', |
|
1760 | b'estimateinterval', | |
1753 | default=60.0, |
|
1761 | default=60.0, | |
1754 | ) |
|
1762 | ) | |
1755 | coreconfigitem( |
|
1763 | coreconfigitem( | |
1756 | b'progress', |
|
1764 | b'progress', | |
1757 | b'format', |
|
1765 | b'format', | |
1758 | default=lambda: [b'topic', b'bar', b'number', b'estimate'], |
|
1766 | default=lambda: [b'topic', b'bar', b'number', b'estimate'], | |
1759 | ) |
|
1767 | ) | |
1760 | coreconfigitem( |
|
1768 | coreconfigitem( | |
1761 | b'progress', |
|
1769 | b'progress', | |
1762 | b'refresh', |
|
1770 | b'refresh', | |
1763 | default=0.1, |
|
1771 | default=0.1, | |
1764 | ) |
|
1772 | ) | |
1765 | coreconfigitem( |
|
1773 | coreconfigitem( | |
1766 | b'progress', |
|
1774 | b'progress', | |
1767 | b'width', |
|
1775 | b'width', | |
1768 | default=dynamicdefault, |
|
1776 | default=dynamicdefault, | |
1769 | ) |
|
1777 | ) | |
1770 | coreconfigitem( |
|
1778 | coreconfigitem( | |
1771 | b'pull', |
|
1779 | b'pull', | |
1772 | b'confirm', |
|
1780 | b'confirm', | |
1773 | default=False, |
|
1781 | default=False, | |
1774 | ) |
|
1782 | ) | |
1775 | coreconfigitem( |
|
1783 | coreconfigitem( | |
1776 | b'push', |
|
1784 | b'push', | |
1777 | b'pushvars.server', |
|
1785 | b'pushvars.server', | |
1778 | default=False, |
|
1786 | default=False, | |
1779 | ) |
|
1787 | ) | |
1780 | coreconfigitem( |
|
1788 | coreconfigitem( | |
1781 | b'rewrite', |
|
1789 | b'rewrite', | |
1782 | b'backup-bundle', |
|
1790 | b'backup-bundle', | |
1783 | default=True, |
|
1791 | default=True, | |
1784 | alias=[(b'ui', b'history-editing-backup')], |
|
1792 | alias=[(b'ui', b'history-editing-backup')], | |
1785 | ) |
|
1793 | ) | |
1786 | coreconfigitem( |
|
1794 | coreconfigitem( | |
1787 | b'rewrite', |
|
1795 | b'rewrite', | |
1788 | b'update-timestamp', |
|
1796 | b'update-timestamp', | |
1789 | default=False, |
|
1797 | default=False, | |
1790 | ) |
|
1798 | ) | |
1791 | coreconfigitem( |
|
1799 | coreconfigitem( | |
1792 | b'rewrite', |
|
1800 | b'rewrite', | |
1793 | b'empty-successor', |
|
1801 | b'empty-successor', | |
1794 | default=b'skip', |
|
1802 | default=b'skip', | |
1795 | experimental=True, |
|
1803 | experimental=True, | |
1796 | ) |
|
1804 | ) | |
1797 | coreconfigitem( |
|
1805 | coreconfigitem( | |
1798 | b'storage', |
|
1806 | b'storage', | |
1799 | b'new-repo-backend', |
|
1807 | b'new-repo-backend', | |
1800 | default=b'revlogv1', |
|
1808 | default=b'revlogv1', | |
1801 | experimental=True, |
|
1809 | experimental=True, | |
1802 | ) |
|
1810 | ) | |
1803 | coreconfigitem( |
|
1811 | coreconfigitem( | |
1804 | b'storage', |
|
1812 | b'storage', | |
1805 | b'revlog.optimize-delta-parent-choice', |
|
1813 | b'revlog.optimize-delta-parent-choice', | |
1806 | default=True, |
|
1814 | default=True, | |
1807 | alias=[(b'format', b'aggressivemergedeltas')], |
|
1815 | alias=[(b'format', b'aggressivemergedeltas')], | |
1808 | ) |
|
1816 | ) | |
1809 | # experimental as long as rust is experimental (or a C version is implemented) |
|
1817 | # experimental as long as rust is experimental (or a C version is implemented) | |
1810 | coreconfigitem( |
|
1818 | coreconfigitem( | |
1811 | b'storage', |
|
1819 | b'storage', | |
1812 | b'revlog.persistent-nodemap.mmap', |
|
1820 | b'revlog.persistent-nodemap.mmap', | |
1813 | default=True, |
|
1821 | default=True, | |
1814 | ) |
|
1822 | ) | |
1815 | # experimental as long as format.use-persistent-nodemap is. |
|
1823 | # experimental as long as format.use-persistent-nodemap is. | |
1816 | coreconfigitem( |
|
1824 | coreconfigitem( | |
1817 | b'storage', |
|
1825 | b'storage', | |
1818 | b'revlog.persistent-nodemap.slow-path', |
|
1826 | b'revlog.persistent-nodemap.slow-path', | |
1819 | default=b"abort", |
|
1827 | default=b"abort", | |
1820 | ) |
|
1828 | ) | |
1821 |
|
1829 | |||
1822 | coreconfigitem( |
|
1830 | coreconfigitem( | |
1823 | b'storage', |
|
1831 | b'storage', | |
1824 | b'revlog.reuse-external-delta', |
|
1832 | b'revlog.reuse-external-delta', | |
1825 | default=True, |
|
1833 | default=True, | |
1826 | ) |
|
1834 | ) | |
1827 | coreconfigitem( |
|
1835 | coreconfigitem( | |
1828 | b'storage', |
|
1836 | b'storage', | |
1829 | b'revlog.reuse-external-delta-parent', |
|
1837 | b'revlog.reuse-external-delta-parent', | |
1830 | default=None, |
|
1838 | default=None, | |
1831 | ) |
|
1839 | ) | |
1832 | coreconfigitem( |
|
1840 | coreconfigitem( | |
1833 | b'storage', |
|
1841 | b'storage', | |
1834 | b'revlog.zlib.level', |
|
1842 | b'revlog.zlib.level', | |
1835 | default=None, |
|
1843 | default=None, | |
1836 | ) |
|
1844 | ) | |
1837 | coreconfigitem( |
|
1845 | coreconfigitem( | |
1838 | b'storage', |
|
1846 | b'storage', | |
1839 | b'revlog.zstd.level', |
|
1847 | b'revlog.zstd.level', | |
1840 | default=None, |
|
1848 | default=None, | |
1841 | ) |
|
1849 | ) | |
1842 | coreconfigitem( |
|
1850 | coreconfigitem( | |
1843 | b'server', |
|
1851 | b'server', | |
1844 | b'bookmarks-pushkey-compat', |
|
1852 | b'bookmarks-pushkey-compat', | |
1845 | default=True, |
|
1853 | default=True, | |
1846 | ) |
|
1854 | ) | |
1847 | coreconfigitem( |
|
1855 | coreconfigitem( | |
1848 | b'server', |
|
1856 | b'server', | |
1849 | b'bundle1', |
|
1857 | b'bundle1', | |
1850 | default=True, |
|
1858 | default=True, | |
1851 | ) |
|
1859 | ) | |
1852 | coreconfigitem( |
|
1860 | coreconfigitem( | |
1853 | b'server', |
|
1861 | b'server', | |
1854 | b'bundle1gd', |
|
1862 | b'bundle1gd', | |
1855 | default=None, |
|
1863 | default=None, | |
1856 | ) |
|
1864 | ) | |
1857 | coreconfigitem( |
|
1865 | coreconfigitem( | |
1858 | b'server', |
|
1866 | b'server', | |
1859 | b'bundle1.pull', |
|
1867 | b'bundle1.pull', | |
1860 | default=None, |
|
1868 | default=None, | |
1861 | ) |
|
1869 | ) | |
1862 | coreconfigitem( |
|
1870 | coreconfigitem( | |
1863 | b'server', |
|
1871 | b'server', | |
1864 | b'bundle1gd.pull', |
|
1872 | b'bundle1gd.pull', | |
1865 | default=None, |
|
1873 | default=None, | |
1866 | ) |
|
1874 | ) | |
1867 | coreconfigitem( |
|
1875 | coreconfigitem( | |
1868 | b'server', |
|
1876 | b'server', | |
1869 | b'bundle1.push', |
|
1877 | b'bundle1.push', | |
1870 | default=None, |
|
1878 | default=None, | |
1871 | ) |
|
1879 | ) | |
1872 | coreconfigitem( |
|
1880 | coreconfigitem( | |
1873 | b'server', |
|
1881 | b'server', | |
1874 | b'bundle1gd.push', |
|
1882 | b'bundle1gd.push', | |
1875 | default=None, |
|
1883 | default=None, | |
1876 | ) |
|
1884 | ) | |
1877 | coreconfigitem( |
|
1885 | coreconfigitem( | |
1878 | b'server', |
|
1886 | b'server', | |
1879 | b'bundle2.stream', |
|
1887 | b'bundle2.stream', | |
1880 | default=True, |
|
1888 | default=True, | |
1881 | alias=[(b'experimental', b'bundle2.stream')], |
|
1889 | alias=[(b'experimental', b'bundle2.stream')], | |
1882 | ) |
|
1890 | ) | |
1883 | coreconfigitem( |
|
1891 | coreconfigitem( | |
1884 | b'server', |
|
1892 | b'server', | |
1885 | b'compressionengines', |
|
1893 | b'compressionengines', | |
1886 | default=list, |
|
1894 | default=list, | |
1887 | ) |
|
1895 | ) | |
1888 | coreconfigitem( |
|
1896 | coreconfigitem( | |
1889 | b'server', |
|
1897 | b'server', | |
1890 | b'concurrent-push-mode', |
|
1898 | b'concurrent-push-mode', | |
1891 | default=b'check-related', |
|
1899 | default=b'check-related', | |
1892 | ) |
|
1900 | ) | |
1893 | coreconfigitem( |
|
1901 | coreconfigitem( | |
1894 | b'server', |
|
1902 | b'server', | |
1895 | b'disablefullbundle', |
|
1903 | b'disablefullbundle', | |
1896 | default=False, |
|
1904 | default=False, | |
1897 | ) |
|
1905 | ) | |
1898 | coreconfigitem( |
|
1906 | coreconfigitem( | |
1899 | b'server', |
|
1907 | b'server', | |
1900 | b'maxhttpheaderlen', |
|
1908 | b'maxhttpheaderlen', | |
1901 | default=1024, |
|
1909 | default=1024, | |
1902 | ) |
|
1910 | ) | |
1903 | coreconfigitem( |
|
1911 | coreconfigitem( | |
1904 | b'server', |
|
1912 | b'server', | |
1905 | b'pullbundle', |
|
1913 | b'pullbundle', | |
1906 | default=False, |
|
1914 | default=False, | |
1907 | ) |
|
1915 | ) | |
1908 | coreconfigitem( |
|
1916 | coreconfigitem( | |
1909 | b'server', |
|
1917 | b'server', | |
1910 | b'preferuncompressed', |
|
1918 | b'preferuncompressed', | |
1911 | default=False, |
|
1919 | default=False, | |
1912 | ) |
|
1920 | ) | |
1913 | coreconfigitem( |
|
1921 | coreconfigitem( | |
1914 | b'server', |
|
1922 | b'server', | |
1915 | b'streamunbundle', |
|
1923 | b'streamunbundle', | |
1916 | default=False, |
|
1924 | default=False, | |
1917 | ) |
|
1925 | ) | |
1918 | coreconfigitem( |
|
1926 | coreconfigitem( | |
1919 | b'server', |
|
1927 | b'server', | |
1920 | b'uncompressed', |
|
1928 | b'uncompressed', | |
1921 | default=True, |
|
1929 | default=True, | |
1922 | ) |
|
1930 | ) | |
1923 | coreconfigitem( |
|
1931 | coreconfigitem( | |
1924 | b'server', |
|
1932 | b'server', | |
1925 | b'uncompressedallowsecret', |
|
1933 | b'uncompressedallowsecret', | |
1926 | default=False, |
|
1934 | default=False, | |
1927 | ) |
|
1935 | ) | |
1928 | coreconfigitem( |
|
1936 | coreconfigitem( | |
1929 | b'server', |
|
1937 | b'server', | |
1930 | b'view', |
|
1938 | b'view', | |
1931 | default=b'served', |
|
1939 | default=b'served', | |
1932 | ) |
|
1940 | ) | |
1933 | coreconfigitem( |
|
1941 | coreconfigitem( | |
1934 | b'server', |
|
1942 | b'server', | |
1935 | b'validate', |
|
1943 | b'validate', | |
1936 | default=False, |
|
1944 | default=False, | |
1937 | ) |
|
1945 | ) | |
1938 | coreconfigitem( |
|
1946 | coreconfigitem( | |
1939 | b'server', |
|
1947 | b'server', | |
1940 | b'zliblevel', |
|
1948 | b'zliblevel', | |
1941 | default=-1, |
|
1949 | default=-1, | |
1942 | ) |
|
1950 | ) | |
1943 | coreconfigitem( |
|
1951 | coreconfigitem( | |
1944 | b'server', |
|
1952 | b'server', | |
1945 | b'zstdlevel', |
|
1953 | b'zstdlevel', | |
1946 | default=3, |
|
1954 | default=3, | |
1947 | ) |
|
1955 | ) | |
1948 | coreconfigitem( |
|
1956 | coreconfigitem( | |
1949 | b'share', |
|
1957 | b'share', | |
1950 | b'pool', |
|
1958 | b'pool', | |
1951 | default=None, |
|
1959 | default=None, | |
1952 | ) |
|
1960 | ) | |
1953 | coreconfigitem( |
|
1961 | coreconfigitem( | |
1954 | b'share', |
|
1962 | b'share', | |
1955 | b'poolnaming', |
|
1963 | b'poolnaming', | |
1956 | default=b'identity', |
|
1964 | default=b'identity', | |
1957 | ) |
|
1965 | ) | |
1958 | coreconfigitem( |
|
1966 | coreconfigitem( | |
1959 | b'share', |
|
1967 | b'share', | |
1960 | b'safe-mismatch.source-not-safe', |
|
1968 | b'safe-mismatch.source-not-safe', | |
1961 | default=b'abort', |
|
1969 | default=b'abort', | |
1962 | ) |
|
1970 | ) | |
1963 | coreconfigitem( |
|
1971 | coreconfigitem( | |
1964 | b'share', |
|
1972 | b'share', | |
1965 | b'safe-mismatch.source-safe', |
|
1973 | b'safe-mismatch.source-safe', | |
1966 | default=b'abort', |
|
1974 | default=b'abort', | |
1967 | ) |
|
1975 | ) | |
1968 | coreconfigitem( |
|
1976 | coreconfigitem( | |
1969 | b'share', |
|
1977 | b'share', | |
1970 | b'safe-mismatch.source-not-safe.warn', |
|
1978 | b'safe-mismatch.source-not-safe.warn', | |
1971 | default=True, |
|
1979 | default=True, | |
1972 | ) |
|
1980 | ) | |
1973 | coreconfigitem( |
|
1981 | coreconfigitem( | |
1974 | b'share', |
|
1982 | b'share', | |
1975 | b'safe-mismatch.source-safe.warn', |
|
1983 | b'safe-mismatch.source-safe.warn', | |
1976 | default=True, |
|
1984 | default=True, | |
1977 | ) |
|
1985 | ) | |
1978 | coreconfigitem( |
|
1986 | coreconfigitem( | |
1979 | b'shelve', |
|
1987 | b'shelve', | |
1980 | b'maxbackups', |
|
1988 | b'maxbackups', | |
1981 | default=10, |
|
1989 | default=10, | |
1982 | ) |
|
1990 | ) | |
1983 | coreconfigitem( |
|
1991 | coreconfigitem( | |
1984 | b'smtp', |
|
1992 | b'smtp', | |
1985 | b'host', |
|
1993 | b'host', | |
1986 | default=None, |
|
1994 | default=None, | |
1987 | ) |
|
1995 | ) | |
1988 | coreconfigitem( |
|
1996 | coreconfigitem( | |
1989 | b'smtp', |
|
1997 | b'smtp', | |
1990 | b'local_hostname', |
|
1998 | b'local_hostname', | |
1991 | default=None, |
|
1999 | default=None, | |
1992 | ) |
|
2000 | ) | |
1993 | coreconfigitem( |
|
2001 | coreconfigitem( | |
1994 | b'smtp', |
|
2002 | b'smtp', | |
1995 | b'password', |
|
2003 | b'password', | |
1996 | default=None, |
|
2004 | default=None, | |
1997 | ) |
|
2005 | ) | |
1998 | coreconfigitem( |
|
2006 | coreconfigitem( | |
1999 | b'smtp', |
|
2007 | b'smtp', | |
2000 | b'port', |
|
2008 | b'port', | |
2001 | default=dynamicdefault, |
|
2009 | default=dynamicdefault, | |
2002 | ) |
|
2010 | ) | |
2003 | coreconfigitem( |
|
2011 | coreconfigitem( | |
2004 | b'smtp', |
|
2012 | b'smtp', | |
2005 | b'tls', |
|
2013 | b'tls', | |
2006 | default=b'none', |
|
2014 | default=b'none', | |
2007 | ) |
|
2015 | ) | |
2008 | coreconfigitem( |
|
2016 | coreconfigitem( | |
2009 | b'smtp', |
|
2017 | b'smtp', | |
2010 | b'username', |
|
2018 | b'username', | |
2011 | default=None, |
|
2019 | default=None, | |
2012 | ) |
|
2020 | ) | |
2013 | coreconfigitem( |
|
2021 | coreconfigitem( | |
2014 | b'sparse', |
|
2022 | b'sparse', | |
2015 | b'missingwarning', |
|
2023 | b'missingwarning', | |
2016 | default=True, |
|
2024 | default=True, | |
2017 | experimental=True, |
|
2025 | experimental=True, | |
2018 | ) |
|
2026 | ) | |
2019 | coreconfigitem( |
|
2027 | coreconfigitem( | |
2020 | b'subrepos', |
|
2028 | b'subrepos', | |
2021 | b'allowed', |
|
2029 | b'allowed', | |
2022 | default=dynamicdefault, # to make backporting simpler |
|
2030 | default=dynamicdefault, # to make backporting simpler | |
2023 | ) |
|
2031 | ) | |
2024 | coreconfigitem( |
|
2032 | coreconfigitem( | |
2025 | b'subrepos', |
|
2033 | b'subrepos', | |
2026 | b'hg:allowed', |
|
2034 | b'hg:allowed', | |
2027 | default=dynamicdefault, |
|
2035 | default=dynamicdefault, | |
2028 | ) |
|
2036 | ) | |
2029 | coreconfigitem( |
|
2037 | coreconfigitem( | |
2030 | b'subrepos', |
|
2038 | b'subrepos', | |
2031 | b'git:allowed', |
|
2039 | b'git:allowed', | |
2032 | default=dynamicdefault, |
|
2040 | default=dynamicdefault, | |
2033 | ) |
|
2041 | ) | |
2034 | coreconfigitem( |
|
2042 | coreconfigitem( | |
2035 | b'subrepos', |
|
2043 | b'subrepos', | |
2036 | b'svn:allowed', |
|
2044 | b'svn:allowed', | |
2037 | default=dynamicdefault, |
|
2045 | default=dynamicdefault, | |
2038 | ) |
|
2046 | ) | |
2039 | coreconfigitem( |
|
2047 | coreconfigitem( | |
2040 | b'templates', |
|
2048 | b'templates', | |
2041 | b'.*', |
|
2049 | b'.*', | |
2042 | default=None, |
|
2050 | default=None, | |
2043 | generic=True, |
|
2051 | generic=True, | |
2044 | ) |
|
2052 | ) | |
2045 | coreconfigitem( |
|
2053 | coreconfigitem( | |
2046 | b'templateconfig', |
|
2054 | b'templateconfig', | |
2047 | b'.*', |
|
2055 | b'.*', | |
2048 | default=dynamicdefault, |
|
2056 | default=dynamicdefault, | |
2049 | generic=True, |
|
2057 | generic=True, | |
2050 | ) |
|
2058 | ) | |
2051 | coreconfigitem( |
|
2059 | coreconfigitem( | |
2052 | b'trusted', |
|
2060 | b'trusted', | |
2053 | b'groups', |
|
2061 | b'groups', | |
2054 | default=list, |
|
2062 | default=list, | |
2055 | ) |
|
2063 | ) | |
2056 | coreconfigitem( |
|
2064 | coreconfigitem( | |
2057 | b'trusted', |
|
2065 | b'trusted', | |
2058 | b'users', |
|
2066 | b'users', | |
2059 | default=list, |
|
2067 | default=list, | |
2060 | ) |
|
2068 | ) | |
2061 | coreconfigitem( |
|
2069 | coreconfigitem( | |
2062 | b'ui', |
|
2070 | b'ui', | |
2063 | b'_usedassubrepo', |
|
2071 | b'_usedassubrepo', | |
2064 | default=False, |
|
2072 | default=False, | |
2065 | ) |
|
2073 | ) | |
2066 | coreconfigitem( |
|
2074 | coreconfigitem( | |
2067 | b'ui', |
|
2075 | b'ui', | |
2068 | b'allowemptycommit', |
|
2076 | b'allowemptycommit', | |
2069 | default=False, |
|
2077 | default=False, | |
2070 | ) |
|
2078 | ) | |
2071 | coreconfigitem( |
|
2079 | coreconfigitem( | |
2072 | b'ui', |
|
2080 | b'ui', | |
2073 | b'archivemeta', |
|
2081 | b'archivemeta', | |
2074 | default=True, |
|
2082 | default=True, | |
2075 | ) |
|
2083 | ) | |
2076 | coreconfigitem( |
|
2084 | coreconfigitem( | |
2077 | b'ui', |
|
2085 | b'ui', | |
2078 | b'askusername', |
|
2086 | b'askusername', | |
2079 | default=False, |
|
2087 | default=False, | |
2080 | ) |
|
2088 | ) | |
2081 | coreconfigitem( |
|
2089 | coreconfigitem( | |
2082 | b'ui', |
|
2090 | b'ui', | |
2083 | b'available-memory', |
|
2091 | b'available-memory', | |
2084 | default=None, |
|
2092 | default=None, | |
2085 | ) |
|
2093 | ) | |
2086 |
|
2094 | |||
2087 | coreconfigitem( |
|
2095 | coreconfigitem( | |
2088 | b'ui', |
|
2096 | b'ui', | |
2089 | b'clonebundlefallback', |
|
2097 | b'clonebundlefallback', | |
2090 | default=False, |
|
2098 | default=False, | |
2091 | ) |
|
2099 | ) | |
2092 | coreconfigitem( |
|
2100 | coreconfigitem( | |
2093 | b'ui', |
|
2101 | b'ui', | |
2094 | b'clonebundleprefers', |
|
2102 | b'clonebundleprefers', | |
2095 | default=list, |
|
2103 | default=list, | |
2096 | ) |
|
2104 | ) | |
2097 | coreconfigitem( |
|
2105 | coreconfigitem( | |
2098 | b'ui', |
|
2106 | b'ui', | |
2099 | b'clonebundles', |
|
2107 | b'clonebundles', | |
2100 | default=True, |
|
2108 | default=True, | |
2101 | ) |
|
2109 | ) | |
2102 | coreconfigitem( |
|
2110 | coreconfigitem( | |
2103 | b'ui', |
|
2111 | b'ui', | |
2104 | b'color', |
|
2112 | b'color', | |
2105 | default=b'auto', |
|
2113 | default=b'auto', | |
2106 | ) |
|
2114 | ) | |
2107 | coreconfigitem( |
|
2115 | coreconfigitem( | |
2108 | b'ui', |
|
2116 | b'ui', | |
2109 | b'commitsubrepos', |
|
2117 | b'commitsubrepos', | |
2110 | default=False, |
|
2118 | default=False, | |
2111 | ) |
|
2119 | ) | |
2112 | coreconfigitem( |
|
2120 | coreconfigitem( | |
2113 | b'ui', |
|
2121 | b'ui', | |
2114 | b'debug', |
|
2122 | b'debug', | |
2115 | default=False, |
|
2123 | default=False, | |
2116 | ) |
|
2124 | ) | |
2117 | coreconfigitem( |
|
2125 | coreconfigitem( | |
2118 | b'ui', |
|
2126 | b'ui', | |
2119 | b'debugger', |
|
2127 | b'debugger', | |
2120 | default=None, |
|
2128 | default=None, | |
2121 | ) |
|
2129 | ) | |
2122 | coreconfigitem( |
|
2130 | coreconfigitem( | |
2123 | b'ui', |
|
2131 | b'ui', | |
2124 | b'editor', |
|
2132 | b'editor', | |
2125 | default=dynamicdefault, |
|
2133 | default=dynamicdefault, | |
2126 | ) |
|
2134 | ) | |
2127 | coreconfigitem( |
|
2135 | coreconfigitem( | |
2128 | b'ui', |
|
2136 | b'ui', | |
2129 | b'detailed-exit-code', |
|
2137 | b'detailed-exit-code', | |
2130 | default=False, |
|
2138 | default=False, | |
2131 | experimental=True, |
|
2139 | experimental=True, | |
2132 | ) |
|
2140 | ) | |
2133 | coreconfigitem( |
|
2141 | coreconfigitem( | |
2134 | b'ui', |
|
2142 | b'ui', | |
2135 | b'fallbackencoding', |
|
2143 | b'fallbackencoding', | |
2136 | default=None, |
|
2144 | default=None, | |
2137 | ) |
|
2145 | ) | |
2138 | coreconfigitem( |
|
2146 | coreconfigitem( | |
2139 | b'ui', |
|
2147 | b'ui', | |
2140 | b'forcecwd', |
|
2148 | b'forcecwd', | |
2141 | default=None, |
|
2149 | default=None, | |
2142 | ) |
|
2150 | ) | |
2143 | coreconfigitem( |
|
2151 | coreconfigitem( | |
2144 | b'ui', |
|
2152 | b'ui', | |
2145 | b'forcemerge', |
|
2153 | b'forcemerge', | |
2146 | default=None, |
|
2154 | default=None, | |
2147 | ) |
|
2155 | ) | |
2148 | coreconfigitem( |
|
2156 | coreconfigitem( | |
2149 | b'ui', |
|
2157 | b'ui', | |
2150 | b'formatdebug', |
|
2158 | b'formatdebug', | |
2151 | default=False, |
|
2159 | default=False, | |
2152 | ) |
|
2160 | ) | |
2153 | coreconfigitem( |
|
2161 | coreconfigitem( | |
2154 | b'ui', |
|
2162 | b'ui', | |
2155 | b'formatjson', |
|
2163 | b'formatjson', | |
2156 | default=False, |
|
2164 | default=False, | |
2157 | ) |
|
2165 | ) | |
2158 | coreconfigitem( |
|
2166 | coreconfigitem( | |
2159 | b'ui', |
|
2167 | b'ui', | |
2160 | b'formatted', |
|
2168 | b'formatted', | |
2161 | default=None, |
|
2169 | default=None, | |
2162 | ) |
|
2170 | ) | |
2163 | coreconfigitem( |
|
2171 | coreconfigitem( | |
2164 | b'ui', |
|
2172 | b'ui', | |
2165 | b'interactive', |
|
2173 | b'interactive', | |
2166 | default=None, |
|
2174 | default=None, | |
2167 | ) |
|
2175 | ) | |
2168 | coreconfigitem( |
|
2176 | coreconfigitem( | |
2169 | b'ui', |
|
2177 | b'ui', | |
2170 | b'interface', |
|
2178 | b'interface', | |
2171 | default=None, |
|
2179 | default=None, | |
2172 | ) |
|
2180 | ) | |
2173 | coreconfigitem( |
|
2181 | coreconfigitem( | |
2174 | b'ui', |
|
2182 | b'ui', | |
2175 | b'interface.chunkselector', |
|
2183 | b'interface.chunkselector', | |
2176 | default=None, |
|
2184 | default=None, | |
2177 | ) |
|
2185 | ) | |
2178 | coreconfigitem( |
|
2186 | coreconfigitem( | |
2179 | b'ui', |
|
2187 | b'ui', | |
2180 | b'large-file-limit', |
|
2188 | b'large-file-limit', | |
2181 | default=10000000, |
|
2189 | default=10000000, | |
2182 | ) |
|
2190 | ) | |
2183 | coreconfigitem( |
|
2191 | coreconfigitem( | |
2184 | b'ui', |
|
2192 | b'ui', | |
2185 | b'logblockedtimes', |
|
2193 | b'logblockedtimes', | |
2186 | default=False, |
|
2194 | default=False, | |
2187 | ) |
|
2195 | ) | |
2188 | coreconfigitem( |
|
2196 | coreconfigitem( | |
2189 | b'ui', |
|
2197 | b'ui', | |
2190 | b'merge', |
|
2198 | b'merge', | |
2191 | default=None, |
|
2199 | default=None, | |
2192 | ) |
|
2200 | ) | |
2193 | coreconfigitem( |
|
2201 | coreconfigitem( | |
2194 | b'ui', |
|
2202 | b'ui', | |
2195 | b'mergemarkers', |
|
2203 | b'mergemarkers', | |
2196 | default=b'basic', |
|
2204 | default=b'basic', | |
2197 | ) |
|
2205 | ) | |
2198 | coreconfigitem( |
|
2206 | coreconfigitem( | |
2199 | b'ui', |
|
2207 | b'ui', | |
2200 | b'message-output', |
|
2208 | b'message-output', | |
2201 | default=b'stdio', |
|
2209 | default=b'stdio', | |
2202 | ) |
|
2210 | ) | |
2203 | coreconfigitem( |
|
2211 | coreconfigitem( | |
2204 | b'ui', |
|
2212 | b'ui', | |
2205 | b'nontty', |
|
2213 | b'nontty', | |
2206 | default=False, |
|
2214 | default=False, | |
2207 | ) |
|
2215 | ) | |
2208 | coreconfigitem( |
|
2216 | coreconfigitem( | |
2209 | b'ui', |
|
2217 | b'ui', | |
2210 | b'origbackuppath', |
|
2218 | b'origbackuppath', | |
2211 | default=None, |
|
2219 | default=None, | |
2212 | ) |
|
2220 | ) | |
2213 | coreconfigitem( |
|
2221 | coreconfigitem( | |
2214 | b'ui', |
|
2222 | b'ui', | |
2215 | b'paginate', |
|
2223 | b'paginate', | |
2216 | default=True, |
|
2224 | default=True, | |
2217 | ) |
|
2225 | ) | |
2218 | coreconfigitem( |
|
2226 | coreconfigitem( | |
2219 | b'ui', |
|
2227 | b'ui', | |
2220 | b'patch', |
|
2228 | b'patch', | |
2221 | default=None, |
|
2229 | default=None, | |
2222 | ) |
|
2230 | ) | |
2223 | coreconfigitem( |
|
2231 | coreconfigitem( | |
2224 | b'ui', |
|
2232 | b'ui', | |
2225 | b'portablefilenames', |
|
2233 | b'portablefilenames', | |
2226 | default=b'warn', |
|
2234 | default=b'warn', | |
2227 | ) |
|
2235 | ) | |
2228 | coreconfigitem( |
|
2236 | coreconfigitem( | |
2229 | b'ui', |
|
2237 | b'ui', | |
2230 | b'promptecho', |
|
2238 | b'promptecho', | |
2231 | default=False, |
|
2239 | default=False, | |
2232 | ) |
|
2240 | ) | |
2233 | coreconfigitem( |
|
2241 | coreconfigitem( | |
2234 | b'ui', |
|
2242 | b'ui', | |
2235 | b'quiet', |
|
2243 | b'quiet', | |
2236 | default=False, |
|
2244 | default=False, | |
2237 | ) |
|
2245 | ) | |
2238 | coreconfigitem( |
|
2246 | coreconfigitem( | |
2239 | b'ui', |
|
2247 | b'ui', | |
2240 | b'quietbookmarkmove', |
|
2248 | b'quietbookmarkmove', | |
2241 | default=False, |
|
2249 | default=False, | |
2242 | ) |
|
2250 | ) | |
2243 | coreconfigitem( |
|
2251 | coreconfigitem( | |
2244 | b'ui', |
|
2252 | b'ui', | |
2245 | b'relative-paths', |
|
2253 | b'relative-paths', | |
2246 | default=b'legacy', |
|
2254 | default=b'legacy', | |
2247 | ) |
|
2255 | ) | |
2248 | coreconfigitem( |
|
2256 | coreconfigitem( | |
2249 | b'ui', |
|
2257 | b'ui', | |
2250 | b'remotecmd', |
|
2258 | b'remotecmd', | |
2251 | default=b'hg', |
|
2259 | default=b'hg', | |
2252 | ) |
|
2260 | ) | |
2253 | coreconfigitem( |
|
2261 | coreconfigitem( | |
2254 | b'ui', |
|
2262 | b'ui', | |
2255 | b'report_untrusted', |
|
2263 | b'report_untrusted', | |
2256 | default=True, |
|
2264 | default=True, | |
2257 | ) |
|
2265 | ) | |
2258 | coreconfigitem( |
|
2266 | coreconfigitem( | |
2259 | b'ui', |
|
2267 | b'ui', | |
2260 | b'rollback', |
|
2268 | b'rollback', | |
2261 | default=True, |
|
2269 | default=True, | |
2262 | ) |
|
2270 | ) | |
2263 | coreconfigitem( |
|
2271 | coreconfigitem( | |
2264 | b'ui', |
|
2272 | b'ui', | |
2265 | b'signal-safe-lock', |
|
2273 | b'signal-safe-lock', | |
2266 | default=True, |
|
2274 | default=True, | |
2267 | ) |
|
2275 | ) | |
2268 | coreconfigitem( |
|
2276 | coreconfigitem( | |
2269 | b'ui', |
|
2277 | b'ui', | |
2270 | b'slash', |
|
2278 | b'slash', | |
2271 | default=False, |
|
2279 | default=False, | |
2272 | ) |
|
2280 | ) | |
2273 | coreconfigitem( |
|
2281 | coreconfigitem( | |
2274 | b'ui', |
|
2282 | b'ui', | |
2275 | b'ssh', |
|
2283 | b'ssh', | |
2276 | default=b'ssh', |
|
2284 | default=b'ssh', | |
2277 | ) |
|
2285 | ) | |
2278 | coreconfigitem( |
|
2286 | coreconfigitem( | |
2279 | b'ui', |
|
2287 | b'ui', | |
2280 | b'ssherrorhint', |
|
2288 | b'ssherrorhint', | |
2281 | default=None, |
|
2289 | default=None, | |
2282 | ) |
|
2290 | ) | |
2283 | coreconfigitem( |
|
2291 | coreconfigitem( | |
2284 | b'ui', |
|
2292 | b'ui', | |
2285 | b'statuscopies', |
|
2293 | b'statuscopies', | |
2286 | default=False, |
|
2294 | default=False, | |
2287 | ) |
|
2295 | ) | |
2288 | coreconfigitem( |
|
2296 | coreconfigitem( | |
2289 | b'ui', |
|
2297 | b'ui', | |
2290 | b'strict', |
|
2298 | b'strict', | |
2291 | default=False, |
|
2299 | default=False, | |
2292 | ) |
|
2300 | ) | |
2293 | coreconfigitem( |
|
2301 | coreconfigitem( | |
2294 | b'ui', |
|
2302 | b'ui', | |
2295 | b'style', |
|
2303 | b'style', | |
2296 | default=b'', |
|
2304 | default=b'', | |
2297 | ) |
|
2305 | ) | |
2298 | coreconfigitem( |
|
2306 | coreconfigitem( | |
2299 | b'ui', |
|
2307 | b'ui', | |
2300 | b'supportcontact', |
|
2308 | b'supportcontact', | |
2301 | default=None, |
|
2309 | default=None, | |
2302 | ) |
|
2310 | ) | |
2303 | coreconfigitem( |
|
2311 | coreconfigitem( | |
2304 | b'ui', |
|
2312 | b'ui', | |
2305 | b'textwidth', |
|
2313 | b'textwidth', | |
2306 | default=78, |
|
2314 | default=78, | |
2307 | ) |
|
2315 | ) | |
2308 | coreconfigitem( |
|
2316 | coreconfigitem( | |
2309 | b'ui', |
|
2317 | b'ui', | |
2310 | b'timeout', |
|
2318 | b'timeout', | |
2311 | default=b'600', |
|
2319 | default=b'600', | |
2312 | ) |
|
2320 | ) | |
2313 | coreconfigitem( |
|
2321 | coreconfigitem( | |
2314 | b'ui', |
|
2322 | b'ui', | |
2315 | b'timeout.warn', |
|
2323 | b'timeout.warn', | |
2316 | default=0, |
|
2324 | default=0, | |
2317 | ) |
|
2325 | ) | |
2318 | coreconfigitem( |
|
2326 | coreconfigitem( | |
2319 | b'ui', |
|
2327 | b'ui', | |
2320 | b'timestamp-output', |
|
2328 | b'timestamp-output', | |
2321 | default=False, |
|
2329 | default=False, | |
2322 | ) |
|
2330 | ) | |
2323 | coreconfigitem( |
|
2331 | coreconfigitem( | |
2324 | b'ui', |
|
2332 | b'ui', | |
2325 | b'traceback', |
|
2333 | b'traceback', | |
2326 | default=False, |
|
2334 | default=False, | |
2327 | ) |
|
2335 | ) | |
2328 | coreconfigitem( |
|
2336 | coreconfigitem( | |
2329 | b'ui', |
|
2337 | b'ui', | |
2330 | b'tweakdefaults', |
|
2338 | b'tweakdefaults', | |
2331 | default=False, |
|
2339 | default=False, | |
2332 | ) |
|
2340 | ) | |
2333 | coreconfigitem(b'ui', b'username', alias=[(b'ui', b'user')]) |
|
2341 | coreconfigitem(b'ui', b'username', alias=[(b'ui', b'user')]) | |
2334 | coreconfigitem( |
|
2342 | coreconfigitem( | |
2335 | b'ui', |
|
2343 | b'ui', | |
2336 | b'verbose', |
|
2344 | b'verbose', | |
2337 | default=False, |
|
2345 | default=False, | |
2338 | ) |
|
2346 | ) | |
2339 | coreconfigitem( |
|
2347 | coreconfigitem( | |
2340 | b'verify', |
|
2348 | b'verify', | |
2341 | b'skipflags', |
|
2349 | b'skipflags', | |
2342 | default=None, |
|
2350 | default=None, | |
2343 | ) |
|
2351 | ) | |
2344 | coreconfigitem( |
|
2352 | coreconfigitem( | |
2345 | b'web', |
|
2353 | b'web', | |
2346 | b'allowbz2', |
|
2354 | b'allowbz2', | |
2347 | default=False, |
|
2355 | default=False, | |
2348 | ) |
|
2356 | ) | |
2349 | coreconfigitem( |
|
2357 | coreconfigitem( | |
2350 | b'web', |
|
2358 | b'web', | |
2351 | b'allowgz', |
|
2359 | b'allowgz', | |
2352 | default=False, |
|
2360 | default=False, | |
2353 | ) |
|
2361 | ) | |
2354 | coreconfigitem( |
|
2362 | coreconfigitem( | |
2355 | b'web', |
|
2363 | b'web', | |
2356 | b'allow-pull', |
|
2364 | b'allow-pull', | |
2357 | alias=[(b'web', b'allowpull')], |
|
2365 | alias=[(b'web', b'allowpull')], | |
2358 | default=True, |
|
2366 | default=True, | |
2359 | ) |
|
2367 | ) | |
2360 | coreconfigitem( |
|
2368 | coreconfigitem( | |
2361 | b'web', |
|
2369 | b'web', | |
2362 | b'allow-push', |
|
2370 | b'allow-push', | |
2363 | alias=[(b'web', b'allow_push')], |
|
2371 | alias=[(b'web', b'allow_push')], | |
2364 | default=list, |
|
2372 | default=list, | |
2365 | ) |
|
2373 | ) | |
2366 | coreconfigitem( |
|
2374 | coreconfigitem( | |
2367 | b'web', |
|
2375 | b'web', | |
2368 | b'allowzip', |
|
2376 | b'allowzip', | |
2369 | default=False, |
|
2377 | default=False, | |
2370 | ) |
|
2378 | ) | |
2371 | coreconfigitem( |
|
2379 | coreconfigitem( | |
2372 | b'web', |
|
2380 | b'web', | |
2373 | b'archivesubrepos', |
|
2381 | b'archivesubrepos', | |
2374 | default=False, |
|
2382 | default=False, | |
2375 | ) |
|
2383 | ) | |
2376 | coreconfigitem( |
|
2384 | coreconfigitem( | |
2377 | b'web', |
|
2385 | b'web', | |
2378 | b'cache', |
|
2386 | b'cache', | |
2379 | default=True, |
|
2387 | default=True, | |
2380 | ) |
|
2388 | ) | |
2381 | coreconfigitem( |
|
2389 | coreconfigitem( | |
2382 | b'web', |
|
2390 | b'web', | |
2383 | b'comparisoncontext', |
|
2391 | b'comparisoncontext', | |
2384 | default=5, |
|
2392 | default=5, | |
2385 | ) |
|
2393 | ) | |
2386 | coreconfigitem( |
|
2394 | coreconfigitem( | |
2387 | b'web', |
|
2395 | b'web', | |
2388 | b'contact', |
|
2396 | b'contact', | |
2389 | default=None, |
|
2397 | default=None, | |
2390 | ) |
|
2398 | ) | |
2391 | coreconfigitem( |
|
2399 | coreconfigitem( | |
2392 | b'web', |
|
2400 | b'web', | |
2393 | b'deny_push', |
|
2401 | b'deny_push', | |
2394 | default=list, |
|
2402 | default=list, | |
2395 | ) |
|
2403 | ) | |
2396 | coreconfigitem( |
|
2404 | coreconfigitem( | |
2397 | b'web', |
|
2405 | b'web', | |
2398 | b'guessmime', |
|
2406 | b'guessmime', | |
2399 | default=False, |
|
2407 | default=False, | |
2400 | ) |
|
2408 | ) | |
2401 | coreconfigitem( |
|
2409 | coreconfigitem( | |
2402 | b'web', |
|
2410 | b'web', | |
2403 | b'hidden', |
|
2411 | b'hidden', | |
2404 | default=False, |
|
2412 | default=False, | |
2405 | ) |
|
2413 | ) | |
2406 | coreconfigitem( |
|
2414 | coreconfigitem( | |
2407 | b'web', |
|
2415 | b'web', | |
2408 | b'labels', |
|
2416 | b'labels', | |
2409 | default=list, |
|
2417 | default=list, | |
2410 | ) |
|
2418 | ) | |
2411 | coreconfigitem( |
|
2419 | coreconfigitem( | |
2412 | b'web', |
|
2420 | b'web', | |
2413 | b'logoimg', |
|
2421 | b'logoimg', | |
2414 | default=b'hglogo.png', |
|
2422 | default=b'hglogo.png', | |
2415 | ) |
|
2423 | ) | |
2416 | coreconfigitem( |
|
2424 | coreconfigitem( | |
2417 | b'web', |
|
2425 | b'web', | |
2418 | b'logourl', |
|
2426 | b'logourl', | |
2419 | default=b'https://mercurial-scm.org/', |
|
2427 | default=b'https://mercurial-scm.org/', | |
2420 | ) |
|
2428 | ) | |
2421 | coreconfigitem( |
|
2429 | coreconfigitem( | |
2422 | b'web', |
|
2430 | b'web', | |
2423 | b'accesslog', |
|
2431 | b'accesslog', | |
2424 | default=b'-', |
|
2432 | default=b'-', | |
2425 | ) |
|
2433 | ) | |
2426 | coreconfigitem( |
|
2434 | coreconfigitem( | |
2427 | b'web', |
|
2435 | b'web', | |
2428 | b'address', |
|
2436 | b'address', | |
2429 | default=b'', |
|
2437 | default=b'', | |
2430 | ) |
|
2438 | ) | |
2431 | coreconfigitem( |
|
2439 | coreconfigitem( | |
2432 | b'web', |
|
2440 | b'web', | |
2433 | b'allow-archive', |
|
2441 | b'allow-archive', | |
2434 | alias=[(b'web', b'allow_archive')], |
|
2442 | alias=[(b'web', b'allow_archive')], | |
2435 | default=list, |
|
2443 | default=list, | |
2436 | ) |
|
2444 | ) | |
2437 | coreconfigitem( |
|
2445 | coreconfigitem( | |
2438 | b'web', |
|
2446 | b'web', | |
2439 | b'allow_read', |
|
2447 | b'allow_read', | |
2440 | default=list, |
|
2448 | default=list, | |
2441 | ) |
|
2449 | ) | |
2442 | coreconfigitem( |
|
2450 | coreconfigitem( | |
2443 | b'web', |
|
2451 | b'web', | |
2444 | b'baseurl', |
|
2452 | b'baseurl', | |
2445 | default=None, |
|
2453 | default=None, | |
2446 | ) |
|
2454 | ) | |
2447 | coreconfigitem( |
|
2455 | coreconfigitem( | |
2448 | b'web', |
|
2456 | b'web', | |
2449 | b'cacerts', |
|
2457 | b'cacerts', | |
2450 | default=None, |
|
2458 | default=None, | |
2451 | ) |
|
2459 | ) | |
2452 | coreconfigitem( |
|
2460 | coreconfigitem( | |
2453 | b'web', |
|
2461 | b'web', | |
2454 | b'certificate', |
|
2462 | b'certificate', | |
2455 | default=None, |
|
2463 | default=None, | |
2456 | ) |
|
2464 | ) | |
2457 | coreconfigitem( |
|
2465 | coreconfigitem( | |
2458 | b'web', |
|
2466 | b'web', | |
2459 | b'collapse', |
|
2467 | b'collapse', | |
2460 | default=False, |
|
2468 | default=False, | |
2461 | ) |
|
2469 | ) | |
2462 | coreconfigitem( |
|
2470 | coreconfigitem( | |
2463 | b'web', |
|
2471 | b'web', | |
2464 | b'csp', |
|
2472 | b'csp', | |
2465 | default=None, |
|
2473 | default=None, | |
2466 | ) |
|
2474 | ) | |
2467 | coreconfigitem( |
|
2475 | coreconfigitem( | |
2468 | b'web', |
|
2476 | b'web', | |
2469 | b'deny_read', |
|
2477 | b'deny_read', | |
2470 | default=list, |
|
2478 | default=list, | |
2471 | ) |
|
2479 | ) | |
2472 | coreconfigitem( |
|
2480 | coreconfigitem( | |
2473 | b'web', |
|
2481 | b'web', | |
2474 | b'descend', |
|
2482 | b'descend', | |
2475 | default=True, |
|
2483 | default=True, | |
2476 | ) |
|
2484 | ) | |
2477 | coreconfigitem( |
|
2485 | coreconfigitem( | |
2478 | b'web', |
|
2486 | b'web', | |
2479 | b'description', |
|
2487 | b'description', | |
2480 | default=b"", |
|
2488 | default=b"", | |
2481 | ) |
|
2489 | ) | |
2482 | coreconfigitem( |
|
2490 | coreconfigitem( | |
2483 | b'web', |
|
2491 | b'web', | |
2484 | b'encoding', |
|
2492 | b'encoding', | |
2485 | default=lambda: encoding.encoding, |
|
2493 | default=lambda: encoding.encoding, | |
2486 | ) |
|
2494 | ) | |
2487 | coreconfigitem( |
|
2495 | coreconfigitem( | |
2488 | b'web', |
|
2496 | b'web', | |
2489 | b'errorlog', |
|
2497 | b'errorlog', | |
2490 | default=b'-', |
|
2498 | default=b'-', | |
2491 | ) |
|
2499 | ) | |
2492 | coreconfigitem( |
|
2500 | coreconfigitem( | |
2493 | b'web', |
|
2501 | b'web', | |
2494 | b'ipv6', |
|
2502 | b'ipv6', | |
2495 | default=False, |
|
2503 | default=False, | |
2496 | ) |
|
2504 | ) | |
2497 | coreconfigitem( |
|
2505 | coreconfigitem( | |
2498 | b'web', |
|
2506 | b'web', | |
2499 | b'maxchanges', |
|
2507 | b'maxchanges', | |
2500 | default=10, |
|
2508 | default=10, | |
2501 | ) |
|
2509 | ) | |
2502 | coreconfigitem( |
|
2510 | coreconfigitem( | |
2503 | b'web', |
|
2511 | b'web', | |
2504 | b'maxfiles', |
|
2512 | b'maxfiles', | |
2505 | default=10, |
|
2513 | default=10, | |
2506 | ) |
|
2514 | ) | |
2507 | coreconfigitem( |
|
2515 | coreconfigitem( | |
2508 | b'web', |
|
2516 | b'web', | |
2509 | b'maxshortchanges', |
|
2517 | b'maxshortchanges', | |
2510 | default=60, |
|
2518 | default=60, | |
2511 | ) |
|
2519 | ) | |
2512 | coreconfigitem( |
|
2520 | coreconfigitem( | |
2513 | b'web', |
|
2521 | b'web', | |
2514 | b'motd', |
|
2522 | b'motd', | |
2515 | default=b'', |
|
2523 | default=b'', | |
2516 | ) |
|
2524 | ) | |
2517 | coreconfigitem( |
|
2525 | coreconfigitem( | |
2518 | b'web', |
|
2526 | b'web', | |
2519 | b'name', |
|
2527 | b'name', | |
2520 | default=dynamicdefault, |
|
2528 | default=dynamicdefault, | |
2521 | ) |
|
2529 | ) | |
2522 | coreconfigitem( |
|
2530 | coreconfigitem( | |
2523 | b'web', |
|
2531 | b'web', | |
2524 | b'port', |
|
2532 | b'port', | |
2525 | default=8000, |
|
2533 | default=8000, | |
2526 | ) |
|
2534 | ) | |
2527 | coreconfigitem( |
|
2535 | coreconfigitem( | |
2528 | b'web', |
|
2536 | b'web', | |
2529 | b'prefix', |
|
2537 | b'prefix', | |
2530 | default=b'', |
|
2538 | default=b'', | |
2531 | ) |
|
2539 | ) | |
2532 | coreconfigitem( |
|
2540 | coreconfigitem( | |
2533 | b'web', |
|
2541 | b'web', | |
2534 | b'push_ssl', |
|
2542 | b'push_ssl', | |
2535 | default=True, |
|
2543 | default=True, | |
2536 | ) |
|
2544 | ) | |
2537 | coreconfigitem( |
|
2545 | coreconfigitem( | |
2538 | b'web', |
|
2546 | b'web', | |
2539 | b'refreshinterval', |
|
2547 | b'refreshinterval', | |
2540 | default=20, |
|
2548 | default=20, | |
2541 | ) |
|
2549 | ) | |
2542 | coreconfigitem( |
|
2550 | coreconfigitem( | |
2543 | b'web', |
|
2551 | b'web', | |
2544 | b'server-header', |
|
2552 | b'server-header', | |
2545 | default=None, |
|
2553 | default=None, | |
2546 | ) |
|
2554 | ) | |
2547 | coreconfigitem( |
|
2555 | coreconfigitem( | |
2548 | b'web', |
|
2556 | b'web', | |
2549 | b'static', |
|
2557 | b'static', | |
2550 | default=None, |
|
2558 | default=None, | |
2551 | ) |
|
2559 | ) | |
2552 | coreconfigitem( |
|
2560 | coreconfigitem( | |
2553 | b'web', |
|
2561 | b'web', | |
2554 | b'staticurl', |
|
2562 | b'staticurl', | |
2555 | default=None, |
|
2563 | default=None, | |
2556 | ) |
|
2564 | ) | |
2557 | coreconfigitem( |
|
2565 | coreconfigitem( | |
2558 | b'web', |
|
2566 | b'web', | |
2559 | b'stripes', |
|
2567 | b'stripes', | |
2560 | default=1, |
|
2568 | default=1, | |
2561 | ) |
|
2569 | ) | |
2562 | coreconfigitem( |
|
2570 | coreconfigitem( | |
2563 | b'web', |
|
2571 | b'web', | |
2564 | b'style', |
|
2572 | b'style', | |
2565 | default=b'paper', |
|
2573 | default=b'paper', | |
2566 | ) |
|
2574 | ) | |
2567 | coreconfigitem( |
|
2575 | coreconfigitem( | |
2568 | b'web', |
|
2576 | b'web', | |
2569 | b'templates', |
|
2577 | b'templates', | |
2570 | default=None, |
|
2578 | default=None, | |
2571 | ) |
|
2579 | ) | |
2572 | coreconfigitem( |
|
2580 | coreconfigitem( | |
2573 | b'web', |
|
2581 | b'web', | |
2574 | b'view', |
|
2582 | b'view', | |
2575 | default=b'served', |
|
2583 | default=b'served', | |
2576 | experimental=True, |
|
2584 | experimental=True, | |
2577 | ) |
|
2585 | ) | |
2578 | coreconfigitem( |
|
2586 | coreconfigitem( | |
2579 | b'worker', |
|
2587 | b'worker', | |
2580 | b'backgroundclose', |
|
2588 | b'backgroundclose', | |
2581 | default=dynamicdefault, |
|
2589 | default=dynamicdefault, | |
2582 | ) |
|
2590 | ) | |
2583 | # Windows defaults to a limit of 512 open files. A buffer of 128 |
|
2591 | # Windows defaults to a limit of 512 open files. A buffer of 128 | |
2584 | # should give us enough headway. |
|
2592 | # should give us enough headway. | |
2585 | coreconfigitem( |
|
2593 | coreconfigitem( | |
2586 | b'worker', |
|
2594 | b'worker', | |
2587 | b'backgroundclosemaxqueue', |
|
2595 | b'backgroundclosemaxqueue', | |
2588 | default=384, |
|
2596 | default=384, | |
2589 | ) |
|
2597 | ) | |
2590 | coreconfigitem( |
|
2598 | coreconfigitem( | |
2591 | b'worker', |
|
2599 | b'worker', | |
2592 | b'backgroundcloseminfilecount', |
|
2600 | b'backgroundcloseminfilecount', | |
2593 | default=2048, |
|
2601 | default=2048, | |
2594 | ) |
|
2602 | ) | |
2595 | coreconfigitem( |
|
2603 | coreconfigitem( | |
2596 | b'worker', |
|
2604 | b'worker', | |
2597 | b'backgroundclosethreadcount', |
|
2605 | b'backgroundclosethreadcount', | |
2598 | default=4, |
|
2606 | default=4, | |
2599 | ) |
|
2607 | ) | |
2600 | coreconfigitem( |
|
2608 | coreconfigitem( | |
2601 | b'worker', |
|
2609 | b'worker', | |
2602 | b'enabled', |
|
2610 | b'enabled', | |
2603 | default=True, |
|
2611 | default=True, | |
2604 | ) |
|
2612 | ) | |
2605 | coreconfigitem( |
|
2613 | coreconfigitem( | |
2606 | b'worker', |
|
2614 | b'worker', | |
2607 | b'numcpus', |
|
2615 | b'numcpus', | |
2608 | default=None, |
|
2616 | default=None, | |
2609 | ) |
|
2617 | ) | |
2610 |
|
2618 | |||
2611 | # Rebase related configuration moved to core because other extension are doing |
|
2619 | # Rebase related configuration moved to core because other extension are doing | |
2612 | # strange things. For example, shelve import the extensions to reuse some bit |
|
2620 | # strange things. For example, shelve import the extensions to reuse some bit | |
2613 | # without formally loading it. |
|
2621 | # without formally loading it. | |
2614 | coreconfigitem( |
|
2622 | coreconfigitem( | |
2615 | b'commands', |
|
2623 | b'commands', | |
2616 | b'rebase.requiredest', |
|
2624 | b'rebase.requiredest', | |
2617 | default=False, |
|
2625 | default=False, | |
2618 | ) |
|
2626 | ) | |
2619 | coreconfigitem( |
|
2627 | coreconfigitem( | |
2620 | b'experimental', |
|
2628 | b'experimental', | |
2621 | b'rebaseskipobsolete', |
|
2629 | b'rebaseskipobsolete', | |
2622 | default=True, |
|
2630 | default=True, | |
2623 | ) |
|
2631 | ) | |
2624 | coreconfigitem( |
|
2632 | coreconfigitem( | |
2625 | b'rebase', |
|
2633 | b'rebase', | |
2626 | b'singletransaction', |
|
2634 | b'singletransaction', | |
2627 | default=False, |
|
2635 | default=False, | |
2628 | ) |
|
2636 | ) | |
2629 | coreconfigitem( |
|
2637 | coreconfigitem( | |
2630 | b'rebase', |
|
2638 | b'rebase', | |
2631 | b'experimental.inmemory', |
|
2639 | b'experimental.inmemory', | |
2632 | default=False, |
|
2640 | default=False, | |
2633 | ) |
|
2641 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now