Show More
@@ -1,695 +1,698 | |||||
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('debug', 'dirstate.delaywrite', |
|
110 | coreconfigitem('debug', 'dirstate.delaywrite', | |
111 | default=0, |
|
111 | default=0, | |
112 | ) |
|
112 | ) | |
113 | coreconfigitem('devel', 'all-warnings', |
|
113 | coreconfigitem('devel', 'all-warnings', | |
114 | default=False, |
|
114 | default=False, | |
115 | ) |
|
115 | ) | |
116 | coreconfigitem('devel', 'bundle2.debug', |
|
116 | coreconfigitem('devel', 'bundle2.debug', | |
117 | default=False, |
|
117 | default=False, | |
118 | ) |
|
118 | ) | |
119 | coreconfigitem('devel', 'check-locks', |
|
119 | coreconfigitem('devel', 'check-locks', | |
120 | default=False, |
|
120 | default=False, | |
121 | ) |
|
121 | ) | |
122 | coreconfigitem('devel', 'check-relroot', |
|
122 | coreconfigitem('devel', 'check-relroot', | |
123 | default=False, |
|
123 | default=False, | |
124 | ) |
|
124 | ) | |
125 | coreconfigitem('devel', 'default-date', |
|
125 | coreconfigitem('devel', 'default-date', | |
126 | default=None, |
|
126 | default=None, | |
127 | ) |
|
127 | ) | |
128 | coreconfigitem('devel', 'deprec-warn', |
|
128 | coreconfigitem('devel', 'deprec-warn', | |
129 | default=False, |
|
129 | default=False, | |
130 | ) |
|
130 | ) | |
131 | coreconfigitem('devel', 'disableloaddefaultcerts', |
|
131 | coreconfigitem('devel', 'disableloaddefaultcerts', | |
132 | default=False, |
|
132 | default=False, | |
133 | ) |
|
133 | ) | |
134 | coreconfigitem('devel', 'legacy.exchange', |
|
134 | coreconfigitem('devel', 'legacy.exchange', | |
135 | default=list, |
|
135 | default=list, | |
136 | ) |
|
136 | ) | |
137 | coreconfigitem('devel', 'servercafile', |
|
137 | coreconfigitem('devel', 'servercafile', | |
138 | default='', |
|
138 | default='', | |
139 | ) |
|
139 | ) | |
140 | coreconfigitem('devel', 'serverexactprotocol', |
|
140 | coreconfigitem('devel', 'serverexactprotocol', | |
141 | default='', |
|
141 | default='', | |
142 | ) |
|
142 | ) | |
143 | coreconfigitem('devel', 'serverrequirecert', |
|
143 | coreconfigitem('devel', 'serverrequirecert', | |
144 | default=False, |
|
144 | default=False, | |
145 | ) |
|
145 | ) | |
146 | coreconfigitem('devel', 'strip-obsmarkers', |
|
146 | coreconfigitem('devel', 'strip-obsmarkers', | |
147 | default=True, |
|
147 | default=True, | |
148 | ) |
|
148 | ) | |
149 | coreconfigitem('email', 'charsets', |
|
149 | coreconfigitem('email', 'charsets', | |
150 | default=list, |
|
150 | default=list, | |
151 | ) |
|
151 | ) | |
152 | coreconfigitem('email', 'from', |
|
152 | coreconfigitem('email', 'from', | |
153 | default=None, |
|
153 | default=None, | |
154 | ) |
|
154 | ) | |
155 | coreconfigitem('email', 'method', |
|
155 | coreconfigitem('email', 'method', | |
156 | default='smtp', |
|
156 | default='smtp', | |
157 | ) |
|
157 | ) | |
|
158 | coreconfigitem('experimental', 'allowdivergence', | |||
|
159 | default=False, | |||
|
160 | ) | |||
158 | coreconfigitem('experimental', 'bundle-phases', |
|
161 | coreconfigitem('experimental', 'bundle-phases', | |
159 | default=False, |
|
162 | default=False, | |
160 | ) |
|
163 | ) | |
161 | coreconfigitem('experimental', 'bundle2-advertise', |
|
164 | coreconfigitem('experimental', 'bundle2-advertise', | |
162 | default=True, |
|
165 | default=True, | |
163 | ) |
|
166 | ) | |
164 | coreconfigitem('experimental', 'bundle2-output-capture', |
|
167 | coreconfigitem('experimental', 'bundle2-output-capture', | |
165 | default=False, |
|
168 | default=False, | |
166 | ) |
|
169 | ) | |
167 | coreconfigitem('experimental', 'bundle2.pushback', |
|
170 | coreconfigitem('experimental', 'bundle2.pushback', | |
168 | default=False, |
|
171 | default=False, | |
169 | ) |
|
172 | ) | |
170 | coreconfigitem('experimental', 'bundle2lazylocking', |
|
173 | coreconfigitem('experimental', 'bundle2lazylocking', | |
171 | default=False, |
|
174 | default=False, | |
172 | ) |
|
175 | ) | |
173 | coreconfigitem('experimental', 'bundlecomplevel', |
|
176 | coreconfigitem('experimental', 'bundlecomplevel', | |
174 | default=None, |
|
177 | default=None, | |
175 | ) |
|
178 | ) | |
176 | coreconfigitem('experimental', 'changegroup3', |
|
179 | coreconfigitem('experimental', 'changegroup3', | |
177 | default=False, |
|
180 | default=False, | |
178 | ) |
|
181 | ) | |
179 | coreconfigitem('experimental', 'clientcompressionengines', |
|
182 | coreconfigitem('experimental', 'clientcompressionengines', | |
180 | default=list, |
|
183 | default=list, | |
181 | ) |
|
184 | ) | |
182 | coreconfigitem('experimental', 'copytrace', |
|
185 | coreconfigitem('experimental', 'copytrace', | |
183 | default='on', |
|
186 | default='on', | |
184 | ) |
|
187 | ) | |
185 | coreconfigitem('experimental', 'copytrace.sourcecommitlimit', |
|
188 | coreconfigitem('experimental', 'copytrace.sourcecommitlimit', | |
186 | default=100, |
|
189 | default=100, | |
187 | ) |
|
190 | ) | |
188 | coreconfigitem('experimental', 'crecordtest', |
|
191 | coreconfigitem('experimental', 'crecordtest', | |
189 | default=None, |
|
192 | default=None, | |
190 | ) |
|
193 | ) | |
191 | coreconfigitem('experimental', 'editortmpinhg', |
|
194 | coreconfigitem('experimental', 'editortmpinhg', | |
192 | default=False, |
|
195 | default=False, | |
193 | ) |
|
196 | ) | |
194 | coreconfigitem('experimental', 'stabilization', |
|
197 | coreconfigitem('experimental', 'stabilization', | |
195 | default=list, |
|
198 | default=list, | |
196 | alias=[('experimental', 'evolution')], |
|
199 | alias=[('experimental', 'evolution')], | |
197 | ) |
|
200 | ) | |
198 | coreconfigitem('experimental', 'stabilization.bundle-obsmarker', |
|
201 | coreconfigitem('experimental', 'stabilization.bundle-obsmarker', | |
199 | default=False, |
|
202 | default=False, | |
200 | alias=[('experimental', 'evolution.bundle-obsmarker')], |
|
203 | alias=[('experimental', 'evolution.bundle-obsmarker')], | |
201 | ) |
|
204 | ) | |
202 | coreconfigitem('experimental', 'stabilization.track-operation', |
|
205 | coreconfigitem('experimental', 'stabilization.track-operation', | |
203 | default=True, |
|
206 | default=True, | |
204 | alias=[('experimental', 'evolution.track-operation')] |
|
207 | alias=[('experimental', 'evolution.track-operation')] | |
205 | ) |
|
208 | ) | |
206 | coreconfigitem('experimental', 'exportableenviron', |
|
209 | coreconfigitem('experimental', 'exportableenviron', | |
207 | default=list, |
|
210 | default=list, | |
208 | ) |
|
211 | ) | |
209 | coreconfigitem('experimental', 'extendedheader.index', |
|
212 | coreconfigitem('experimental', 'extendedheader.index', | |
210 | default=None, |
|
213 | default=None, | |
211 | ) |
|
214 | ) | |
212 | coreconfigitem('experimental', 'extendedheader.similarity', |
|
215 | coreconfigitem('experimental', 'extendedheader.similarity', | |
213 | default=False, |
|
216 | default=False, | |
214 | ) |
|
217 | ) | |
215 | coreconfigitem('experimental', 'format.compression', |
|
218 | coreconfigitem('experimental', 'format.compression', | |
216 | default='zlib', |
|
219 | default='zlib', | |
217 | ) |
|
220 | ) | |
218 | coreconfigitem('experimental', 'graphshorten', |
|
221 | coreconfigitem('experimental', 'graphshorten', | |
219 | default=False, |
|
222 | default=False, | |
220 | ) |
|
223 | ) | |
221 | coreconfigitem('experimental', 'hook-track-tags', |
|
224 | coreconfigitem('experimental', 'hook-track-tags', | |
222 | default=False, |
|
225 | default=False, | |
223 | ) |
|
226 | ) | |
224 | coreconfigitem('experimental', 'httppostargs', |
|
227 | coreconfigitem('experimental', 'httppostargs', | |
225 | default=False, |
|
228 | default=False, | |
226 | ) |
|
229 | ) | |
227 | coreconfigitem('experimental', 'manifestv2', |
|
230 | coreconfigitem('experimental', 'manifestv2', | |
228 | default=False, |
|
231 | default=False, | |
229 | ) |
|
232 | ) | |
230 | coreconfigitem('experimental', 'mergedriver', |
|
233 | coreconfigitem('experimental', 'mergedriver', | |
231 | default=None, |
|
234 | default=None, | |
232 | ) |
|
235 | ) | |
233 | coreconfigitem('experimental', 'obsmarkers-exchange-debug', |
|
236 | coreconfigitem('experimental', 'obsmarkers-exchange-debug', | |
234 | default=False, |
|
237 | default=False, | |
235 | ) |
|
238 | ) | |
236 | coreconfigitem('experimental', 'rebase.multidest', |
|
239 | coreconfigitem('experimental', 'rebase.multidest', | |
237 | default=False, |
|
240 | default=False, | |
238 | ) |
|
241 | ) | |
239 | coreconfigitem('experimental', 'revertalternateinteractivemode', |
|
242 | coreconfigitem('experimental', 'revertalternateinteractivemode', | |
240 | default=True, |
|
243 | default=True, | |
241 | ) |
|
244 | ) | |
242 | coreconfigitem('experimental', 'revlogv2', |
|
245 | coreconfigitem('experimental', 'revlogv2', | |
243 | default=None, |
|
246 | default=None, | |
244 | ) |
|
247 | ) | |
245 | coreconfigitem('experimental', 'spacemovesdown', |
|
248 | coreconfigitem('experimental', 'spacemovesdown', | |
246 | default=False, |
|
249 | default=False, | |
247 | ) |
|
250 | ) | |
248 | coreconfigitem('experimental', 'treemanifest', |
|
251 | coreconfigitem('experimental', 'treemanifest', | |
249 | default=False, |
|
252 | default=False, | |
250 | ) |
|
253 | ) | |
251 | coreconfigitem('experimental', 'updatecheck', |
|
254 | coreconfigitem('experimental', 'updatecheck', | |
252 | default=None, |
|
255 | default=None, | |
253 | ) |
|
256 | ) | |
254 | coreconfigitem('format', 'aggressivemergedeltas', |
|
257 | coreconfigitem('format', 'aggressivemergedeltas', | |
255 | default=False, |
|
258 | default=False, | |
256 | ) |
|
259 | ) | |
257 | coreconfigitem('format', 'chunkcachesize', |
|
260 | coreconfigitem('format', 'chunkcachesize', | |
258 | default=None, |
|
261 | default=None, | |
259 | ) |
|
262 | ) | |
260 | coreconfigitem('format', 'dotencode', |
|
263 | coreconfigitem('format', 'dotencode', | |
261 | default=True, |
|
264 | default=True, | |
262 | ) |
|
265 | ) | |
263 | coreconfigitem('format', 'generaldelta', |
|
266 | coreconfigitem('format', 'generaldelta', | |
264 | default=False, |
|
267 | default=False, | |
265 | ) |
|
268 | ) | |
266 | coreconfigitem('format', 'manifestcachesize', |
|
269 | coreconfigitem('format', 'manifestcachesize', | |
267 | default=None, |
|
270 | default=None, | |
268 | ) |
|
271 | ) | |
269 | coreconfigitem('format', 'maxchainlen', |
|
272 | coreconfigitem('format', 'maxchainlen', | |
270 | default=None, |
|
273 | default=None, | |
271 | ) |
|
274 | ) | |
272 | coreconfigitem('format', 'obsstore-version', |
|
275 | coreconfigitem('format', 'obsstore-version', | |
273 | default=None, |
|
276 | default=None, | |
274 | ) |
|
277 | ) | |
275 | coreconfigitem('format', 'usefncache', |
|
278 | coreconfigitem('format', 'usefncache', | |
276 | default=True, |
|
279 | default=True, | |
277 | ) |
|
280 | ) | |
278 | coreconfigitem('format', 'usegeneraldelta', |
|
281 | coreconfigitem('format', 'usegeneraldelta', | |
279 | default=True, |
|
282 | default=True, | |
280 | ) |
|
283 | ) | |
281 | coreconfigitem('format', 'usestore', |
|
284 | coreconfigitem('format', 'usestore', | |
282 | default=True, |
|
285 | default=True, | |
283 | ) |
|
286 | ) | |
284 | coreconfigitem('hostsecurity', 'ciphers', |
|
287 | coreconfigitem('hostsecurity', 'ciphers', | |
285 | default=None, |
|
288 | default=None, | |
286 | ) |
|
289 | ) | |
287 | coreconfigitem('hostsecurity', 'disabletls10warning', |
|
290 | coreconfigitem('hostsecurity', 'disabletls10warning', | |
288 | default=False, |
|
291 | default=False, | |
289 | ) |
|
292 | ) | |
290 | coreconfigitem('http_proxy', 'always', |
|
293 | coreconfigitem('http_proxy', 'always', | |
291 | default=False, |
|
294 | default=False, | |
292 | ) |
|
295 | ) | |
293 | coreconfigitem('http_proxy', 'host', |
|
296 | coreconfigitem('http_proxy', 'host', | |
294 | default=None, |
|
297 | default=None, | |
295 | ) |
|
298 | ) | |
296 | coreconfigitem('http_proxy', 'no', |
|
299 | coreconfigitem('http_proxy', 'no', | |
297 | default=list, |
|
300 | default=list, | |
298 | ) |
|
301 | ) | |
299 | coreconfigitem('http_proxy', 'passwd', |
|
302 | coreconfigitem('http_proxy', 'passwd', | |
300 | default=None, |
|
303 | default=None, | |
301 | ) |
|
304 | ) | |
302 | coreconfigitem('http_proxy', 'user', |
|
305 | coreconfigitem('http_proxy', 'user', | |
303 | default=None, |
|
306 | default=None, | |
304 | ) |
|
307 | ) | |
305 | coreconfigitem('merge', 'followcopies', |
|
308 | coreconfigitem('merge', 'followcopies', | |
306 | default=True, |
|
309 | default=True, | |
307 | ) |
|
310 | ) | |
308 | coreconfigitem('merge', 'preferancestor', |
|
311 | coreconfigitem('merge', 'preferancestor', | |
309 | default=lambda: ['*'], |
|
312 | default=lambda: ['*'], | |
310 | ) |
|
313 | ) | |
311 | coreconfigitem('pager', 'ignore', |
|
314 | coreconfigitem('pager', 'ignore', | |
312 | default=list, |
|
315 | default=list, | |
313 | ) |
|
316 | ) | |
314 | coreconfigitem('patch', 'eol', |
|
317 | coreconfigitem('patch', 'eol', | |
315 | default='strict', |
|
318 | default='strict', | |
316 | ) |
|
319 | ) | |
317 | coreconfigitem('patch', 'fuzz', |
|
320 | coreconfigitem('patch', 'fuzz', | |
318 | default=2, |
|
321 | default=2, | |
319 | ) |
|
322 | ) | |
320 | coreconfigitem('paths', 'default', |
|
323 | coreconfigitem('paths', 'default', | |
321 | default=None, |
|
324 | default=None, | |
322 | ) |
|
325 | ) | |
323 | coreconfigitem('paths', 'default-push', |
|
326 | coreconfigitem('paths', 'default-push', | |
324 | default=None, |
|
327 | default=None, | |
325 | ) |
|
328 | ) | |
326 | coreconfigitem('phases', 'checksubrepos', |
|
329 | coreconfigitem('phases', 'checksubrepos', | |
327 | default='follow', |
|
330 | default='follow', | |
328 | ) |
|
331 | ) | |
329 | coreconfigitem('phases', 'new-commit', |
|
332 | coreconfigitem('phases', 'new-commit', | |
330 | default=dynamicdefault, |
|
333 | default=dynamicdefault, | |
331 | ) |
|
334 | ) | |
332 | coreconfigitem('phases', 'publish', |
|
335 | coreconfigitem('phases', 'publish', | |
333 | default=True, |
|
336 | default=True, | |
334 | ) |
|
337 | ) | |
335 | coreconfigitem('profiling', 'enabled', |
|
338 | coreconfigitem('profiling', 'enabled', | |
336 | default=False, |
|
339 | default=False, | |
337 | ) |
|
340 | ) | |
338 | coreconfigitem('profiling', 'format', |
|
341 | coreconfigitem('profiling', 'format', | |
339 | default='text', |
|
342 | default='text', | |
340 | ) |
|
343 | ) | |
341 | coreconfigitem('profiling', 'freq', |
|
344 | coreconfigitem('profiling', 'freq', | |
342 | default=1000, |
|
345 | default=1000, | |
343 | ) |
|
346 | ) | |
344 | coreconfigitem('profiling', 'limit', |
|
347 | coreconfigitem('profiling', 'limit', | |
345 | default=30, |
|
348 | default=30, | |
346 | ) |
|
349 | ) | |
347 | coreconfigitem('profiling', 'nested', |
|
350 | coreconfigitem('profiling', 'nested', | |
348 | default=0, |
|
351 | default=0, | |
349 | ) |
|
352 | ) | |
350 | coreconfigitem('profiling', 'output', |
|
353 | coreconfigitem('profiling', 'output', | |
351 | default=None, |
|
354 | default=None, | |
352 | ) |
|
355 | ) | |
353 | coreconfigitem('profiling', 'showmax', |
|
356 | coreconfigitem('profiling', 'showmax', | |
354 | default=0.999, |
|
357 | default=0.999, | |
355 | ) |
|
358 | ) | |
356 | coreconfigitem('profiling', 'showmin', |
|
359 | coreconfigitem('profiling', 'showmin', | |
357 | default=dynamicdefault, |
|
360 | default=dynamicdefault, | |
358 | ) |
|
361 | ) | |
359 | coreconfigitem('profiling', 'sort', |
|
362 | coreconfigitem('profiling', 'sort', | |
360 | default='inlinetime', |
|
363 | default='inlinetime', | |
361 | ) |
|
364 | ) | |
362 | coreconfigitem('profiling', 'statformat', |
|
365 | coreconfigitem('profiling', 'statformat', | |
363 | default='hotpath', |
|
366 | default='hotpath', | |
364 | ) |
|
367 | ) | |
365 | coreconfigitem('profiling', 'type', |
|
368 | coreconfigitem('profiling', 'type', | |
366 | default='stat', |
|
369 | default='stat', | |
367 | ) |
|
370 | ) | |
368 | coreconfigitem('progress', 'assume-tty', |
|
371 | coreconfigitem('progress', 'assume-tty', | |
369 | default=False, |
|
372 | default=False, | |
370 | ) |
|
373 | ) | |
371 | coreconfigitem('progress', 'changedelay', |
|
374 | coreconfigitem('progress', 'changedelay', | |
372 | default=1, |
|
375 | default=1, | |
373 | ) |
|
376 | ) | |
374 | coreconfigitem('progress', 'clear-complete', |
|
377 | coreconfigitem('progress', 'clear-complete', | |
375 | default=True, |
|
378 | default=True, | |
376 | ) |
|
379 | ) | |
377 | coreconfigitem('progress', 'debug', |
|
380 | coreconfigitem('progress', 'debug', | |
378 | default=False, |
|
381 | default=False, | |
379 | ) |
|
382 | ) | |
380 | coreconfigitem('progress', 'delay', |
|
383 | coreconfigitem('progress', 'delay', | |
381 | default=3, |
|
384 | default=3, | |
382 | ) |
|
385 | ) | |
383 | coreconfigitem('progress', 'disable', |
|
386 | coreconfigitem('progress', 'disable', | |
384 | default=False, |
|
387 | default=False, | |
385 | ) |
|
388 | ) | |
386 | coreconfigitem('progress', 'estimateinterval', |
|
389 | coreconfigitem('progress', 'estimateinterval', | |
387 | default=60.0, |
|
390 | default=60.0, | |
388 | ) |
|
391 | ) | |
389 | coreconfigitem('progress', 'refresh', |
|
392 | coreconfigitem('progress', 'refresh', | |
390 | default=0.1, |
|
393 | default=0.1, | |
391 | ) |
|
394 | ) | |
392 | coreconfigitem('progress', 'width', |
|
395 | coreconfigitem('progress', 'width', | |
393 | default=dynamicdefault, |
|
396 | default=dynamicdefault, | |
394 | ) |
|
397 | ) | |
395 | coreconfigitem('push', 'pushvars.server', |
|
398 | coreconfigitem('push', 'pushvars.server', | |
396 | default=False, |
|
399 | default=False, | |
397 | ) |
|
400 | ) | |
398 | coreconfigitem('server', 'bundle1', |
|
401 | coreconfigitem('server', 'bundle1', | |
399 | default=True, |
|
402 | default=True, | |
400 | ) |
|
403 | ) | |
401 | coreconfigitem('server', 'bundle1gd', |
|
404 | coreconfigitem('server', 'bundle1gd', | |
402 | default=None, |
|
405 | default=None, | |
403 | ) |
|
406 | ) | |
404 | coreconfigitem('server', 'compressionengines', |
|
407 | coreconfigitem('server', 'compressionengines', | |
405 | default=list, |
|
408 | default=list, | |
406 | ) |
|
409 | ) | |
407 | coreconfigitem('server', 'concurrent-push-mode', |
|
410 | coreconfigitem('server', 'concurrent-push-mode', | |
408 | default='strict', |
|
411 | default='strict', | |
409 | ) |
|
412 | ) | |
410 | coreconfigitem('server', 'disablefullbundle', |
|
413 | coreconfigitem('server', 'disablefullbundle', | |
411 | default=False, |
|
414 | default=False, | |
412 | ) |
|
415 | ) | |
413 | coreconfigitem('server', 'maxhttpheaderlen', |
|
416 | coreconfigitem('server', 'maxhttpheaderlen', | |
414 | default=1024, |
|
417 | default=1024, | |
415 | ) |
|
418 | ) | |
416 | coreconfigitem('server', 'preferuncompressed', |
|
419 | coreconfigitem('server', 'preferuncompressed', | |
417 | default=False, |
|
420 | default=False, | |
418 | ) |
|
421 | ) | |
419 | coreconfigitem('server', 'uncompressed', |
|
422 | coreconfigitem('server', 'uncompressed', | |
420 | default=True, |
|
423 | default=True, | |
421 | ) |
|
424 | ) | |
422 | coreconfigitem('server', 'uncompressedallowsecret', |
|
425 | coreconfigitem('server', 'uncompressedallowsecret', | |
423 | default=False, |
|
426 | default=False, | |
424 | ) |
|
427 | ) | |
425 | coreconfigitem('server', 'validate', |
|
428 | coreconfigitem('server', 'validate', | |
426 | default=False, |
|
429 | default=False, | |
427 | ) |
|
430 | ) | |
428 | coreconfigitem('server', 'zliblevel', |
|
431 | coreconfigitem('server', 'zliblevel', | |
429 | default=-1, |
|
432 | default=-1, | |
430 | ) |
|
433 | ) | |
431 | coreconfigitem('smtp', 'host', |
|
434 | coreconfigitem('smtp', 'host', | |
432 | default=None, |
|
435 | default=None, | |
433 | ) |
|
436 | ) | |
434 | coreconfigitem('smtp', 'local_hostname', |
|
437 | coreconfigitem('smtp', 'local_hostname', | |
435 | default=None, |
|
438 | default=None, | |
436 | ) |
|
439 | ) | |
437 | coreconfigitem('smtp', 'password', |
|
440 | coreconfigitem('smtp', 'password', | |
438 | default=None, |
|
441 | default=None, | |
439 | ) |
|
442 | ) | |
440 | coreconfigitem('smtp', 'port', |
|
443 | coreconfigitem('smtp', 'port', | |
441 | default=dynamicdefault, |
|
444 | default=dynamicdefault, | |
442 | ) |
|
445 | ) | |
443 | coreconfigitem('smtp', 'tls', |
|
446 | coreconfigitem('smtp', 'tls', | |
444 | default='none', |
|
447 | default='none', | |
445 | ) |
|
448 | ) | |
446 | coreconfigitem('smtp', 'username', |
|
449 | coreconfigitem('smtp', 'username', | |
447 | default=None, |
|
450 | default=None, | |
448 | ) |
|
451 | ) | |
449 | coreconfigitem('sparse', 'missingwarning', |
|
452 | coreconfigitem('sparse', 'missingwarning', | |
450 | default=True, |
|
453 | default=True, | |
451 | ) |
|
454 | ) | |
452 | coreconfigitem('trusted', 'groups', |
|
455 | coreconfigitem('trusted', 'groups', | |
453 | default=list, |
|
456 | default=list, | |
454 | ) |
|
457 | ) | |
455 | coreconfigitem('trusted', 'users', |
|
458 | coreconfigitem('trusted', 'users', | |
456 | default=list, |
|
459 | default=list, | |
457 | ) |
|
460 | ) | |
458 | coreconfigitem('ui', '_usedassubrepo', |
|
461 | coreconfigitem('ui', '_usedassubrepo', | |
459 | default=False, |
|
462 | default=False, | |
460 | ) |
|
463 | ) | |
461 | coreconfigitem('ui', 'allowemptycommit', |
|
464 | coreconfigitem('ui', 'allowemptycommit', | |
462 | default=False, |
|
465 | default=False, | |
463 | ) |
|
466 | ) | |
464 | coreconfigitem('ui', 'archivemeta', |
|
467 | coreconfigitem('ui', 'archivemeta', | |
465 | default=True, |
|
468 | default=True, | |
466 | ) |
|
469 | ) | |
467 | coreconfigitem('ui', 'askusername', |
|
470 | coreconfigitem('ui', 'askusername', | |
468 | default=False, |
|
471 | default=False, | |
469 | ) |
|
472 | ) | |
470 | coreconfigitem('ui', 'clonebundlefallback', |
|
473 | coreconfigitem('ui', 'clonebundlefallback', | |
471 | default=False, |
|
474 | default=False, | |
472 | ) |
|
475 | ) | |
473 | coreconfigitem('ui', 'clonebundleprefers', |
|
476 | coreconfigitem('ui', 'clonebundleprefers', | |
474 | default=list, |
|
477 | default=list, | |
475 | ) |
|
478 | ) | |
476 | coreconfigitem('ui', 'clonebundles', |
|
479 | coreconfigitem('ui', 'clonebundles', | |
477 | default=True, |
|
480 | default=True, | |
478 | ) |
|
481 | ) | |
479 | coreconfigitem('ui', 'color', |
|
482 | coreconfigitem('ui', 'color', | |
480 | default='auto', |
|
483 | default='auto', | |
481 | ) |
|
484 | ) | |
482 | coreconfigitem('ui', 'commitsubrepos', |
|
485 | coreconfigitem('ui', 'commitsubrepos', | |
483 | default=False, |
|
486 | default=False, | |
484 | ) |
|
487 | ) | |
485 | coreconfigitem('ui', 'debug', |
|
488 | coreconfigitem('ui', 'debug', | |
486 | default=False, |
|
489 | default=False, | |
487 | ) |
|
490 | ) | |
488 | coreconfigitem('ui', 'debugger', |
|
491 | coreconfigitem('ui', 'debugger', | |
489 | default=None, |
|
492 | default=None, | |
490 | ) |
|
493 | ) | |
491 | coreconfigitem('ui', 'fallbackencoding', |
|
494 | coreconfigitem('ui', 'fallbackencoding', | |
492 | default=None, |
|
495 | default=None, | |
493 | ) |
|
496 | ) | |
494 | coreconfigitem('ui', 'forcecwd', |
|
497 | coreconfigitem('ui', 'forcecwd', | |
495 | default=None, |
|
498 | default=None, | |
496 | ) |
|
499 | ) | |
497 | coreconfigitem('ui', 'forcemerge', |
|
500 | coreconfigitem('ui', 'forcemerge', | |
498 | default=None, |
|
501 | default=None, | |
499 | ) |
|
502 | ) | |
500 | coreconfigitem('ui', 'formatdebug', |
|
503 | coreconfigitem('ui', 'formatdebug', | |
501 | default=False, |
|
504 | default=False, | |
502 | ) |
|
505 | ) | |
503 | coreconfigitem('ui', 'formatjson', |
|
506 | coreconfigitem('ui', 'formatjson', | |
504 | default=False, |
|
507 | default=False, | |
505 | ) |
|
508 | ) | |
506 | coreconfigitem('ui', 'formatted', |
|
509 | coreconfigitem('ui', 'formatted', | |
507 | default=None, |
|
510 | default=None, | |
508 | ) |
|
511 | ) | |
509 | coreconfigitem('ui', 'graphnodetemplate', |
|
512 | coreconfigitem('ui', 'graphnodetemplate', | |
510 | default=None, |
|
513 | default=None, | |
511 | ) |
|
514 | ) | |
512 | coreconfigitem('ui', 'http2debuglevel', |
|
515 | coreconfigitem('ui', 'http2debuglevel', | |
513 | default=None, |
|
516 | default=None, | |
514 | ) |
|
517 | ) | |
515 | coreconfigitem('ui', 'interactive', |
|
518 | coreconfigitem('ui', 'interactive', | |
516 | default=None, |
|
519 | default=None, | |
517 | ) |
|
520 | ) | |
518 | coreconfigitem('ui', 'interface', |
|
521 | coreconfigitem('ui', 'interface', | |
519 | default=None, |
|
522 | default=None, | |
520 | ) |
|
523 | ) | |
521 | coreconfigitem('ui', 'logblockedtimes', |
|
524 | coreconfigitem('ui', 'logblockedtimes', | |
522 | default=False, |
|
525 | default=False, | |
523 | ) |
|
526 | ) | |
524 | coreconfigitem('ui', 'logtemplate', |
|
527 | coreconfigitem('ui', 'logtemplate', | |
525 | default=None, |
|
528 | default=None, | |
526 | ) |
|
529 | ) | |
527 | coreconfigitem('ui', 'merge', |
|
530 | coreconfigitem('ui', 'merge', | |
528 | default=None, |
|
531 | default=None, | |
529 | ) |
|
532 | ) | |
530 | coreconfigitem('ui', 'mergemarkers', |
|
533 | coreconfigitem('ui', 'mergemarkers', | |
531 | default='basic', |
|
534 | default='basic', | |
532 | ) |
|
535 | ) | |
533 | coreconfigitem('ui', 'mergemarkertemplate', |
|
536 | coreconfigitem('ui', 'mergemarkertemplate', | |
534 | default=('{node|short} ' |
|
537 | default=('{node|short} ' | |
535 | '{ifeq(tags, "tip", "", ' |
|
538 | '{ifeq(tags, "tip", "", ' | |
536 | 'ifeq(tags, "", "", "{tags} "))}' |
|
539 | 'ifeq(tags, "", "", "{tags} "))}' | |
537 | '{if(bookmarks, "{bookmarks} ")}' |
|
540 | '{if(bookmarks, "{bookmarks} ")}' | |
538 | '{ifeq(branch, "default", "", "{branch} ")}' |
|
541 | '{ifeq(branch, "default", "", "{branch} ")}' | |
539 | '- {author|user}: {desc|firstline}') |
|
542 | '- {author|user}: {desc|firstline}') | |
540 | ) |
|
543 | ) | |
541 | coreconfigitem('ui', 'nontty', |
|
544 | coreconfigitem('ui', 'nontty', | |
542 | default=False, |
|
545 | default=False, | |
543 | ) |
|
546 | ) | |
544 | coreconfigitem('ui', 'origbackuppath', |
|
547 | coreconfigitem('ui', 'origbackuppath', | |
545 | default=None, |
|
548 | default=None, | |
546 | ) |
|
549 | ) | |
547 | coreconfigitem('ui', 'paginate', |
|
550 | coreconfigitem('ui', 'paginate', | |
548 | default=True, |
|
551 | default=True, | |
549 | ) |
|
552 | ) | |
550 | coreconfigitem('ui', 'patch', |
|
553 | coreconfigitem('ui', 'patch', | |
551 | default=None, |
|
554 | default=None, | |
552 | ) |
|
555 | ) | |
553 | coreconfigitem('ui', 'portablefilenames', |
|
556 | coreconfigitem('ui', 'portablefilenames', | |
554 | default='warn', |
|
557 | default='warn', | |
555 | ) |
|
558 | ) | |
556 | coreconfigitem('ui', 'promptecho', |
|
559 | coreconfigitem('ui', 'promptecho', | |
557 | default=False, |
|
560 | default=False, | |
558 | ) |
|
561 | ) | |
559 | coreconfigitem('ui', 'quiet', |
|
562 | coreconfigitem('ui', 'quiet', | |
560 | default=False, |
|
563 | default=False, | |
561 | ) |
|
564 | ) | |
562 | coreconfigitem('ui', 'quietbookmarkmove', |
|
565 | coreconfigitem('ui', 'quietbookmarkmove', | |
563 | default=False, |
|
566 | default=False, | |
564 | ) |
|
567 | ) | |
565 | coreconfigitem('ui', 'remotecmd', |
|
568 | coreconfigitem('ui', 'remotecmd', | |
566 | default='hg', |
|
569 | default='hg', | |
567 | ) |
|
570 | ) | |
568 | coreconfigitem('ui', 'report_untrusted', |
|
571 | coreconfigitem('ui', 'report_untrusted', | |
569 | default=True, |
|
572 | default=True, | |
570 | ) |
|
573 | ) | |
571 | coreconfigitem('ui', 'rollback', |
|
574 | coreconfigitem('ui', 'rollback', | |
572 | default=True, |
|
575 | default=True, | |
573 | ) |
|
576 | ) | |
574 | coreconfigitem('ui', 'slash', |
|
577 | coreconfigitem('ui', 'slash', | |
575 | default=False, |
|
578 | default=False, | |
576 | ) |
|
579 | ) | |
577 | coreconfigitem('ui', 'ssh', |
|
580 | coreconfigitem('ui', 'ssh', | |
578 | default='ssh', |
|
581 | default='ssh', | |
579 | ) |
|
582 | ) | |
580 | coreconfigitem('ui', 'statuscopies', |
|
583 | coreconfigitem('ui', 'statuscopies', | |
581 | default=False, |
|
584 | default=False, | |
582 | ) |
|
585 | ) | |
583 | coreconfigitem('ui', 'strict', |
|
586 | coreconfigitem('ui', 'strict', | |
584 | default=False, |
|
587 | default=False, | |
585 | ) |
|
588 | ) | |
586 | coreconfigitem('ui', 'style', |
|
589 | coreconfigitem('ui', 'style', | |
587 | default='', |
|
590 | default='', | |
588 | ) |
|
591 | ) | |
589 | coreconfigitem('ui', 'supportcontact', |
|
592 | coreconfigitem('ui', 'supportcontact', | |
590 | default=None, |
|
593 | default=None, | |
591 | ) |
|
594 | ) | |
592 | coreconfigitem('ui', 'textwidth', |
|
595 | coreconfigitem('ui', 'textwidth', | |
593 | default=78, |
|
596 | default=78, | |
594 | ) |
|
597 | ) | |
595 | coreconfigitem('ui', 'timeout', |
|
598 | coreconfigitem('ui', 'timeout', | |
596 | default='600', |
|
599 | default='600', | |
597 | ) |
|
600 | ) | |
598 | coreconfigitem('ui', 'traceback', |
|
601 | coreconfigitem('ui', 'traceback', | |
599 | default=False, |
|
602 | default=False, | |
600 | ) |
|
603 | ) | |
601 | coreconfigitem('ui', 'tweakdefaults', |
|
604 | coreconfigitem('ui', 'tweakdefaults', | |
602 | default=False, |
|
605 | default=False, | |
603 | ) |
|
606 | ) | |
604 | coreconfigitem('ui', 'usehttp2', |
|
607 | coreconfigitem('ui', 'usehttp2', | |
605 | default=False, |
|
608 | default=False, | |
606 | ) |
|
609 | ) | |
607 | coreconfigitem('ui', 'username', |
|
610 | coreconfigitem('ui', 'username', | |
608 | alias=[('ui', 'user')] |
|
611 | alias=[('ui', 'user')] | |
609 | ) |
|
612 | ) | |
610 | coreconfigitem('ui', 'verbose', |
|
613 | coreconfigitem('ui', 'verbose', | |
611 | default=False, |
|
614 | default=False, | |
612 | ) |
|
615 | ) | |
613 | coreconfigitem('verify', 'skipflags', |
|
616 | coreconfigitem('verify', 'skipflags', | |
614 | default=None, |
|
617 | default=None, | |
615 | ) |
|
618 | ) | |
616 | coreconfigitem('web', 'accesslog', |
|
619 | coreconfigitem('web', 'accesslog', | |
617 | default='-', |
|
620 | default='-', | |
618 | ) |
|
621 | ) | |
619 | coreconfigitem('web', 'address', |
|
622 | coreconfigitem('web', 'address', | |
620 | default='', |
|
623 | default='', | |
621 | ) |
|
624 | ) | |
622 | coreconfigitem('web', 'allow_archive', |
|
625 | coreconfigitem('web', 'allow_archive', | |
623 | default=list, |
|
626 | default=list, | |
624 | ) |
|
627 | ) | |
625 | coreconfigitem('web', 'allow_read', |
|
628 | coreconfigitem('web', 'allow_read', | |
626 | default=list, |
|
629 | default=list, | |
627 | ) |
|
630 | ) | |
628 | coreconfigitem('web', 'baseurl', |
|
631 | coreconfigitem('web', 'baseurl', | |
629 | default=None, |
|
632 | default=None, | |
630 | ) |
|
633 | ) | |
631 | coreconfigitem('web', 'cacerts', |
|
634 | coreconfigitem('web', 'cacerts', | |
632 | default=None, |
|
635 | default=None, | |
633 | ) |
|
636 | ) | |
634 | coreconfigitem('web', 'certificate', |
|
637 | coreconfigitem('web', 'certificate', | |
635 | default=None, |
|
638 | default=None, | |
636 | ) |
|
639 | ) | |
637 | coreconfigitem('web', 'collapse', |
|
640 | coreconfigitem('web', 'collapse', | |
638 | default=False, |
|
641 | default=False, | |
639 | ) |
|
642 | ) | |
640 | coreconfigitem('web', 'csp', |
|
643 | coreconfigitem('web', 'csp', | |
641 | default=None, |
|
644 | default=None, | |
642 | ) |
|
645 | ) | |
643 | coreconfigitem('web', 'deny_read', |
|
646 | coreconfigitem('web', 'deny_read', | |
644 | default=list, |
|
647 | default=list, | |
645 | ) |
|
648 | ) | |
646 | coreconfigitem('web', 'descend', |
|
649 | coreconfigitem('web', 'descend', | |
647 | default=True, |
|
650 | default=True, | |
648 | ) |
|
651 | ) | |
649 | coreconfigitem('web', 'description', |
|
652 | coreconfigitem('web', 'description', | |
650 | default="", |
|
653 | default="", | |
651 | ) |
|
654 | ) | |
652 | coreconfigitem('web', 'encoding', |
|
655 | coreconfigitem('web', 'encoding', | |
653 | default=lambda: encoding.encoding, |
|
656 | default=lambda: encoding.encoding, | |
654 | ) |
|
657 | ) | |
655 | coreconfigitem('web', 'errorlog', |
|
658 | coreconfigitem('web', 'errorlog', | |
656 | default='-', |
|
659 | default='-', | |
657 | ) |
|
660 | ) | |
658 | coreconfigitem('web', 'ipv6', |
|
661 | coreconfigitem('web', 'ipv6', | |
659 | default=False, |
|
662 | default=False, | |
660 | ) |
|
663 | ) | |
661 | coreconfigitem('web', 'port', |
|
664 | coreconfigitem('web', 'port', | |
662 | default=8000, |
|
665 | default=8000, | |
663 | ) |
|
666 | ) | |
664 | coreconfigitem('web', 'prefix', |
|
667 | coreconfigitem('web', 'prefix', | |
665 | default='', |
|
668 | default='', | |
666 | ) |
|
669 | ) | |
667 | coreconfigitem('web', 'refreshinterval', |
|
670 | coreconfigitem('web', 'refreshinterval', | |
668 | default=20, |
|
671 | default=20, | |
669 | ) |
|
672 | ) | |
670 | coreconfigitem('web', 'stripes', |
|
673 | coreconfigitem('web', 'stripes', | |
671 | default=1, |
|
674 | default=1, | |
672 | ) |
|
675 | ) | |
673 | coreconfigitem('web', 'style', |
|
676 | coreconfigitem('web', 'style', | |
674 | default='paper', |
|
677 | default='paper', | |
675 | ) |
|
678 | ) | |
676 | coreconfigitem('web', 'templates', |
|
679 | coreconfigitem('web', 'templates', | |
677 | default=None, |
|
680 | default=None, | |
678 | ) |
|
681 | ) | |
679 | coreconfigitem('worker', 'backgroundclose', |
|
682 | coreconfigitem('worker', 'backgroundclose', | |
680 | default=dynamicdefault, |
|
683 | default=dynamicdefault, | |
681 | ) |
|
684 | ) | |
682 | # Windows defaults to a limit of 512 open files. A buffer of 128 |
|
685 | # Windows defaults to a limit of 512 open files. A buffer of 128 | |
683 | # should give us enough headway. |
|
686 | # should give us enough headway. | |
684 | coreconfigitem('worker', 'backgroundclosemaxqueue', |
|
687 | coreconfigitem('worker', 'backgroundclosemaxqueue', | |
685 | default=384, |
|
688 | default=384, | |
686 | ) |
|
689 | ) | |
687 | coreconfigitem('worker', 'backgroundcloseminfilecount', |
|
690 | coreconfigitem('worker', 'backgroundcloseminfilecount', | |
688 | default=2048, |
|
691 | default=2048, | |
689 | ) |
|
692 | ) | |
690 | coreconfigitem('worker', 'backgroundclosethreadcount', |
|
693 | coreconfigitem('worker', 'backgroundclosethreadcount', | |
691 | default=4, |
|
694 | default=4, | |
692 | ) |
|
695 | ) | |
693 | coreconfigitem('worker', 'numcpus', |
|
696 | coreconfigitem('worker', 'numcpus', | |
694 | default=None, |
|
697 | default=None, | |
695 | ) |
|
698 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now