comparison tests/test-bundle-type.t @ 31794:54b1af732415

commands: update help for "bundle" We now have a dedicated help topic to describe bundle specification strings. Let's update `hg bundle`'s documentation to reflect its existence. While I was hear, I also tweaked some wording which I felt was out of date and needed tweaking. Specifically, `hg bundle` no longer just deals with "changegroup" data: it can also generate files that have non-changegroup data.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 01 Apr 2017 13:43:43 -0700
parents 10c0ee338535
children 626a28f30dbd
comparison
equal deleted inserted replaced
31793:69d8fcf20014 31794:54b1af732415
38 $ hg init t3 38 $ hg init t3
39 $ cd t3 39 $ cd t3
40 $ hg -q pull ../b1 40 $ hg -q pull ../b1
41 $ hg bundle -a -t unknown out.hg 41 $ hg bundle -a -t unknown out.hg
42 abort: unknown is not a recognized bundle specification 42 abort: unknown is not a recognized bundle specification
43 (see 'hg help bundle' for supported values for --type) 43 (see 'hg help bundlespec' for supported values for --type)
44 [255] 44 [255]
45 45
46 $ hg bundle -a -t unknown-v2 out.hg 46 $ hg bundle -a -t unknown-v2 out.hg
47 abort: unknown compression is not supported 47 abort: unknown compression is not supported
48 (see 'hg help bundle' for supported values for --type) 48 (see 'hg help bundlespec' for supported values for --type)
49 [255] 49 [255]
50 50
51 $ cd .. 51 $ cd ..
52 52
53 test bundle types 53 test bundle types
191 191
192 zstd-v1 always fails 192 zstd-v1 always fails
193 193
194 $ hg -R tzstd bundle -a -t zstd-v1 zstd-v1 194 $ hg -R tzstd bundle -a -t zstd-v1 zstd-v1
195 abort: compression engine zstd is not supported on v1 bundles 195 abort: compression engine zstd is not supported on v1 bundles
196 (see 'hg help bundle' for supported values for --type) 196 (see 'hg help bundlespec' for supported values for --type)
197 [255] 197 [255]
198 198
199 #else 199 #else
200 200
201 zstd is a valid engine but isn't available 201 zstd is a valid engine but isn't available
220 test invalid bundle type 220 test invalid bundle type
221 221
222 $ cd t1 222 $ cd t1
223 $ hg bundle -a -t garbage ../bgarbage 223 $ hg bundle -a -t garbage ../bgarbage
224 abort: garbage is not a recognized bundle specification 224 abort: garbage is not a recognized bundle specification
225 (see 'hg help bundle' for supported values for --type) 225 (see 'hg help bundlespec' for supported values for --type)
226 [255] 226 [255]
227 $ cd .. 227 $ cd ..