diff tests/test-bundle-type.t @ 26595:be0489770925

getsubset: get the unpacker version from the bundler The current setup requires to pass both a packer and, optionally, the version of the unpacker. This is confusing and error prone as the two value cannot mismatch. Instead, we simply grab the version from the packer. This fixes a bug where requesting a cg2 from 'hg bundle' were reported as changegroup 1. I should have caught that in the initial changeset but I missed it somehow.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 09 Oct 2015 14:59:37 -0700
parents 15ce78517d4b
children b13fdcc4e700
line wrap: on
line diff
--- a/tests/test-bundle-type.t	Mon Oct 12 15:42:32 2015 +0300
+++ b/tests/test-bundle-type.t	Fri Oct 09 14:59:37 2015 -0700
@@ -63,7 +63,7 @@
   1 changesets found
   HG20\x00\x00 (esc)
   Stream params: {}
-  changegroup -- "{'version': '01'}"
+  changegroup -- "{'version': '02'}"
       c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
   
   % test bundle type v2
@@ -71,7 +71,7 @@
   1 changesets found
   HG20\x00\x00 (esc)
   Stream params: {'Compression': 'BZ'}
-  changegroup -- "{'version': '01'}"
+  changegroup -- "{'version': '02'}"
       c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf
   
   % test bundle type v1