##// END OF EJS Templates
wireproto: don't special case bundlecaps, but sort all scsv arguments...
Joerg Sonnenberger -
r37430:1d459f61 default
parent child Browse files
Show More
@@ -297,11 +297,7 class wirepeer(repository.legacypeer):
297 kwargs = pycompat.byteskwargs(kwargs)
297 kwargs = pycompat.byteskwargs(kwargs)
298 self.requirecap('getbundle', _('look up remote changes'))
298 self.requirecap('getbundle', _('look up remote changes'))
299 opts = {}
299 opts = {}
300 bundlecaps = kwargs.get('bundlecaps')
300 bundlecaps = kwargs.get('bundlecaps') or set()
301 if bundlecaps is not None:
302 kwargs['bundlecaps'] = sorted(bundlecaps)
303 else:
304 bundlecaps = () # kwargs could have it to None
305 for key, value in kwargs.iteritems():
301 for key, value in kwargs.iteritems():
306 if value is None:
302 if value is None:
307 continue
303 continue
@@ -311,8 +307,10 class wirepeer(repository.legacypeer):
311 'Unexpectedly None keytype for key %s' % key)
307 'Unexpectedly None keytype for key %s' % key)
312 elif keytype == 'nodes':
308 elif keytype == 'nodes':
313 value = encodelist(value)
309 value = encodelist(value)
314 elif keytype in ('csv', 'scsv'):
310 elif keytype == 'csv':
315 value = ','.join(value)
311 value = ','.join(value)
312 elif keytype == 'scsv':
313 value = ','.join(sorted(value))
316 elif keytype == 'boolean':
314 elif keytype == 'boolean':
317 value = '%i' % bool(value)
315 value = '%i' % bool(value)
318 elif keytype != 'plain':
316 elif keytype != 'plain':
General Comments 0
You need to be logged in to leave comments. Login now