Show More
@@ -203,11 +203,12 b' def unescapearg(escaped):' | |||||
203 | # |
|
203 | # | |
204 | # :nodes: list of binary nodes |
|
204 | # :nodes: list of binary nodes | |
205 | # :csv: list of comma-separated values |
|
205 | # :csv: list of comma-separated values | |
|
206 | # :scsv: list of comma-separated values return as set | |||
206 | # :plain: string with no transformation needed. |
|
207 | # :plain: string with no transformation needed. | |
207 | gboptsmap = {'heads': 'nodes', |
|
208 | gboptsmap = {'heads': 'nodes', | |
208 | 'common': 'nodes', |
|
209 | 'common': 'nodes', | |
209 | 'obsmarkers': 'boolean', |
|
210 | 'obsmarkers': 'boolean', | |
210 | 'bundlecaps': 'csv', |
|
211 | 'bundlecaps': 'scsv', | |
211 | 'listkeys': 'csv', |
|
212 | 'listkeys': 'csv', | |
212 | 'cg': 'boolean'} |
|
213 | 'cg': 'boolean'} | |
213 |
|
214 | |||
@@ -360,7 +361,7 b' class wirepeer(peer.peerrepository):' | |||||
360 | assert False, 'unexpected' |
|
361 | assert False, 'unexpected' | |
361 | elif keytype == 'nodes': |
|
362 | elif keytype == 'nodes': | |
362 | value = encodelist(value) |
|
363 | value = encodelist(value) | |
363 |
elif keytype |
|
364 | elif keytype in ('csv', 'scsv'): | |
364 | value = ','.join(value) |
|
365 | value = ','.join(value) | |
365 | elif keytype == 'boolean': |
|
366 | elif keytype == 'boolean': | |
366 | value = '%i' % bool(value) |
|
367 | value = '%i' % bool(value) | |
@@ -665,6 +666,8 b' def getbundle(repo, proto, others):' | |||||
665 | if keytype == 'nodes': |
|
666 | if keytype == 'nodes': | |
666 | opts[k] = decodelist(v) |
|
667 | opts[k] = decodelist(v) | |
667 | elif keytype == 'csv': |
|
668 | elif keytype == 'csv': | |
|
669 | opts[k] = list(v.split(',')) | |||
|
670 | elif keytype == 'scsv': | |||
668 | opts[k] = set(v.split(',')) |
|
671 | opts[k] = set(v.split(',')) | |
669 | elif keytype == 'boolean': |
|
672 | elif keytype == 'boolean': | |
670 | opts[k] = bool(v) |
|
673 | opts[k] = bool(v) |
@@ -466,8 +466,8 b' debug output' | |||||
466 | sending getbundle command |
|
466 | sending getbundle command | |
467 | bundle2-input-bundle: with-transaction |
|
467 | bundle2-input-bundle: with-transaction | |
468 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
468 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |
|
469 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |||
469 | bundle2-input-part: total payload size 45 |
|
470 | bundle2-input-part: total payload size 45 | |
470 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
|||
471 | bundle2-input-bundle: 1 parts total |
|
471 | bundle2-input-bundle: 1 parts total | |
472 | checking for updated bookmarks |
|
472 | checking for updated bookmarks | |
473 | preparing listkeys for "phases" |
|
473 | preparing listkeys for "phases" |
General Comments 0
You need to be logged in to leave comments.
Login now