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