comparison tests/test-bundle-type @ 6570:626cb86a6523

add compression type type parameter to bundle command
author Benoit Allard <benoit@aeteurope.nl>
date Thu, 24 Apr 2008 17:16:02 +0200
parents
children d6b53b48943f
comparison
equal deleted inserted replaced
6569:c15bfe9cdcd6 6570:626cb86a6523
1 #!/bin/sh
2
3 echo % bundle w/o type option
4 hg init t1
5 hg init t2
6 cd t1
7 echo blablablablabla > file.txt
8 hg ci -Ama
9 hg log | grep summary
10 hg bundle ../b1 ../t2
11
12 cd ../t2
13 hg pull ../b1
14 hg up
15 hg log | grep summary
16 cd ..
17
18 for t in "None" "bzip2" "gzip"; do
19 echo % test bundle type $t
20 hg init t$t
21 cd t1
22 hg bundle -t $t ../b$t ../t$t
23 head -c 6 ../b$t
24 cd ../t$t
25 hg pull ../b$t
26 hg up
27 hg log | grep summary
28 cd ..
29 done
30
31 echo % test garbage file
32 echo garbage > bgarbage
33 hg init tgarbage
34 cd tgarbage
35 hg pull ../bgarbage
36 cd ..
37
38 echo % test invalid bundle type
39 cd t1
40 hg bundle -a -t garbage ../bgarbage
41 cd ..