##// END OF EJS Templates
Make test-bundle-type work on MacOS 10.4.11...
Christian Ebert -
r6640:d6b53b48 default
parent child Browse files
Show More
@@ -1,41 +1,41
1 1 #!/bin/sh
2 2
3 3 echo % bundle w/o type option
4 4 hg init t1
5 5 hg init t2
6 6 cd t1
7 7 echo blablablablabla > file.txt
8 8 hg ci -Ama
9 9 hg log | grep summary
10 10 hg bundle ../b1 ../t2
11 11
12 12 cd ../t2
13 13 hg pull ../b1
14 14 hg up
15 15 hg log | grep summary
16 16 cd ..
17 17
18 18 for t in "None" "bzip2" "gzip"; do
19 19 echo % test bundle type $t
20 20 hg init t$t
21 21 cd t1
22 22 hg bundle -t $t ../b$t ../t$t
23 head -c 6 ../b$t
23 head -n 1 ../b$t | cut -b 1-6
24 24 cd ../t$t
25 25 hg pull ../b$t
26 26 hg up
27 27 hg log | grep summary
28 28 cd ..
29 29 done
30 30
31 31 echo % test garbage file
32 32 echo garbage > bgarbage
33 33 hg init tgarbage
34 34 cd tgarbage
35 35 hg pull ../bgarbage
36 36 cd ..
37 37
38 38 echo % test invalid bundle type
39 39 cd t1
40 40 hg bundle -a -t garbage ../bgarbage
41 41 cd ..
@@ -1,55 +1,58
1 1 % bundle w/o type option
2 2 adding file.txt
3 3 summary: a
4 4 searching for changes
5 5 1 changesets found
6 6 pulling from ../b1
7 7 requesting all changes
8 8 adding changesets
9 9 adding manifests
10 10 adding file changes
11 11 added 1 changesets with 1 changes to 1 files
12 12 (run 'hg update' to get a working copy)
13 13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 14 summary: a
15 15 % test bundle type None
16 16 searching for changes
17 17 1 changesets found
18 HG10UNpulling from ../bNone
18 HG10UN
19 pulling from ../bNone
19 20 requesting all changes
20 21 adding changesets
21 22 adding manifests
22 23 adding file changes
23 24 added 1 changesets with 1 changes to 1 files
24 25 (run 'hg update' to get a working copy)
25 26 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
26 27 summary: a
27 28 % test bundle type bzip2
28 29 searching for changes
29 30 1 changesets found
30 HG10BZpulling from ../bbzip2
31 HG10BZ
32 pulling from ../bbzip2
31 33 requesting all changes
32 34 adding changesets
33 35 adding manifests
34 36 adding file changes
35 37 added 1 changesets with 1 changes to 1 files
36 38 (run 'hg update' to get a working copy)
37 39 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
38 40 summary: a
39 41 % test bundle type gzip
40 42 searching for changes
41 43 1 changesets found
42 HG10GZpulling from ../bgzip
44 HG10GZ
45 pulling from ../bgzip
43 46 requesting all changes
44 47 adding changesets
45 48 adding manifests
46 49 adding file changes
47 50 added 1 changesets with 1 changes to 1 files
48 51 (run 'hg update' to get a working copy)
49 52 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 53 summary: a
51 54 % test garbage file
52 55 abort: ../bgarbage: not a Mercurial bundle file
53 56 % test invalid bundle type
54 57 1 changesets found
55 58 abort: unknown bundle type specified with --type
General Comments 0
You need to be logged in to leave comments. Login now