equal
deleted
inserted
replaced
19 > '') |
19 > '') |
20 > def cmdbundle2(ui, repo, **opts): |
20 > def cmdbundle2(ui, repo, **opts): |
21 > """write a bundle2 container on standard ouput""" |
21 > """write a bundle2 container on standard ouput""" |
22 > bundler = bundle2.bundle20() |
22 > bundler = bundle2.bundle20() |
23 > for p in opts['param']: |
23 > for p in opts['param']: |
24 > bundler.addparam(p) |
24 > p = p.split('=', 1) |
|
25 > bundler.addparam(*p) |
|
26 > |
25 > for chunk in bundler.getchunks(): |
27 > for chunk in bundler.getchunks(): |
26 > ui.write(chunk) |
28 > ui.write(chunk) |
27 > |
29 > |
28 > @command('unbundle2', [], '') |
30 > @command('unbundle2', [], '') |
29 > def cmdunbundle2(ui, repo): |
31 > def cmdunbundle2(ui, repo): |
108 options count: 2 |
110 options count: 2 |
109 - caution |
111 - caution |
110 - meal |
112 - meal |
111 parts count: 0 |
113 parts count: 0 |
112 |
114 |
|
115 advisory parameters, with value |
|
116 ------------------------------- |
|
117 |
|
118 Test generation |
|
119 |
|
120 $ hg bundle2 --param 'caution' --param 'meal=vegan' --param 'elephants' |
|
121 HG20\x00\x1ccaution meal=vegan elephants\x00\x00 (no-eol) (esc) |
|
122 |