62 > op.ui.write('debugreply: %r\n' % val) |
62 > op.ui.write('debugreply: %r\n' % val) |
63 > |
63 > |
64 > @command('bundle2', |
64 > @command('bundle2', |
65 > [('', 'param', [], 'stream level parameter'), |
65 > [('', 'param', [], 'stream level parameter'), |
66 > ('', 'unknown', False, 'include an unknown mandatory part in the bundle'), |
66 > ('', 'unknown', False, 'include an unknown mandatory part in the bundle'), |
|
67 > ('', 'unknownparams', False, 'include an unknown part parameters in the bundle'), |
67 > ('', 'parts', False, 'include some arbitrary parts to the bundle'), |
68 > ('', 'parts', False, 'include some arbitrary parts to the bundle'), |
68 > ('', 'reply', False, 'produce a reply bundle'), |
69 > ('', 'reply', False, 'produce a reply bundle'), |
69 > ('', 'pushrace', False, 'includes a check:head part with unknown nodes'), |
70 > ('', 'pushrace', False, 'includes a check:head part with unknown nodes'), |
70 > ('r', 'rev', [], 'includes those changeset in the bundle'),], |
71 > ('r', 'rev', [], 'includes those changeset in the bundle'),], |
71 > '[OUTPUTFILE]') |
72 > '[OUTPUTFILE]') |
111 > mathpart.addparam('e', '2.72') |
112 > mathpart.addparam('e', '2.72') |
112 > mathpart.addparam('cooking', 'raw', mandatory=False) |
113 > mathpart.addparam('cooking', 'raw', mandatory=False) |
113 > mathpart.data = '42' |
114 > mathpart.data = '42' |
114 > if opts['unknown']: |
115 > if opts['unknown']: |
115 > bundler.newpart('test:UNKNOWN', data='some random content') |
116 > bundler.newpart('test:UNKNOWN', data='some random content') |
|
117 > if opts['unknownparams']: |
|
118 > bundler.newpart('test:SONG', [('randomparams', '')]) |
116 > if opts['parts']: |
119 > if opts['parts']: |
117 > bundler.newpart('test:ping') |
120 > bundler.newpart('test:ping') |
118 > |
121 > |
119 > if path is None: |
122 > if path is None: |
120 > file = sys.stdout |
123 > file = sys.stdout |
536 Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko |
539 Bokoro Dipoulito, Rondi Rondi Pepino, Pata Pata, Ko Ko Ko |
537 Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. |
540 Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko. |
538 debugreply: no reply |
541 debugreply: no reply |
539 0 unread bytes |
542 0 unread bytes |
540 abort: missing support for test:unknown |
543 abort: missing support for test:unknown |
|
544 [255] |
|
545 |
|
546 Unbundle with an unknown mandatory part parameters |
|
547 (should abort) |
|
548 |
|
549 $ hg bundle2 --unknownparams ../unknown.hg2 |
|
550 |
|
551 $ hg unbundle2 < ../unknown.hg2 |
|
552 0 unread bytes |
|
553 abort: missing support for test:song - randomparams |
541 [255] |
554 [255] |
542 |
555 |
543 unbundle with a reply |
556 unbundle with a reply |
544 |
557 |
545 $ hg bundle2 --parts --reply ../parts-reply.hg2 |
558 $ hg bundle2 --parts --reply ../parts-reply.hg2 |