tests/test-bundle2.t
changeset 20809 b93bb639451a
parent 20805 c5aaeca0cfbf
child 20810 47293877b54c
equal deleted inserted replaced
20808:4c9130c7a29f 20809:b93bb639451a
    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