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