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