comparison mercurial/localrepo.py @ 21147:2a246e737f92

bundle2: move bundle2 config option to section "experimental" We highlight the fact that this is experimental by moving it to an "experimental" section, and we match the config name with the server capability name `bundle2-exp`.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Apr 2014 16:01:58 -0400
parents 0c5088be66af
children 60ad2ea5b106
comparison
equal deleted inserted replaced
21146:4676135ac555 21147:2a246e737f92
303 pass 303 pass
304 304
305 def _restrictcapabilities(self, caps): 305 def _restrictcapabilities(self, caps):
306 # bundle2 is not ready for prime time, drop it unless explicitly 306 # bundle2 is not ready for prime time, drop it unless explicitly
307 # required by the tests (or some brave tester) 307 # required by the tests (or some brave tester)
308 if self.ui.configbool('server', 'bundle2', False): 308 if self.ui.configbool('experimental', 'bundle2-exp', False):
309 caps = set(caps) 309 caps = set(caps)
310 capsblob = bundle2.encodecaps(self.bundle2caps) 310 capsblob = bundle2.encodecaps(self.bundle2caps)
311 caps.add('bundle2-exp=' + urllib.quote(capsblob)) 311 caps.add('bundle2-exp=' + urllib.quote(capsblob))
312 return caps 312 return caps
313 313