Show More
@@ -239,3 +239,32 b' test invalid bundle type' | |||||
239 | (see 'hg help bundlespec' for supported values for --type) |
|
239 | (see 'hg help bundlespec' for supported values for --type) | |
240 | [10] |
|
240 | [10] | |
241 | $ cd .. |
|
241 | $ cd .. | |
|
242 | ||||
|
243 | Test controlling the changegroup version | |||
|
244 | ||||
|
245 | $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t v2 ./v2-cg-default.hg | |||
|
246 | 1 changesets found | |||
|
247 | $ hg debugbundle ./v2-cg-default.hg --part-type changegroup | |||
|
248 | Stream params: {Compression: BZ} | |||
|
249 | changegroup -- {nbchanges: 1, version: 02} (mandatory: True) | |||
|
250 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |||
|
251 | $ hg debugbundle ./v2-cg-default.hg --spec | |||
|
252 | bzip2-v2 | |||
|
253 | $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=02' ./v2-cg-02.hg | |||
|
254 | 1 changesets found | |||
|
255 | $ hg debugbundle ./v2-cg-02.hg --part-type changegroup | |||
|
256 | Stream params: {Compression: BZ} | |||
|
257 | changegroup -- {nbchanges: 1, version: 02} (mandatory: True) | |||
|
258 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |||
|
259 | $ hg debugbundle ./v2-cg-02.hg --spec | |||
|
260 | bzip2-v2 | |||
|
261 | $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=03' ./v2-cg-03.hg | |||
|
262 | 1 changesets found | |||
|
263 | $ hg debugbundle ./v2-cg-03.hg --part-type changegroup | |||
|
264 | Stream params: {Compression: BZ} | |||
|
265 | changegroup -- {nbchanges: 1, version: 03} (mandatory: True) | |||
|
266 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |||
|
267 | $ hg debugbundle ./v2-cg-03.hg --spec | |||
|
268 | abort: changegroup version 03 does not have a known bundlespec (known-bad-output !) | |||
|
269 | (try upgrading your Mercurial client) (known-bad-output !) | |||
|
270 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now