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