##// END OF EJS Templates
getbundle: sort bundlecaps before exchanging then over the wire...
Pierre-Yves David -
r25128:631766d1 default
parent child Browse files
Show More
@@ -345,6 +345,11 b' class wirepeer(peer.peerrepository):'
345 345 def getbundle(self, source, **kwargs):
346 346 self.requirecap('getbundle', _('look up remote changes'))
347 347 opts = {}
348 bundlecaps = kwargs.get('bundlecaps')
349 if bundlecaps is not None:
350 kwargs['bundlecaps'] = sorted(bundlecaps)
351 else:
352 bundlecaps = () # kwargs could have it to None
348 353 for key, value in kwargs.iteritems():
349 354 if value is None:
350 355 continue
@@ -362,9 +367,6 b' class wirepeer(peer.peerrepository):'
362 367 % keytype)
363 368 opts[key] = value
364 369 f = self._callcompressable("getbundle", **opts)
365 bundlecaps = kwargs.get('bundlecaps')
366 if bundlecaps is None:
367 bundlecaps = () # kwargs could have it to None
368 370 if util.any((cap.startswith('HG2') for cap in bundlecaps)):
369 371 return bundle2.getunbundler(self.ui, f)
370 372 else:
General Comments 0
You need to be logged in to leave comments. Login now