##// 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 b' class wirepeer(repository.legacypeer):'
297 297 kwargs = pycompat.byteskwargs(kwargs)
298 298 self.requirecap('getbundle', _('look up remote changes'))
299 299 opts = {}
300 bundlecaps = kwargs.get('bundlecaps')
301 if bundlecaps is not None:
302 kwargs['bundlecaps'] = sorted(bundlecaps)
303 else:
304 bundlecaps = () # kwargs could have it to None
300 bundlecaps = kwargs.get('bundlecaps') or set()
305 301 for key, value in kwargs.iteritems():
306 302 if value is None:
307 303 continue
@@ -311,8 +307,10 b' class wirepeer(repository.legacypeer):'
311 307 'Unexpectedly None keytype for key %s' % key)
312 308 elif keytype == 'nodes':
313 309 value = encodelist(value)
314 elif keytype in ('csv', 'scsv'):
310 elif keytype == 'csv':
315 311 value = ','.join(value)
312 elif keytype == 'scsv':
313 value = ','.join(sorted(value))
316 314 elif keytype == 'boolean':
317 315 value = '%i' % bool(value)
318 316 elif keytype != 'plain':
General Comments 0
You need to be logged in to leave comments. Login now