Show More
@@ -1,644 +1,647 | |||||
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 |
|
11 | |||
12 | from . import ( |
|
12 | from . import ( | |
13 | encoding, |
|
13 | encoding, | |
14 | error, |
|
14 | error, | |
15 | ) |
|
15 | ) | |
16 |
|
16 | |||
17 | def loadconfigtable(ui, extname, configtable): |
|
17 | def loadconfigtable(ui, extname, configtable): | |
18 | """update config item known to the ui with the extension ones""" |
|
18 | """update config item known to the ui with the extension ones""" | |
19 | for section, items in configtable.items(): |
|
19 | for section, items in configtable.items(): | |
20 | knownitems = ui._knownconfig.setdefault(section, {}) |
|
20 | knownitems = ui._knownconfig.setdefault(section, {}) | |
21 | knownkeys = set(knownitems) |
|
21 | knownkeys = set(knownitems) | |
22 | newkeys = set(items) |
|
22 | newkeys = set(items) | |
23 | for key in sorted(knownkeys & newkeys): |
|
23 | for key in sorted(knownkeys & newkeys): | |
24 | msg = "extension '%s' overwrite config item '%s.%s'" |
|
24 | msg = "extension '%s' overwrite config item '%s.%s'" | |
25 | msg %= (extname, section, key) |
|
25 | msg %= (extname, section, key) | |
26 | ui.develwarn(msg, config='warn-config') |
|
26 | ui.develwarn(msg, config='warn-config') | |
27 |
|
27 | |||
28 | knownitems.update(items) |
|
28 | knownitems.update(items) | |
29 |
|
29 | |||
30 | class configitem(object): |
|
30 | class configitem(object): | |
31 | """represent a known config item |
|
31 | """represent a known config item | |
32 |
|
32 | |||
33 | :section: the official config section where to find this item, |
|
33 | :section: the official config section where to find this item, | |
34 | :name: the official name within the section, |
|
34 | :name: the official name within the section, | |
35 | :default: default value for this item, |
|
35 | :default: default value for this item, | |
36 | :alias: optional list of tuples as alternatives. |
|
36 | :alias: optional list of tuples as alternatives. | |
37 | """ |
|
37 | """ | |
38 |
|
38 | |||
39 | def __init__(self, section, name, default=None, alias=()): |
|
39 | def __init__(self, section, name, default=None, alias=()): | |
40 | self.section = section |
|
40 | self.section = section | |
41 | self.name = name |
|
41 | self.name = name | |
42 | self.default = default |
|
42 | self.default = default | |
43 | self.alias = list(alias) |
|
43 | self.alias = list(alias) | |
44 |
|
44 | |||
45 | coreitems = {} |
|
45 | coreitems = {} | |
46 |
|
46 | |||
47 | def _register(configtable, *args, **kwargs): |
|
47 | def _register(configtable, *args, **kwargs): | |
48 | item = configitem(*args, **kwargs) |
|
48 | item = configitem(*args, **kwargs) | |
49 | section = configtable.setdefault(item.section, {}) |
|
49 | section = configtable.setdefault(item.section, {}) | |
50 | if item.name in section: |
|
50 | if item.name in section: | |
51 | msg = "duplicated config item registration for '%s.%s'" |
|
51 | msg = "duplicated config item registration for '%s.%s'" | |
52 | raise error.ProgrammingError(msg % (item.section, item.name)) |
|
52 | raise error.ProgrammingError(msg % (item.section, item.name)) | |
53 | section[item.name] = item |
|
53 | section[item.name] = item | |
54 |
|
54 | |||
55 | # special value for case where the default is derived from other values |
|
55 | # special value for case where the default is derived from other values | |
56 | dynamicdefault = object() |
|
56 | dynamicdefault = object() | |
57 |
|
57 | |||
58 | # Registering actual config items |
|
58 | # Registering actual config items | |
59 |
|
59 | |||
60 | def getitemregister(configtable): |
|
60 | def getitemregister(configtable): | |
61 | return functools.partial(_register, configtable) |
|
61 | return functools.partial(_register, configtable) | |
62 |
|
62 | |||
63 | coreconfigitem = getitemregister(coreitems) |
|
63 | coreconfigitem = getitemregister(coreitems) | |
64 |
|
64 | |||
65 | coreconfigitem('auth', 'cookiefile', |
|
65 | coreconfigitem('auth', 'cookiefile', | |
66 | default=None, |
|
66 | default=None, | |
67 | ) |
|
67 | ) | |
68 | # bookmarks.pushing: internal hack for discovery |
|
68 | # bookmarks.pushing: internal hack for discovery | |
69 | coreconfigitem('bookmarks', 'pushing', |
|
69 | coreconfigitem('bookmarks', 'pushing', | |
70 | default=list, |
|
70 | default=list, | |
71 | ) |
|
71 | ) | |
72 | # bundle.mainreporoot: internal hack for bundlerepo |
|
72 | # bundle.mainreporoot: internal hack for bundlerepo | |
73 | coreconfigitem('bundle', 'mainreporoot', |
|
73 | coreconfigitem('bundle', 'mainreporoot', | |
74 | default='', |
|
74 | default='', | |
75 | ) |
|
75 | ) | |
76 | # bundle.reorder: experimental config |
|
76 | # bundle.reorder: experimental config | |
77 | coreconfigitem('bundle', 'reorder', |
|
77 | coreconfigitem('bundle', 'reorder', | |
78 | default='auto', |
|
78 | default='auto', | |
79 | ) |
|
79 | ) | |
80 | coreconfigitem('censor', 'policy', |
|
80 | coreconfigitem('censor', 'policy', | |
81 | default='abort', |
|
81 | default='abort', | |
82 | ) |
|
82 | ) | |
83 | coreconfigitem('chgserver', 'idletimeout', |
|
83 | coreconfigitem('chgserver', 'idletimeout', | |
84 | default=3600, |
|
84 | default=3600, | |
85 | ) |
|
85 | ) | |
86 | coreconfigitem('chgserver', 'skiphash', |
|
86 | coreconfigitem('chgserver', 'skiphash', | |
87 | default=False, |
|
87 | default=False, | |
88 | ) |
|
88 | ) | |
89 | coreconfigitem('cmdserver', 'log', |
|
89 | coreconfigitem('cmdserver', 'log', | |
90 | default=None, |
|
90 | default=None, | |
91 | ) |
|
91 | ) | |
92 | coreconfigitem('color', 'mode', |
|
92 | coreconfigitem('color', 'mode', | |
93 | default='auto', |
|
93 | default='auto', | |
94 | ) |
|
94 | ) | |
95 | coreconfigitem('color', 'pagermode', |
|
95 | coreconfigitem('color', 'pagermode', | |
96 | default=dynamicdefault, |
|
96 | default=dynamicdefault, | |
97 | ) |
|
97 | ) | |
98 | coreconfigitem('commands', 'status.relative', |
|
98 | coreconfigitem('commands', 'status.relative', | |
99 | default=False, |
|
99 | default=False, | |
100 | ) |
|
100 | ) | |
101 | coreconfigitem('commands', 'status.skipstates', |
|
101 | coreconfigitem('commands', 'status.skipstates', | |
102 | default=[], |
|
102 | default=[], | |
103 | ) |
|
103 | ) | |
104 | coreconfigitem('commands', 'status.verbose', |
|
104 | coreconfigitem('commands', 'status.verbose', | |
105 | default=False, |
|
105 | default=False, | |
106 | ) |
|
106 | ) | |
107 | coreconfigitem('commands', 'update.requiredest', |
|
107 | coreconfigitem('commands', 'update.requiredest', | |
108 | default=False, |
|
108 | default=False, | |
109 | ) |
|
109 | ) | |
110 | coreconfigitem('devel', 'all-warnings', |
|
110 | coreconfigitem('devel', 'all-warnings', | |
111 | default=False, |
|
111 | default=False, | |
112 | ) |
|
112 | ) | |
113 | coreconfigitem('devel', 'bundle2.debug', |
|
113 | coreconfigitem('devel', 'bundle2.debug', | |
114 | default=False, |
|
114 | default=False, | |
115 | ) |
|
115 | ) | |
116 | coreconfigitem('devel', 'check-locks', |
|
116 | coreconfigitem('devel', 'check-locks', | |
117 | default=False, |
|
117 | default=False, | |
118 | ) |
|
118 | ) | |
119 | coreconfigitem('devel', 'check-relroot', |
|
119 | coreconfigitem('devel', 'check-relroot', | |
120 | default=False, |
|
120 | default=False, | |
121 | ) |
|
121 | ) | |
122 | coreconfigitem('devel', 'default-date', |
|
122 | coreconfigitem('devel', 'default-date', | |
123 | default=None, |
|
123 | default=None, | |
124 | ) |
|
124 | ) | |
125 | coreconfigitem('devel', 'deprec-warn', |
|
125 | coreconfigitem('devel', 'deprec-warn', | |
126 | default=False, |
|
126 | default=False, | |
127 | ) |
|
127 | ) | |
128 | coreconfigitem('devel', 'disableloaddefaultcerts', |
|
128 | coreconfigitem('devel', 'disableloaddefaultcerts', | |
129 | default=False, |
|
129 | default=False, | |
130 | ) |
|
130 | ) | |
131 | coreconfigitem('devel', 'legacy.exchange', |
|
131 | coreconfigitem('devel', 'legacy.exchange', | |
132 | default=list, |
|
132 | default=list, | |
133 | ) |
|
133 | ) | |
134 | coreconfigitem('devel', 'servercafile', |
|
134 | coreconfigitem('devel', 'servercafile', | |
135 | default='', |
|
135 | default='', | |
136 | ) |
|
136 | ) | |
137 | coreconfigitem('devel', 'serverexactprotocol', |
|
137 | coreconfigitem('devel', 'serverexactprotocol', | |
138 | default='', |
|
138 | default='', | |
139 | ) |
|
139 | ) | |
140 | coreconfigitem('devel', 'serverrequirecert', |
|
140 | coreconfigitem('devel', 'serverrequirecert', | |
141 | default=False, |
|
141 | default=False, | |
142 | ) |
|
142 | ) | |
143 | coreconfigitem('devel', 'strip-obsmarkers', |
|
143 | coreconfigitem('devel', 'strip-obsmarkers', | |
144 | default=True, |
|
144 | default=True, | |
145 | ) |
|
145 | ) | |
146 | coreconfigitem('email', 'charsets', |
|
146 | coreconfigitem('email', 'charsets', | |
147 | default=list, |
|
147 | default=list, | |
148 | ) |
|
148 | ) | |
149 | coreconfigitem('email', 'method', |
|
149 | coreconfigitem('email', 'method', | |
150 | default='smtp', |
|
150 | default='smtp', | |
151 | ) |
|
151 | ) | |
152 | coreconfigitem('experimental', 'bundle-phases', |
|
152 | coreconfigitem('experimental', 'bundle-phases', | |
153 | default=False, |
|
153 | default=False, | |
154 | ) |
|
154 | ) | |
155 | coreconfigitem('experimental', 'bundle2-advertise', |
|
155 | coreconfigitem('experimental', 'bundle2-advertise', | |
156 | default=True, |
|
156 | default=True, | |
157 | ) |
|
157 | ) | |
158 | coreconfigitem('experimental', 'bundle2-output-capture', |
|
158 | coreconfigitem('experimental', 'bundle2-output-capture', | |
159 | default=False, |
|
159 | default=False, | |
160 | ) |
|
160 | ) | |
161 | coreconfigitem('experimental', 'bundle2.pushback', |
|
161 | coreconfigitem('experimental', 'bundle2.pushback', | |
162 | default=False, |
|
162 | default=False, | |
163 | ) |
|
163 | ) | |
164 | coreconfigitem('experimental', 'bundle2lazylocking', |
|
164 | coreconfigitem('experimental', 'bundle2lazylocking', | |
165 | default=False, |
|
165 | default=False, | |
166 | ) |
|
166 | ) | |
167 | coreconfigitem('experimental', 'bundlecomplevel', |
|
167 | coreconfigitem('experimental', 'bundlecomplevel', | |
168 | default=None, |
|
168 | default=None, | |
169 | ) |
|
169 | ) | |
170 | coreconfigitem('experimental', 'changegroup3', |
|
170 | coreconfigitem('experimental', 'changegroup3', | |
171 | default=False, |
|
171 | default=False, | |
172 | ) |
|
172 | ) | |
173 | coreconfigitem('experimental', 'clientcompressionengines', |
|
173 | coreconfigitem('experimental', 'clientcompressionengines', | |
174 | default=list, |
|
174 | default=list, | |
175 | ) |
|
175 | ) | |
176 | coreconfigitem('experimental', 'copytrace', |
|
176 | coreconfigitem('experimental', 'copytrace', | |
177 | default='on', |
|
177 | default='on', | |
178 | ) |
|
178 | ) | |
179 | coreconfigitem('experimental', 'crecordtest', |
|
179 | coreconfigitem('experimental', 'crecordtest', | |
180 | default=None, |
|
180 | default=None, | |
181 | ) |
|
181 | ) | |
182 | coreconfigitem('experimental', 'editortmpinhg', |
|
182 | coreconfigitem('experimental', 'editortmpinhg', | |
183 | default=False, |
|
183 | default=False, | |
184 | ) |
|
184 | ) | |
185 | coreconfigitem('experimental', 'stabilization', |
|
185 | coreconfigitem('experimental', 'stabilization', | |
186 | default=list, |
|
186 | default=list, | |
187 | alias=[('experimental', 'evolution')], |
|
187 | alias=[('experimental', 'evolution')], | |
188 | ) |
|
188 | ) | |
189 | coreconfigitem('experimental', 'stabilization.bundle-obsmarker', |
|
189 | coreconfigitem('experimental', 'stabilization.bundle-obsmarker', | |
190 | default=False, |
|
190 | default=False, | |
191 | alias=[('experimental', 'evolution.bundle-obsmarker')], |
|
191 | alias=[('experimental', 'evolution.bundle-obsmarker')], | |
192 | ) |
|
192 | ) | |
193 | coreconfigitem('experimental', 'stabilization.track-operation', |
|
193 | coreconfigitem('experimental', 'stabilization.track-operation', | |
194 | default=False, |
|
194 | default=False, | |
195 | alias=[('experimental', 'evolution.track-operation')] |
|
195 | alias=[('experimental', 'evolution.track-operation')] | |
196 | ) |
|
196 | ) | |
197 | coreconfigitem('experimental', 'exportableenviron', |
|
197 | coreconfigitem('experimental', 'exportableenviron', | |
198 | default=list, |
|
198 | default=list, | |
199 | ) |
|
199 | ) | |
200 | coreconfigitem('experimental', 'extendedheader.index', |
|
200 | coreconfigitem('experimental', 'extendedheader.index', | |
201 | default=None, |
|
201 | default=None, | |
202 | ) |
|
202 | ) | |
203 | coreconfigitem('experimental', 'extendedheader.similarity', |
|
203 | coreconfigitem('experimental', 'extendedheader.similarity', | |
204 | default=False, |
|
204 | default=False, | |
205 | ) |
|
205 | ) | |
206 | coreconfigitem('experimental', 'format.compression', |
|
206 | coreconfigitem('experimental', 'format.compression', | |
207 | default='zlib', |
|
207 | default='zlib', | |
208 | ) |
|
208 | ) | |
209 | coreconfigitem('experimental', 'graphshorten', |
|
209 | coreconfigitem('experimental', 'graphshorten', | |
210 | default=False, |
|
210 | default=False, | |
211 | ) |
|
211 | ) | |
212 | coreconfigitem('experimental', 'hook-track-tags', |
|
212 | coreconfigitem('experimental', 'hook-track-tags', | |
213 | default=False, |
|
213 | default=False, | |
214 | ) |
|
214 | ) | |
215 | coreconfigitem('experimental', 'httppostargs', |
|
215 | coreconfigitem('experimental', 'httppostargs', | |
216 | default=False, |
|
216 | default=False, | |
217 | ) |
|
217 | ) | |
218 | coreconfigitem('experimental', 'manifestv2', |
|
218 | coreconfigitem('experimental', 'manifestv2', | |
219 | default=False, |
|
219 | default=False, | |
220 | ) |
|
220 | ) | |
221 | coreconfigitem('experimental', 'mergedriver', |
|
221 | coreconfigitem('experimental', 'mergedriver', | |
222 | default=None, |
|
222 | default=None, | |
223 | ) |
|
223 | ) | |
224 | coreconfigitem('experimental', 'obsmarkers-exchange-debug', |
|
224 | coreconfigitem('experimental', 'obsmarkers-exchange-debug', | |
225 | default=False, |
|
225 | default=False, | |
226 | ) |
|
226 | ) | |
227 | coreconfigitem('experimental', 'rebase.multidest', |
|
227 | coreconfigitem('experimental', 'rebase.multidest', | |
228 | default=False, |
|
228 | default=False, | |
229 | ) |
|
229 | ) | |
230 | coreconfigitem('experimental', 'revertalternateinteractivemode', |
|
230 | coreconfigitem('experimental', 'revertalternateinteractivemode', | |
231 | default=True, |
|
231 | default=True, | |
232 | ) |
|
232 | ) | |
233 | coreconfigitem('experimental', 'revlogv2', |
|
233 | coreconfigitem('experimental', 'revlogv2', | |
234 | default=None, |
|
234 | default=None, | |
235 | ) |
|
235 | ) | |
236 | coreconfigitem('experimental', 'spacemovesdown', |
|
236 | coreconfigitem('experimental', 'spacemovesdown', | |
237 | default=False, |
|
237 | default=False, | |
238 | ) |
|
238 | ) | |
239 | coreconfigitem('experimental', 'treemanifest', |
|
239 | coreconfigitem('experimental', 'treemanifest', | |
240 | default=False, |
|
240 | default=False, | |
241 | ) |
|
241 | ) | |
242 | coreconfigitem('experimental', 'updatecheck', |
|
242 | coreconfigitem('experimental', 'updatecheck', | |
243 | default=None, |
|
243 | default=None, | |
244 | ) |
|
244 | ) | |
245 | coreconfigitem('format', 'aggressivemergedeltas', |
|
245 | coreconfigitem('format', 'aggressivemergedeltas', | |
246 | default=False, |
|
246 | default=False, | |
247 | ) |
|
247 | ) | |
248 | coreconfigitem('format', 'chunkcachesize', |
|
248 | coreconfigitem('format', 'chunkcachesize', | |
249 | default=None, |
|
249 | default=None, | |
250 | ) |
|
250 | ) | |
251 | coreconfigitem('format', 'dotencode', |
|
251 | coreconfigitem('format', 'dotencode', | |
252 | default=True, |
|
252 | default=True, | |
253 | ) |
|
253 | ) | |
254 | coreconfigitem('format', 'generaldelta', |
|
254 | coreconfigitem('format', 'generaldelta', | |
255 | default=False, |
|
255 | default=False, | |
256 | ) |
|
256 | ) | |
257 | coreconfigitem('format', 'manifestcachesize', |
|
257 | coreconfigitem('format', 'manifestcachesize', | |
258 | default=None, |
|
258 | default=None, | |
259 | ) |
|
259 | ) | |
260 | coreconfigitem('format', 'maxchainlen', |
|
260 | coreconfigitem('format', 'maxchainlen', | |
261 | default=None, |
|
261 | default=None, | |
262 | ) |
|
262 | ) | |
263 | coreconfigitem('format', 'obsstore-version', |
|
263 | coreconfigitem('format', 'obsstore-version', | |
264 | default=None, |
|
264 | default=None, | |
265 | ) |
|
265 | ) | |
266 | coreconfigitem('format', 'usefncache', |
|
266 | coreconfigitem('format', 'usefncache', | |
267 | default=True, |
|
267 | default=True, | |
268 | ) |
|
268 | ) | |
269 | coreconfigitem('format', 'usegeneraldelta', |
|
269 | coreconfigitem('format', 'usegeneraldelta', | |
270 | default=True, |
|
270 | default=True, | |
271 | ) |
|
271 | ) | |
272 | coreconfigitem('format', 'usestore', |
|
272 | coreconfigitem('format', 'usestore', | |
273 | default=True, |
|
273 | default=True, | |
274 | ) |
|
274 | ) | |
275 | coreconfigitem('hostsecurity', 'ciphers', |
|
275 | coreconfigitem('hostsecurity', 'ciphers', | |
276 | default=None, |
|
276 | default=None, | |
277 | ) |
|
277 | ) | |
278 | coreconfigitem('hostsecurity', 'disabletls10warning', |
|
278 | coreconfigitem('hostsecurity', 'disabletls10warning', | |
279 | default=False, |
|
279 | default=False, | |
280 | ) |
|
280 | ) | |
281 | coreconfigitem('http_proxy', 'always', |
|
281 | coreconfigitem('http_proxy', 'always', | |
282 | default=False, |
|
282 | default=False, | |
283 | ) |
|
283 | ) | |
284 | coreconfigitem('http_proxy', 'host', |
|
284 | coreconfigitem('http_proxy', 'host', | |
285 | default=None, |
|
285 | default=None, | |
286 | ) |
|
286 | ) | |
287 | coreconfigitem('http_proxy', 'no', |
|
287 | coreconfigitem('http_proxy', 'no', | |
288 | default=list, |
|
288 | default=list, | |
289 | ) |
|
289 | ) | |
290 | coreconfigitem('http_proxy', 'passwd', |
|
290 | coreconfigitem('http_proxy', 'passwd', | |
291 | default=None, |
|
291 | default=None, | |
292 | ) |
|
292 | ) | |
293 | coreconfigitem('http_proxy', 'user', |
|
293 | coreconfigitem('http_proxy', 'user', | |
294 | default=None, |
|
294 | default=None, | |
295 | ) |
|
295 | ) | |
296 | coreconfigitem('merge', 'followcopies', |
|
296 | coreconfigitem('merge', 'followcopies', | |
297 | default=True, |
|
297 | default=True, | |
298 | ) |
|
298 | ) | |
299 | coreconfigitem('pager', 'ignore', |
|
299 | coreconfigitem('pager', 'ignore', | |
300 | default=list, |
|
300 | default=list, | |
301 | ) |
|
301 | ) | |
302 | coreconfigitem('patch', 'eol', |
|
302 | coreconfigitem('patch', 'eol', | |
303 | default='strict', |
|
303 | default='strict', | |
304 | ) |
|
304 | ) | |
305 | coreconfigitem('patch', 'fuzz', |
|
305 | coreconfigitem('patch', 'fuzz', | |
306 | default=2, |
|
306 | default=2, | |
307 | ) |
|
307 | ) | |
308 | coreconfigitem('paths', 'default', |
|
308 | coreconfigitem('paths', 'default', | |
309 | default=None, |
|
309 | default=None, | |
310 | ) |
|
310 | ) | |
311 | coreconfigitem('paths', 'default-push', |
|
311 | coreconfigitem('paths', 'default-push', | |
312 | default=None, |
|
312 | default=None, | |
313 | ) |
|
313 | ) | |
314 | coreconfigitem('phases', 'checksubrepos', |
|
314 | coreconfigitem('phases', 'checksubrepos', | |
315 | default='follow', |
|
315 | default='follow', | |
316 | ) |
|
316 | ) | |
317 | coreconfigitem('phases', 'publish', |
|
317 | coreconfigitem('phases', 'publish', | |
318 | default=True, |
|
318 | default=True, | |
319 | ) |
|
319 | ) | |
320 | coreconfigitem('profiling', 'enabled', |
|
320 | coreconfigitem('profiling', 'enabled', | |
321 | default=False, |
|
321 | default=False, | |
322 | ) |
|
322 | ) | |
323 | coreconfigitem('profiling', 'format', |
|
323 | coreconfigitem('profiling', 'format', | |
324 | default='text', |
|
324 | default='text', | |
325 | ) |
|
325 | ) | |
326 | coreconfigitem('profiling', 'freq', |
|
326 | coreconfigitem('profiling', 'freq', | |
327 | default=1000, |
|
327 | default=1000, | |
328 | ) |
|
328 | ) | |
329 | coreconfigitem('profiling', 'limit', |
|
329 | coreconfigitem('profiling', 'limit', | |
330 | default=30, |
|
330 | default=30, | |
331 | ) |
|
331 | ) | |
332 | coreconfigitem('profiling', 'nested', |
|
332 | coreconfigitem('profiling', 'nested', | |
333 | default=0, |
|
333 | default=0, | |
334 | ) |
|
334 | ) | |
335 | coreconfigitem('profiling', 'sort', |
|
335 | coreconfigitem('profiling', 'sort', | |
336 | default='inlinetime', |
|
336 | default='inlinetime', | |
337 | ) |
|
337 | ) | |
338 | coreconfigitem('profiling', 'statformat', |
|
338 | coreconfigitem('profiling', 'statformat', | |
339 | default='hotpath', |
|
339 | default='hotpath', | |
340 | ) |
|
340 | ) | |
341 | coreconfigitem('progress', 'assume-tty', |
|
341 | coreconfigitem('progress', 'assume-tty', | |
342 | default=False, |
|
342 | default=False, | |
343 | ) |
|
343 | ) | |
344 | coreconfigitem('progress', 'changedelay', |
|
344 | coreconfigitem('progress', 'changedelay', | |
345 | default=1, |
|
345 | default=1, | |
346 | ) |
|
346 | ) | |
347 | coreconfigitem('progress', 'clear-complete', |
|
347 | coreconfigitem('progress', 'clear-complete', | |
348 | default=True, |
|
348 | default=True, | |
349 | ) |
|
349 | ) | |
350 | coreconfigitem('progress', 'debug', |
|
350 | coreconfigitem('progress', 'debug', | |
351 | default=False, |
|
351 | default=False, | |
352 | ) |
|
352 | ) | |
353 | coreconfigitem('progress', 'delay', |
|
353 | coreconfigitem('progress', 'delay', | |
354 | default=3, |
|
354 | default=3, | |
355 | ) |
|
355 | ) | |
356 | coreconfigitem('progress', 'disable', |
|
356 | coreconfigitem('progress', 'disable', | |
357 | default=False, |
|
357 | default=False, | |
358 | ) |
|
358 | ) | |
359 | coreconfigitem('progress', 'estimate', |
|
359 | coreconfigitem('progress', 'estimate', | |
360 | default=2, |
|
360 | default=2, | |
361 | ) |
|
361 | ) | |
362 | coreconfigitem('progress', 'refresh', |
|
362 | coreconfigitem('progress', 'refresh', | |
363 | default=0.1, |
|
363 | default=0.1, | |
364 | ) |
|
364 | ) | |
365 | coreconfigitem('progress', 'width', |
|
365 | coreconfigitem('progress', 'width', | |
366 | default=dynamicdefault, |
|
366 | default=dynamicdefault, | |
367 | ) |
|
367 | ) | |
368 | coreconfigitem('push', 'pushvars.server', |
|
368 | coreconfigitem('push', 'pushvars.server', | |
369 | default=False, |
|
369 | default=False, | |
370 | ) |
|
370 | ) | |
371 | coreconfigitem('server', 'bundle1', |
|
371 | coreconfigitem('server', 'bundle1', | |
372 | default=True, |
|
372 | default=True, | |
373 | ) |
|
373 | ) | |
374 | coreconfigitem('server', 'bundle1gd', |
|
374 | coreconfigitem('server', 'bundle1gd', | |
375 | default=None, |
|
375 | default=None, | |
376 | ) |
|
376 | ) | |
377 | coreconfigitem('server', 'compressionengines', |
|
377 | coreconfigitem('server', 'compressionengines', | |
378 | default=list, |
|
378 | default=list, | |
379 | ) |
|
379 | ) | |
380 | coreconfigitem('server', 'concurrent-push-mode', |
|
380 | coreconfigitem('server', 'concurrent-push-mode', | |
381 | default='strict', |
|
381 | default='strict', | |
382 | ) |
|
382 | ) | |
383 | coreconfigitem('server', 'disablefullbundle', |
|
383 | coreconfigitem('server', 'disablefullbundle', | |
384 | default=False, |
|
384 | default=False, | |
385 | ) |
|
385 | ) | |
386 | coreconfigitem('server', 'maxhttpheaderlen', |
|
386 | coreconfigitem('server', 'maxhttpheaderlen', | |
387 | default=1024, |
|
387 | default=1024, | |
388 | ) |
|
388 | ) | |
389 | coreconfigitem('server', 'preferuncompressed', |
|
389 | coreconfigitem('server', 'preferuncompressed', | |
390 | default=False, |
|
390 | default=False, | |
391 | ) |
|
391 | ) | |
392 | coreconfigitem('server', 'uncompressed', |
|
392 | coreconfigitem('server', 'uncompressed', | |
393 | default=True, |
|
393 | default=True, | |
394 | ) |
|
394 | ) | |
395 | coreconfigitem('server', 'uncompressedallowsecret', |
|
395 | coreconfigitem('server', 'uncompressedallowsecret', | |
396 | default=False, |
|
396 | default=False, | |
397 | ) |
|
397 | ) | |
398 | coreconfigitem('server', 'validate', |
|
398 | coreconfigitem('server', 'validate', | |
399 | default=False, |
|
399 | default=False, | |
400 | ) |
|
400 | ) | |
401 | coreconfigitem('server', 'zliblevel', |
|
401 | coreconfigitem('server', 'zliblevel', | |
402 | default=-1, |
|
402 | default=-1, | |
403 | ) |
|
403 | ) | |
404 | coreconfigitem('smtp', 'host', |
|
404 | coreconfigitem('smtp', 'host', | |
405 | default=None, |
|
405 | default=None, | |
406 | ) |
|
406 | ) | |
407 | coreconfigitem('smtp', 'local_hostname', |
|
407 | coreconfigitem('smtp', 'local_hostname', | |
408 | default=None, |
|
408 | default=None, | |
409 | ) |
|
409 | ) | |
410 | coreconfigitem('smtp', 'password', |
|
410 | coreconfigitem('smtp', 'password', | |
411 | default=None, |
|
411 | default=None, | |
412 | ) |
|
412 | ) | |
413 | coreconfigitem('smtp', 'tls', |
|
413 | coreconfigitem('smtp', 'tls', | |
414 | default='none', |
|
414 | default='none', | |
415 | ) |
|
415 | ) | |
416 | coreconfigitem('smtp', 'username', |
|
416 | coreconfigitem('smtp', 'username', | |
417 | default=None, |
|
417 | default=None, | |
418 | ) |
|
418 | ) | |
419 | coreconfigitem('sparse', 'missingwarning', |
|
419 | coreconfigitem('sparse', 'missingwarning', | |
420 | default=True, |
|
420 | default=True, | |
421 | ) |
|
421 | ) | |
422 | coreconfigitem('trusted', 'groups', |
|
422 | coreconfigitem('trusted', 'groups', | |
423 | default=list, |
|
423 | default=list, | |
424 | ) |
|
424 | ) | |
425 | coreconfigitem('trusted', 'users', |
|
425 | coreconfigitem('trusted', 'users', | |
426 | default=list, |
|
426 | default=list, | |
427 | ) |
|
427 | ) | |
428 | coreconfigitem('ui', '_usedassubrepo', |
|
428 | coreconfigitem('ui', '_usedassubrepo', | |
429 | default=False, |
|
429 | default=False, | |
430 | ) |
|
430 | ) | |
431 | coreconfigitem('ui', 'allowemptycommit', |
|
431 | coreconfigitem('ui', 'allowemptycommit', | |
432 | default=False, |
|
432 | default=False, | |
433 | ) |
|
433 | ) | |
434 | coreconfigitem('ui', 'archivemeta', |
|
434 | coreconfigitem('ui', 'archivemeta', | |
435 | default=True, |
|
435 | default=True, | |
436 | ) |
|
436 | ) | |
437 | coreconfigitem('ui', 'askusername', |
|
437 | coreconfigitem('ui', 'askusername', | |
438 | default=False, |
|
438 | default=False, | |
439 | ) |
|
439 | ) | |
440 | coreconfigitem('ui', 'clonebundlefallback', |
|
440 | coreconfigitem('ui', 'clonebundlefallback', | |
441 | default=False, |
|
441 | default=False, | |
442 | ) |
|
442 | ) | |
443 | coreconfigitem('ui', 'clonebundleprefers', |
|
443 | coreconfigitem('ui', 'clonebundleprefers', | |
444 | default=list, |
|
444 | default=list, | |
445 | ) |
|
445 | ) | |
446 | coreconfigitem('ui', 'clonebundles', |
|
446 | coreconfigitem('ui', 'clonebundles', | |
447 | default=True, |
|
447 | default=True, | |
448 | ) |
|
448 | ) | |
449 | coreconfigitem('ui', 'color', |
|
449 | coreconfigitem('ui', 'color', | |
450 | default='auto', |
|
450 | default='auto', | |
451 | ) |
|
451 | ) | |
452 | coreconfigitem('ui', 'commitsubrepos', |
|
452 | coreconfigitem('ui', 'commitsubrepos', | |
453 | default=False, |
|
453 | default=False, | |
454 | ) |
|
454 | ) | |
455 | coreconfigitem('ui', 'debug', |
|
455 | coreconfigitem('ui', 'debug', | |
456 | default=False, |
|
456 | default=False, | |
457 | ) |
|
457 | ) | |
458 | coreconfigitem('ui', 'debugger', |
|
458 | coreconfigitem('ui', 'debugger', | |
459 | default=None, |
|
459 | default=None, | |
460 | ) |
|
460 | ) | |
461 | coreconfigitem('ui', 'fallbackencoding', |
|
461 | coreconfigitem('ui', 'fallbackencoding', | |
462 | default=None, |
|
462 | default=None, | |
463 | ) |
|
463 | ) | |
464 | coreconfigitem('ui', 'forcecwd', |
|
464 | coreconfigitem('ui', 'forcecwd', | |
465 | default=None, |
|
465 | default=None, | |
466 | ) |
|
466 | ) | |
467 | coreconfigitem('ui', 'forcemerge', |
|
467 | coreconfigitem('ui', 'forcemerge', | |
468 | default=None, |
|
468 | default=None, | |
469 | ) |
|
469 | ) | |
470 | coreconfigitem('ui', 'formatdebug', |
|
470 | coreconfigitem('ui', 'formatdebug', | |
471 | default=False, |
|
471 | default=False, | |
472 | ) |
|
472 | ) | |
473 | coreconfigitem('ui', 'formatjson', |
|
473 | coreconfigitem('ui', 'formatjson', | |
474 | default=False, |
|
474 | default=False, | |
475 | ) |
|
475 | ) | |
476 | coreconfigitem('ui', 'formatted', |
|
476 | coreconfigitem('ui', 'formatted', | |
477 | default=None, |
|
477 | default=None, | |
478 | ) |
|
478 | ) | |
479 | coreconfigitem('ui', 'graphnodetemplate', |
|
479 | coreconfigitem('ui', 'graphnodetemplate', | |
480 | default=None, |
|
480 | default=None, | |
481 | ) |
|
481 | ) | |
482 | coreconfigitem('ui', 'http2debuglevel', |
|
482 | coreconfigitem('ui', 'http2debuglevel', | |
483 | default=None, |
|
483 | default=None, | |
484 | ) |
|
484 | ) | |
485 | coreconfigitem('ui', 'interactive', |
|
485 | coreconfigitem('ui', 'interactive', | |
486 | default=None, |
|
486 | default=None, | |
487 | ) |
|
487 | ) | |
488 | coreconfigitem('ui', 'interface', |
|
488 | coreconfigitem('ui', 'interface', | |
489 | default=None, |
|
489 | default=None, | |
490 | ) |
|
490 | ) | |
491 | coreconfigitem('ui', 'logblockedtimes', |
|
491 | coreconfigitem('ui', 'logblockedtimes', | |
492 | default=False, |
|
492 | default=False, | |
493 | ) |
|
493 | ) | |
494 | coreconfigitem('ui', 'logtemplate', |
|
494 | coreconfigitem('ui', 'logtemplate', | |
495 | default=None, |
|
495 | default=None, | |
496 | ) |
|
496 | ) | |
497 | coreconfigitem('ui', 'merge', |
|
497 | coreconfigitem('ui', 'merge', | |
498 | default=None, |
|
498 | default=None, | |
499 | ) |
|
499 | ) | |
500 | coreconfigitem('ui', 'mergemarkers', |
|
500 | coreconfigitem('ui', 'mergemarkers', | |
501 | default='basic', |
|
501 | default='basic', | |
502 | ) |
|
502 | ) | |
503 | coreconfigitem('ui', 'mergemarkertemplate', |
|
503 | coreconfigitem('ui', 'mergemarkertemplate', | |
504 | default=('{node|short} ' |
|
504 | default=('{node|short} ' | |
505 | '{ifeq(tags, "tip", "", ' |
|
505 | '{ifeq(tags, "tip", "", ' | |
506 | 'ifeq(tags, "", "", "{tags} "))}' |
|
506 | 'ifeq(tags, "", "", "{tags} "))}' | |
507 | '{if(bookmarks, "{bookmarks} ")}' |
|
507 | '{if(bookmarks, "{bookmarks} ")}' | |
508 | '{ifeq(branch, "default", "", "{branch} ")}' |
|
508 | '{ifeq(branch, "default", "", "{branch} ")}' | |
509 | '- {author|user}: {desc|firstline}') |
|
509 | '- {author|user}: {desc|firstline}') | |
510 | ) |
|
510 | ) | |
511 | coreconfigitem('ui', 'nontty', |
|
511 | coreconfigitem('ui', 'nontty', | |
512 | default=False, |
|
512 | default=False, | |
513 | ) |
|
513 | ) | |
514 | coreconfigitem('ui', 'origbackuppath', |
|
514 | coreconfigitem('ui', 'origbackuppath', | |
515 | default=None, |
|
515 | default=None, | |
516 | ) |
|
516 | ) | |
517 | coreconfigitem('ui', 'paginate', |
|
517 | coreconfigitem('ui', 'paginate', | |
518 | default=True, |
|
518 | default=True, | |
519 | ) |
|
519 | ) | |
520 | coreconfigitem('ui', 'patch', |
|
520 | coreconfigitem('ui', 'patch', | |
521 | default=None, |
|
521 | default=None, | |
522 | ) |
|
522 | ) | |
523 | coreconfigitem('ui', 'portablefilenames', |
|
523 | coreconfigitem('ui', 'portablefilenames', | |
524 | default='warn', |
|
524 | default='warn', | |
525 | ) |
|
525 | ) | |
526 | coreconfigitem('ui', 'promptecho', |
|
526 | coreconfigitem('ui', 'promptecho', | |
527 | default=False, |
|
527 | default=False, | |
528 | ) |
|
528 | ) | |
529 | coreconfigitem('ui', 'quiet', |
|
529 | coreconfigitem('ui', 'quiet', | |
530 | default=False, |
|
530 | default=False, | |
531 | ) |
|
531 | ) | |
532 | coreconfigitem('ui', 'quietbookmarkmove', |
|
532 | coreconfigitem('ui', 'quietbookmarkmove', | |
533 | default=False, |
|
533 | default=False, | |
534 | ) |
|
534 | ) | |
535 | coreconfigitem('ui', 'remotecmd', |
|
535 | coreconfigitem('ui', 'remotecmd', | |
536 | default='hg', |
|
536 | default='hg', | |
537 | ) |
|
537 | ) | |
538 | coreconfigitem('ui', 'report_untrusted', |
|
538 | coreconfigitem('ui', 'report_untrusted', | |
539 | default=True, |
|
539 | default=True, | |
540 | ) |
|
540 | ) | |
541 | coreconfigitem('ui', 'rollback', |
|
541 | coreconfigitem('ui', 'rollback', | |
542 | default=True, |
|
542 | default=True, | |
543 | ) |
|
543 | ) | |
544 | coreconfigitem('ui', 'slash', |
|
544 | coreconfigitem('ui', 'slash', | |
545 | default=False, |
|
545 | default=False, | |
546 | ) |
|
546 | ) | |
547 | coreconfigitem('ui', 'ssh', |
|
547 | coreconfigitem('ui', 'ssh', | |
548 | default='ssh', |
|
548 | default='ssh', | |
549 | ) |
|
549 | ) | |
550 | coreconfigitem('ui', 'statuscopies', |
|
550 | coreconfigitem('ui', 'statuscopies', | |
551 | default=False, |
|
551 | default=False, | |
552 | ) |
|
552 | ) | |
553 | coreconfigitem('ui', 'strict', |
|
553 | coreconfigitem('ui', 'strict', | |
554 | default=False, |
|
554 | default=False, | |
555 | ) |
|
555 | ) | |
556 | coreconfigitem('ui', 'style', |
|
556 | coreconfigitem('ui', 'style', | |
557 | default='', |
|
557 | default='', | |
558 | ) |
|
558 | ) | |
559 | coreconfigitem('ui', 'supportcontact', |
|
559 | coreconfigitem('ui', 'supportcontact', | |
560 | default=None, |
|
560 | default=None, | |
561 | ) |
|
561 | ) | |
562 | coreconfigitem('ui', 'textwidth', |
|
562 | coreconfigitem('ui', 'textwidth', | |
563 | default=78, |
|
563 | default=78, | |
564 | ) |
|
564 | ) | |
565 | coreconfigitem('ui', 'timeout', |
|
565 | coreconfigitem('ui', 'timeout', | |
566 | default='600', |
|
566 | default='600', | |
567 | ) |
|
567 | ) | |
568 | coreconfigitem('ui', 'traceback', |
|
568 | coreconfigitem('ui', 'traceback', | |
569 | default=False, |
|
569 | default=False, | |
570 | ) |
|
570 | ) | |
571 | coreconfigitem('ui', 'tweakdefaults', |
|
571 | coreconfigitem('ui', 'tweakdefaults', | |
572 | default=False, |
|
572 | default=False, | |
573 | ) |
|
573 | ) | |
574 | coreconfigitem('ui', 'usehttp2', |
|
574 | coreconfigitem('ui', 'usehttp2', | |
575 | default=False, |
|
575 | default=False, | |
576 | ) |
|
576 | ) | |
577 | coreconfigitem('ui', 'username', |
|
577 | coreconfigitem('ui', 'username', | |
578 | alias=[('ui', 'user')] |
|
578 | alias=[('ui', 'user')] | |
579 | ) |
|
579 | ) | |
580 | coreconfigitem('ui', 'verbose', |
|
580 | coreconfigitem('ui', 'verbose', | |
581 | default=False, |
|
581 | default=False, | |
582 | ) |
|
582 | ) | |
583 | coreconfigitem('verify', 'skipflags', |
|
583 | coreconfigitem('verify', 'skipflags', | |
584 | default=None, |
|
584 | default=None, | |
585 | ) |
|
585 | ) | |
586 | coreconfigitem('web', 'accesslog', |
|
586 | coreconfigitem('web', 'accesslog', | |
587 | default='-', |
|
587 | default='-', | |
588 | ) |
|
588 | ) | |
589 | coreconfigitem('web', 'address', |
|
589 | coreconfigitem('web', 'address', | |
590 | default='', |
|
590 | default='', | |
591 | ) |
|
591 | ) | |
592 | coreconfigitem('web', 'allow_archive', |
|
592 | coreconfigitem('web', 'allow_archive', | |
593 | default=list, |
|
593 | default=list, | |
594 | ) |
|
594 | ) | |
595 | coreconfigitem('web', 'allow_read', |
|
595 | coreconfigitem('web', 'allow_read', | |
596 | default=list, |
|
596 | default=list, | |
597 | ) |
|
597 | ) | |
598 | coreconfigitem('web', 'baseurl', |
|
598 | coreconfigitem('web', 'baseurl', | |
599 | default=None, |
|
599 | default=None, | |
600 | ) |
|
600 | ) | |
601 | coreconfigitem('web', 'cacerts', |
|
601 | coreconfigitem('web', 'cacerts', | |
602 | default=None, |
|
602 | default=None, | |
603 | ) |
|
603 | ) | |
604 | coreconfigitem('web', 'certificate', |
|
604 | coreconfigitem('web', 'certificate', | |
605 | default=None, |
|
605 | default=None, | |
606 | ) |
|
606 | ) | |
607 | coreconfigitem('web', 'collapse', |
|
607 | coreconfigitem('web', 'collapse', | |
608 | default=False, |
|
608 | default=False, | |
609 | ) |
|
609 | ) | |
610 | coreconfigitem('web', 'csp', |
|
610 | coreconfigitem('web', 'csp', | |
611 | default=None, |
|
611 | default=None, | |
612 | ) |
|
612 | ) | |
613 | coreconfigitem('web', 'deny_read', |
|
613 | coreconfigitem('web', 'deny_read', | |
614 | default=list, |
|
614 | default=list, | |
615 | ) |
|
615 | ) | |
616 | coreconfigitem('web', 'descend', |
|
616 | coreconfigitem('web', 'descend', | |
617 | default=True, |
|
617 | default=True, | |
618 | ) |
|
618 | ) | |
619 | coreconfigitem('web', 'description', |
|
619 | coreconfigitem('web', 'description', | |
620 | default="", |
|
620 | default="", | |
621 | ) |
|
621 | ) | |
622 | coreconfigitem('web', 'encoding', |
|
622 | coreconfigitem('web', 'encoding', | |
623 | default=lambda: encoding.encoding, |
|
623 | default=lambda: encoding.encoding, | |
624 | ) |
|
624 | ) | |
625 | coreconfigitem('web', 'errorlog', |
|
625 | coreconfigitem('web', 'errorlog', | |
626 | default='-', |
|
626 | default='-', | |
627 | ) |
|
627 | ) | |
|
628 | coreconfigitem('web', 'ipv6', | |||
|
629 | default=False, | |||
|
630 | ) | |||
628 | coreconfigitem('worker', 'backgroundclose', |
|
631 | coreconfigitem('worker', 'backgroundclose', | |
629 | default=dynamicdefault, |
|
632 | default=dynamicdefault, | |
630 | ) |
|
633 | ) | |
631 | # Windows defaults to a limit of 512 open files. A buffer of 128 |
|
634 | # Windows defaults to a limit of 512 open files. A buffer of 128 | |
632 | # should give us enough headway. |
|
635 | # should give us enough headway. | |
633 | coreconfigitem('worker', 'backgroundclosemaxqueue', |
|
636 | coreconfigitem('worker', 'backgroundclosemaxqueue', | |
634 | default=384, |
|
637 | default=384, | |
635 | ) |
|
638 | ) | |
636 | coreconfigitem('worker', 'backgroundcloseminfilecount', |
|
639 | coreconfigitem('worker', 'backgroundcloseminfilecount', | |
637 | default=2048, |
|
640 | default=2048, | |
638 | ) |
|
641 | ) | |
639 | coreconfigitem('worker', 'backgroundclosethreadcount', |
|
642 | coreconfigitem('worker', 'backgroundclosethreadcount', | |
640 | default=4, |
|
643 | default=4, | |
641 | ) |
|
644 | ) | |
642 | coreconfigitem('worker', 'numcpus', |
|
645 | coreconfigitem('worker', 'numcpus', | |
643 | default=None, |
|
646 | default=None, | |
644 | ) |
|
647 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now