comparison tests/test-clonebundles.t @ 26643:d2e16419d3f4

clonebundle: support bundle2 exchange.readbundle() can return 2 different types. We weren't handling the bundle2 case. Handle it. At some point we'll likely want a generic API for applying a bundle from a file handle. For now, create another one-off until we figure out what the unified bundle API should look like (addressing this is a can of worms I don't want to open right now).
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 13 Oct 2015 10:41:54 -0700
parents 5a95fe44121d
children 74de1c59f71c
comparison
equal deleted inserted replaced
26642:70ac5f724fbd 26643:d2e16419d3f4
126 adding file changes 126 adding file changes
127 added 1 changesets with 1 changes to 1 files 127 added 1 changesets with 1 changes to 1 files
128 128
129 Bundle with full content works 129 Bundle with full content works
130 130
131 $ hg -R server bundle --type gzip --base null -r tip full.hg 131 $ hg -R server bundle --type gzip-v2 --base null -r tip full.hg
132 2 changesets found 132 2 changesets found
133 133
134 $ echo "http://localhost:$HGPORT1/full.hg" > server/.hg/clonebundles.manifest 134 $ echo "http://localhost:$HGPORT1/full.hg" > server/.hg/clonebundles.manifest
135 $ hg clone -U http://localhost:$HGPORT full-bundle 135 $ hg clone -U http://localhost:$HGPORT full-bundle
136 applying clone bundle from http://localhost:$HGPORT1/full.hg 136 applying clone bundle from http://localhost:$HGPORT1/full.hg