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