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