Show More
@@ -1,101 +1,79 b'' | |||||
1 | bundle w/o type option |
|
1 | bundle w/o type option | |
2 |
|
2 | |||
3 | $ hg init t1 |
|
3 | $ hg init t1 | |
4 | $ hg init t2 |
|
4 | $ hg init t2 | |
5 | $ cd t1 |
|
5 | $ cd t1 | |
6 | $ echo blablablablabla > file.txt |
|
6 | $ echo blablablablabla > file.txt | |
7 | $ hg ci -Ama |
|
7 | $ hg ci -Ama | |
8 | adding file.txt |
|
8 | adding file.txt | |
9 | $ hg log | grep summary |
|
9 | $ hg log | grep summary | |
10 | summary: a |
|
10 | summary: a | |
11 | $ hg bundle ../b1 ../t2 |
|
11 | $ hg bundle ../b1 ../t2 | |
12 | searching for changes |
|
12 | searching for changes | |
13 | 1 changesets found |
|
13 | 1 changesets found | |
14 |
|
14 | |||
15 | $ cd ../t2 |
|
15 | $ cd ../t2 | |
16 | $ hg pull ../b1 |
|
16 | $ hg pull ../b1 | |
17 | pulling from ../b1 |
|
17 | pulling from ../b1 | |
18 | requesting all changes |
|
18 | requesting all changes | |
19 | adding changesets |
|
19 | adding changesets | |
20 | adding manifests |
|
20 | adding manifests | |
21 | adding file changes |
|
21 | adding file changes | |
22 | added 1 changesets with 1 changes to 1 files |
|
22 | added 1 changesets with 1 changes to 1 files | |
23 | (run 'hg update' to get a working copy) |
|
23 | (run 'hg update' to get a working copy) | |
24 | $ hg up |
|
24 | $ hg up | |
25 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
25 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
26 | $ hg log | grep summary |
|
26 | $ hg log | grep summary | |
27 | summary: a |
|
27 | summary: a | |
28 | $ cd .. |
|
28 | $ cd .. | |
29 |
|
29 | |||
30 | test bundle types |
|
30 | test bundle types | |
31 |
|
31 | |||
32 | $ for t in "None" "bzip2" "gzip"; do |
|
32 | $ for t in "None" "bzip2" "gzip"; do | |
33 | > echo % test bundle type $t |
|
33 | > echo % test bundle type $t | |
34 | > hg init t$t |
|
34 | > hg init t$t | |
35 | > cd t1 |
|
35 | > cd t1 | |
36 | > hg bundle -t $t ../b$t ../t$t |
|
36 | > hg bundle -t $t ../b$t ../t$t | |
37 | > cut -b 1-6 ../b$t | head -n 1 |
|
37 | > cut -b 1-6 ../b$t | head -n 1 | |
38 | > cd ../t$t |
|
38 | > cd ../t$t | |
39 |
> hg |
|
39 | > hg debugbundle ../b$t | |
40 |
> |
|
40 | > echo | |
41 | > hg log | grep summary |
|
|||
42 | > cd .. |
|
41 | > cd .. | |
43 | > done |
|
42 | > done | |
44 | % test bundle type None |
|
43 | % test bundle type None | |
45 | searching for changes |
|
44 | searching for changes | |
46 | 1 changesets found |
|
45 | 1 changesets found | |
47 | HG10UN |
|
46 | HG10UN | |
48 | pulling from ../bNone |
|
47 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |
49 | requesting all changes |
|
48 | ||
50 | adding changesets |
|
|||
51 | adding manifests |
|
|||
52 | adding file changes |
|
|||
53 | added 1 changesets with 1 changes to 1 files |
|
|||
54 | (run 'hg update' to get a working copy) |
|
|||
55 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
|||
56 | summary: a |
|
|||
57 | % test bundle type bzip2 |
|
49 | % test bundle type bzip2 | |
58 | searching for changes |
|
50 | searching for changes | |
59 | 1 changesets found |
|
51 | 1 changesets found | |
60 | HG10BZ |
|
52 | HG10BZ | |
61 | pulling from ../bbzip2 |
|
53 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |
62 | requesting all changes |
|
54 | ||
63 | adding changesets |
|
|||
64 | adding manifests |
|
|||
65 | adding file changes |
|
|||
66 | added 1 changesets with 1 changes to 1 files |
|
|||
67 | (run 'hg update' to get a working copy) |
|
|||
68 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
|||
69 | summary: a |
|
|||
70 | % test bundle type gzip |
|
55 | % test bundle type gzip | |
71 | searching for changes |
|
56 | searching for changes | |
72 | 1 changesets found |
|
57 | 1 changesets found | |
73 | HG10GZ |
|
58 | HG10GZ | |
74 | pulling from ../bgzip |
|
59 | c35a0f9217e65d1fdb90c936ffa7dbe679f83ddf | |
75 | requesting all changes |
|
60 | ||
76 | adding changesets |
|
|||
77 | adding manifests |
|
|||
78 | adding file changes |
|
|||
79 | added 1 changesets with 1 changes to 1 files |
|
|||
80 | (run 'hg update' to get a working copy) |
|
|||
81 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
|||
82 | summary: a |
|
|||
83 |
|
61 | |||
84 | test garbage file |
|
62 | test garbage file | |
85 |
|
63 | |||
86 | $ echo garbage > bgarbage |
|
64 | $ echo garbage > bgarbage | |
87 | $ hg init tgarbage |
|
65 | $ hg init tgarbage | |
88 | $ cd tgarbage |
|
66 | $ cd tgarbage | |
89 | $ hg pull ../bgarbage |
|
67 | $ hg pull ../bgarbage | |
90 | pulling from ../bgarbage |
|
68 | pulling from ../bgarbage | |
91 | abort: ../bgarbage: not a Mercurial bundle |
|
69 | abort: ../bgarbage: not a Mercurial bundle | |
92 | [255] |
|
70 | [255] | |
93 | $ cd .. |
|
71 | $ cd .. | |
94 |
|
72 | |||
95 | test invalid bundle type |
|
73 | test invalid bundle type | |
96 |
|
74 | |||
97 | $ cd t1 |
|
75 | $ cd t1 | |
98 | $ hg bundle -a -t garbage ../bgarbage |
|
76 | $ hg bundle -a -t garbage ../bgarbage | |
99 | abort: unknown bundle type specified with --type |
|
77 | abort: unknown bundle type specified with --type | |
100 | [255] |
|
78 | [255] | |
101 | $ cd .. |
|
79 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now