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