Show More
@@ -349,6 +349,8 b' class wirepeer(peer.peerrepository):' | |||||
349 | value = encodelist(value) |
|
349 | value = encodelist(value) | |
350 | elif keytype == 'csv': |
|
350 | elif keytype == 'csv': | |
351 | value = ','.join(value) |
|
351 | value = ','.join(value) | |
|
352 | elif keytype == 'boolean': | |||
|
353 | value = bool(value) | |||
352 | elif keytype != 'plain': |
|
354 | elif keytype != 'plain': | |
353 | raise KeyError('unknown getbundle option type %s' |
|
355 | raise KeyError('unknown getbundle option type %s' | |
354 | % keytype) |
|
356 | % keytype) | |
@@ -652,6 +654,8 b' def getbundle(repo, proto, others):' | |||||
652 | opts[k] = decodelist(v) |
|
654 | opts[k] = decodelist(v) | |
653 | elif keytype == 'csv': |
|
655 | elif keytype == 'csv': | |
654 | opts[k] = set(v.split(',')) |
|
656 | opts[k] = set(v.split(',')) | |
|
657 | elif keytype == 'boolean': | |||
|
658 | opts[k] = '%i' % bool(v) | |||
655 | elif keytype != 'plain': |
|
659 | elif keytype != 'plain': | |
656 | raise KeyError('unknown getbundle option type %s' |
|
660 | raise KeyError('unknown getbundle option type %s' | |
657 | % keytype) |
|
661 | % keytype) |
General Comments 0
You need to be logged in to leave comments.
Login now