changeset 20888:0b0d3800c248

bundle2: rename unbundle2 test command to statbundle2 We will introduce object to actually process the bundle, we need to keep the simplistic unbundle around for the test.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 24 Mar 2014 11:27:00 -0700
parents 662b79be093c
children deed5edb72de
files tests/test-bundle2.t
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bundle2.t	Tue Apr 01 00:08:15 2014 -0700
+++ b/tests/test-bundle2.t	Mon Mar 24 11:27:00 2014 -0700
@@ -56,9 +56,9 @@
   >     for chunk in bundler.getchunks():
   >         file.write(chunk)
   > 
-  > @command('unbundle2', [], '')
-  > def cmdunbundle2(ui, repo):
-  >     """read a bundle2 container from standard input"""
+  > @command('statbundle2', [], '')
+  > def cmdstatbundle2(ui, repo):
+  >     """print statistic on the bundle2 container read from stdin"""
   >     unbundler = bundle2.unbundle20(ui, sys.stdin)
   >     try:
   >         params = unbundler.params
@@ -105,7 +105,7 @@
 
 Test unbundling
 
-  $ hg bundle2 | hg unbundle2
+  $ hg bundle2 | hg statbundle2
   options count: 0
   parts count:   0
 
@@ -113,7 +113,7 @@
 
   $ hg bundle --all ../bundle.hg
   1 changesets found
-  $ hg unbundle2 < ../bundle.hg
+  $ hg statbundle2 < ../bundle.hg
   abort: unknown bundle version 10
   [255]
 
@@ -135,7 +135,7 @@
 
 Test unbundling
 
-  $ hg bundle2 --param 'caution' | hg unbundle2
+  $ hg bundle2 --param 'caution' | hg statbundle2
   options count: 1
   - caution
   parts count:   0
@@ -147,7 +147,7 @@
 
 Test unbundling
 
-  $ hg bundle2 --param 'caution' --param 'meal' | hg unbundle2
+  $ hg bundle2 --param 'caution' --param 'meal' | hg statbundle2
   options count: 2
   - caution
   - meal
@@ -163,7 +163,7 @@
 
 Test unbundling
 
-  $ hg bundle2 --param 'caution' --param 'meal=vegan' --param 'elephants' | hg unbundle2
+  $ hg bundle2 --param 'caution' --param 'meal=vegan' --param 'elephants' | hg statbundle2
   options count: 3
   - caution
   - elephants
@@ -181,7 +181,7 @@
 
 Test unbundling
 
-  $ hg bundle2 --param 'e|! 7/=babar%#==tutu' --param simple | hg unbundle2
+  $ hg bundle2 --param 'e|! 7/=babar%#==tutu' --param simple | hg statbundle2
   options count: 2
   - e|! 7/
       babar%#==tutu
@@ -191,7 +191,7 @@
 Test unknown mandatory option
 ---------------------------------------------------
 
-  $ hg bundle2 --param 'Gravity' | hg unbundle2
+  $ hg bundle2 --param 'Gravity' | hg statbundle2
   abort: unknown parameters: 'Gravity'
   [255]
 
@@ -213,7 +213,7 @@
 
 unbundling debug
 
-  $ hg unbundle2 --debug < ../out.hg2
+  $ hg statbundle2 --debug < ../out.hg2
   start processing of HG20 stream
   reading bundle2 stream parameters
   ignoring unknown parameter 'e|! 7/'
@@ -265,7 +265,7 @@
   Emana Karassoli, Loucra Loucra Ponponto, Pata Pata, Ko Ko Ko.\x00\x00\x00\x00\x00'	test:math\x02\x01\x02\x04\x01\x04\x07\x03pi3.14e2.72cookingraw\x00\x00\x00\x0242\x00\x00\x00\x00\x00\x00 (no-eol) (esc)
 
 
-  $ hg unbundle2 < ../parts.hg2
+  $ hg statbundle2 < ../parts.hg2
   options count: 0
   parts count:   4
     :test:empty:
@@ -285,7 +285,7 @@
       advisory: 1
       payload: 2 bytes
 
-  $ hg unbundle2 --debug < ../parts.hg2
+  $ hg statbundle2 --debug < ../parts.hg2
   start processing of HG20 stream
   reading bundle2 stream parameters
   options count: 0