Patchwork [4,of,4] test-bundle-type: replace unbundle with debugbundle

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 2, 2015, 3:32 a.m.
Message ID <6703d82354996e0ecc84.1443756750@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/10734/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 2, 2015, 3:32 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1443755700 25200
#      Thu Oct 01 20:15:00 2015 -0700
# Node ID 6703d82354996e0ecc841fb10aa7478160793b6f
# Parent  0eaf6a1eb27092cde9a168ba915b8e1b739123fa
test-bundle-type: replace unbundle with debugbundle

We now have a convenient function to look at bundle, let's use it.
Augie Fackler - Oct. 7, 2015, 5:49 p.m.
On Thu, Oct 01, 2015 at 08:32:30PM -0700, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@fb.com>
> # Date 1443755700 25200
> #      Thu Oct 01 20:15:00 2015 -0700
> # Node ID 6703d82354996e0ecc841fb10aa7478160793b6f
> # Parent  0eaf6a1eb27092cde9a168ba915b8e1b739123fa
> test-bundle-type: replace unbundle with debugbundle

queued these too, thanks

>
> We now have a convenient function to look at bundle, let's use it.
>
> diff --git a/tests/test-bundle-type.t b/tests/test-bundle-type.t
> --- a/tests/test-bundle-type.t
> +++ b/tests/test-bundle-type.t
> @@ -34,54 +34,32 @@ test bundle types
>    >   hg init t$t
>    >   cd t1
>    >   hg bundle -t $t ../b$t ../t$t
>    >   cut -b 1-6 ../b$t | head -n 1
>    >   cd ../t$t
> -  >   hg pull ../b$t
> -  >   hg up
> -  >   hg log | grep summary
> +  >   hg debugbundle ../b$t
> +  >   echo
>    >   cd ..
>    > done
>    % test bundle type None
>    searching for changes
>    1 changesets found
>    HG10UN
> -  pulling from ../bNone
> -  requesting all changes
> -  adding changesets
> -  adding manifests
> -  adding file changes
> -  added 1 changesets with 1 changes to 1 files
> -  (run 'hg update' to get a working copy)
> -  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> -  summary:     a
> +  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
> +
>    % test bundle type bzip2
>    searching for changes
>    1 changesets found
>    HG10BZ
> -  pulling from ../bbzip2
> -  requesting all changes
> -  adding changesets
> -  adding manifests
> -  adding file changes
> -  added 1 changesets with 1 changes to 1 files
> -  (run 'hg update' to get a working copy)
> -  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> -  summary:     a
> +  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
> +
>    % test bundle type gzip
>    searching for changes
>    1 changesets found
>    HG10GZ
> -  pulling from ../bgzip
> -  requesting all changes
> -  adding changesets
> -  adding manifests
> -  adding file changes
> -  added 1 changesets with 1 changes to 1 files
> -  (run 'hg update' to get a working copy)
> -  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> -  summary:     a
> +  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
> +
>
>  test garbage file
>
>    $ echo garbage > bgarbage
>    $ hg init tgarbage
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/tests/test-bundle-type.t b/tests/test-bundle-type.t
--- a/tests/test-bundle-type.t
+++ b/tests/test-bundle-type.t
@@ -34,54 +34,32 @@  test bundle types
   >   hg init t$t
   >   cd t1
   >   hg bundle -t $t ../b$t ../t$t
   >   cut -b 1-6 ../b$t | head -n 1
   >   cd ../t$t
-  >   hg pull ../b$t
-  >   hg up
-  >   hg log | grep summary
+  >   hg debugbundle ../b$t
+  >   echo
   >   cd ..
   > done
   % test bundle type None
   searching for changes
   1 changesets found
   HG10UN
-  pulling from ../bNone
-  requesting all changes
-  adding changesets
-  adding manifests
-  adding file changes
-  added 1 changesets with 1 changes to 1 files
-  (run 'hg update' to get a working copy)
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  summary:     a
+  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
+  
   % test bundle type bzip2
   searching for changes
   1 changesets found
   HG10BZ
-  pulling from ../bbzip2
-  requesting all changes
-  adding changesets
-  adding manifests
-  adding file changes
-  added 1 changesets with 1 changes to 1 files
-  (run 'hg update' to get a working copy)
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  summary:     a
+  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
+  
   % test bundle type gzip
   searching for changes
   1 changesets found
   HG10GZ
-  pulling from ../bgzip
-  requesting all changes
-  adding changesets
-  adding manifests
-  adding file changes
-  added 1 changesets with 1 changes to 1 files
-  (run 'hg update' to get a working copy)
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  summary:     a
+  c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
+  
 
 test garbage file
 
   $ echo garbage > bgarbage
   $ hg init tgarbage