|
1 bundle w/o type option |
|
2 |
|
3 $ hg init t1 |
|
4 $ hg init t2 |
|
5 $ cd t1 |
|
6 $ echo blablablablabla > file.txt |
|
7 $ hg ci -Ama |
|
8 adding file.txt |
|
9 $ hg log | grep summary |
|
10 summary: a |
|
11 $ hg bundle ../b1 ../t2 |
|
12 searching for changes |
|
13 1 changesets found |
|
14 |
|
15 $ cd ../t2 |
|
16 $ hg pull ../b1 |
|
17 pulling from ../b1 |
|
18 requesting all changes |
|
19 adding changesets |
|
20 adding manifests |
|
21 adding file changes |
|
22 added 1 changesets with 1 changes to 1 files |
|
23 (run 'hg update' to get a working copy) |
|
24 $ hg up |
|
25 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
26 $ hg log | grep summary |
|
27 summary: a |
|
28 $ cd .. |
|
29 |
|
30 test bundle types |
|
31 |
|
32 $ for t in "None" "bzip2" "gzip"; do |
|
33 > echo % test bundle type $t |
|
34 > hg init t$t |
|
35 > cd t1 |
|
36 > hg bundle -t $t ../b$t ../t$t |
|
37 > cut -b 1-6 ../b$t | head -n 1 |
|
38 > cd ../t$t |
|
39 > hg pull ../b$t |
|
40 > hg up |
|
41 > hg log | grep summary |
|
42 > cd .. |
|
43 > done |
|
44 % test bundle type None |
|
45 searching for changes |
|
46 1 changesets found |
|
47 HG10UN |
|
48 pulling from ../bNone |
|
49 requesting all changes |
|
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 |
|
58 searching for changes |
|
59 1 changesets found |
|
60 HG10BZ |
|
61 pulling from ../bbzip2 |
|
62 requesting all changes |
|
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 |
|
71 searching for changes |
|
72 1 changesets found |
|
73 HG10GZ |
|
74 pulling from ../bgzip |
|
75 requesting all changes |
|
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 |
|
84 test garbage file |
|
85 |
|
86 $ echo garbage > bgarbage |
|
87 $ hg init tgarbage |
|
88 $ cd tgarbage |
|
89 $ hg pull ../bgarbage |
|
90 abort: ../bgarbage: not a Mercurial bundle file |
|
91 $ cd .. |
|
92 |
|
93 test invalid bundle type |
|
94 |
|
95 $ cd t1 |
|
96 $ hg bundle -a -t garbage ../bgarbage |
|
97 1 changesets found |
|
98 abort: unknown bundle type specified with --type |
|
99 $ cd .. |