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