equal
deleted
inserted
replaced
177 _basesupported = supportedformats | set(('store', 'fncache', 'shared', |
177 _basesupported = supportedformats | set(('store', 'fncache', 'shared', |
178 'dotencode')) |
178 'dotencode')) |
179 openerreqs = set(('revlogv1', 'generaldelta')) |
179 openerreqs = set(('revlogv1', 'generaldelta')) |
180 requirements = ['revlogv1'] |
180 requirements = ['revlogv1'] |
181 filtername = None |
181 filtername = None |
182 |
|
183 bundle2caps = {'HG2X': (), |
|
184 'b2x:listkeys': (), |
|
185 'b2x:pushkey': (), |
|
186 'b2x:changegroup': (), |
|
187 } |
|
188 |
182 |
189 # a list of (ui, featureset) functions. |
183 # a list of (ui, featureset) functions. |
190 # only functions defined in module of enabled extensions are invoked |
184 # only functions defined in module of enabled extensions are invoked |
191 featuresetupfuncs = set() |
185 featuresetupfuncs = set() |
192 |
186 |
309 def _restrictcapabilities(self, caps): |
303 def _restrictcapabilities(self, caps): |
310 # bundle2 is not ready for prime time, drop it unless explicitly |
304 # bundle2 is not ready for prime time, drop it unless explicitly |
311 # required by the tests (or some brave tester) |
305 # required by the tests (or some brave tester) |
312 if self.ui.configbool('experimental', 'bundle2-exp', False): |
306 if self.ui.configbool('experimental', 'bundle2-exp', False): |
313 caps = set(caps) |
307 caps = set(caps) |
314 capsblob = bundle2.encodecaps(self.bundle2caps) |
308 capsblob = bundle2.encodecaps(bundle2.capabilities) |
315 caps.add('bundle2-exp=' + urllib.quote(capsblob)) |
309 caps.add('bundle2-exp=' + urllib.quote(capsblob)) |
316 return caps |
310 return caps |
317 |
311 |
318 def _applyrequirements(self, requirements): |
312 def _applyrequirements(self, requirements): |
319 self.requirements = requirements |
313 self.requirements = requirements |