##// END OF EJS Templates
Add output markers to test-bundle so it's easier to spot the source of...
Peter Arrenbrecht -
r5663:99fdef2e default
parent child Browse files
Show More
@@ -2,6 +2,7 b''
2
2
3 cp "$TESTDIR"/printenv.py .
3 cp "$TESTDIR"/printenv.py .
4
4
5 echo "====== Setting up test"
5 hg init test
6 hg init test
6 cd test
7 cd test
7 echo 0 > afile
8 echo 0 > afile
@@ -30,20 +31,31 b' hg commit -m "0.3m" -d "1000000 0"'
30 hg verify
31 hg verify
31 cd ..
32 cd ..
32 hg init empty
33 hg init empty
34
35 echo "====== Bundle test to full.hg"
33 hg -R test bundle full.hg empty
36 hg -R test bundle full.hg empty
37 echo "====== Unbundle full.hg in test"
34 hg -R test unbundle full.hg
38 hg -R test unbundle full.hg
39 echo "====== Verify empty"
35 hg -R empty heads
40 hg -R empty heads
36 hg -R empty verify
41 hg -R empty verify
37
42
43 echo "====== Pull full.hg into test (using --cwd)"
38 hg --cwd test pull ../full.hg
44 hg --cwd test pull ../full.hg
45 echo "====== Pull full.hg into empty (using --cwd)"
39 hg --cwd empty pull ../full.hg
46 hg --cwd empty pull ../full.hg
47 echo "====== Rollback empty"
40 hg -R empty rollback
48 hg -R empty rollback
49 echo "====== Pull full.hg into empty again (using --cwd)"
41 hg --cwd empty pull ../full.hg
50 hg --cwd empty pull ../full.hg
42
51
52 echo "====== Log -R full.hg in fresh empty"
43 rm -r empty
53 rm -r empty
44 hg init empty
54 hg init empty
45 cd empty
55 cd empty
46 hg -R bundle://../full.hg log
56 hg -R bundle://../full.hg log
57
58 echo "====== Pull ../full.hg into empty (with hook)"
47 echo '[hooks]' >> .hg/hgrc
59 echo '[hooks]' >> .hg/hgrc
48 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
60 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
49 #doesn't work (yet ?)
61 #doesn't work (yet ?)
@@ -51,18 +63,24 b" echo 'changegroup = python ../printenv.p"
51 hg pull bundle://../full.hg
63 hg pull bundle://../full.hg
52 cd ..
64 cd ..
53
65
66 echo "====== Create partial clones"
54 rm -r empty
67 rm -r empty
55 hg init empty
68 hg init empty
56 hg clone -r 3 test partial
69 hg clone -r 3 test partial
57 hg clone partial partial2
70 hg clone partial partial2
58 cd partial
71 cd partial
72 echo "====== Log -R full.hg in partial"
59 hg -R bundle://../full.hg log
73 hg -R bundle://../full.hg log
74 echo "====== Incoming full.hg in partial"
60 hg incoming bundle://../full.hg
75 hg incoming bundle://../full.hg
76 echo "====== Outgoing -R full.hg vs partial2 in partial"
61 hg -R bundle://../full.hg outgoing ../partial2
77 hg -R bundle://../full.hg outgoing ../partial2
78 echo "====== Outgoing -R does-not-exist.hg vs partial2 in partial"
62 hg -R bundle://../does-not-exist.hg outgoing ../partial2
79 hg -R bundle://../does-not-exist.hg outgoing ../partial2
63 cd ..
80 cd ..
64
81
65 # test for http://www.selenic.com/mercurial/bts/issue216
82 # test for http://www.selenic.com/mercurial/bts/issue216
83 echo "====== Unbundle incremental bundles into fresh empty in one go"
66 rm -r empty
84 rm -r empty
67 hg init empty
85 hg init empty
68 hg -R test bundle --base null -r 0 ../0.hg
86 hg -R test bundle --base null -r 0 ../0.hg
@@ -70,6 +88,7 b' hg -R test bundle --base 0 -r 1 ../1.'
70 hg -R empty unbundle -u ../0.hg ../1.hg
88 hg -R empty unbundle -u ../0.hg ../1.hg
71
89
72 # test for 540d1059c802
90 # test for 540d1059c802
91 echo "====== test for 540d1059c802"
73 hg init orig
92 hg init orig
74 cd orig
93 cd orig
75 echo foo > foo
94 echo foo > foo
@@ -1,3 +1,4 b''
1 ====== Setting up test
1 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
2 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
3 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
3 checking changesets
4 checking changesets
@@ -5,12 +6,15 b' checking manifests'
5 crosschecking files in changesets and manifests
6 crosschecking files in changesets and manifests
6 checking files
7 checking files
7 4 files, 9 changesets, 7 total revisions
8 4 files, 9 changesets, 7 total revisions
9 ====== Bundle test to full.hg
8 searching for changes
10 searching for changes
11 ====== Unbundle full.hg in test
9 adding changesets
12 adding changesets
10 adding manifests
13 adding manifests
11 adding file changes
14 adding file changes
12 added 0 changesets with 0 changes to 4 files
15 added 0 changesets with 0 changes to 4 files
13 (run 'hg update' to get a working copy)
16 (run 'hg update' to get a working copy)
17 ====== Verify empty
14 changeset: -1:000000000000
18 changeset: -1:000000000000
15 tag: tip
19 tag: tip
16 user:
20 user:
@@ -21,9 +25,11 b' checking manifests'
21 crosschecking files in changesets and manifests
25 crosschecking files in changesets and manifests
22 checking files
26 checking files
23 0 files, 0 changesets, 0 total revisions
27 0 files, 0 changesets, 0 total revisions
28 ====== Pull full.hg into test (using --cwd)
24 pulling from ../full.hg
29 pulling from ../full.hg
25 searching for changes
30 searching for changes
26 no changes found
31 no changes found
32 ====== Pull full.hg into empty (using --cwd)
27 pulling from ../full.hg
33 pulling from ../full.hg
28 requesting all changes
34 requesting all changes
29 adding changesets
35 adding changesets
@@ -31,7 +37,9 b' adding manifests'
31 adding file changes
37 adding file changes
32 added 9 changesets with 7 changes to 4 files (+1 heads)
38 added 9 changesets with 7 changes to 4 files (+1 heads)
33 (run 'hg heads' to see heads, 'hg merge' to merge)
39 (run 'hg heads' to see heads, 'hg merge' to merge)
40 ====== Rollback empty
34 rolling back last transaction
41 rolling back last transaction
42 ====== Pull full.hg into empty again (using --cwd)
35 pulling from ../full.hg
43 pulling from ../full.hg
36 requesting all changes
44 requesting all changes
37 adding changesets
45 adding changesets
@@ -39,6 +47,7 b' adding manifests'
39 adding file changes
47 adding file changes
40 added 9 changesets with 7 changes to 4 files (+1 heads)
48 added 9 changesets with 7 changes to 4 files (+1 heads)
41 (run 'hg heads' to see heads, 'hg merge' to merge)
49 (run 'hg heads' to see heads, 'hg merge' to merge)
50 ====== Log -R full.hg in fresh empty
42 changeset: 8:836ac62537ab
51 changeset: 8:836ac62537ab
43 tag: tip
52 tag: tip
44 parent: 3:ac69c658229d
53 parent: 3:ac69c658229d
@@ -87,6 +96,7 b' user: test'
87 date: Mon Jan 12 13:46:40 1970 +0000
96 date: Mon Jan 12 13:46:40 1970 +0000
88 summary: 0.0
97 summary: 0.0
89
98
99 ====== Pull ../full.hg into empty (with hook)
90 changegroup hook: HG_NODE=5649c9d34dd87d0ecb5fd39672128376e83b22e1 HG_SOURCE=pull HG_URL=bundle:../full.hg
100 changegroup hook: HG_NODE=5649c9d34dd87d0ecb5fd39672128376e83b22e1 HG_SOURCE=pull HG_URL=bundle:../full.hg
91 pulling from bundle://../full.hg
101 pulling from bundle://../full.hg
92 requesting all changes
102 requesting all changes
@@ -95,6 +105,7 b' adding manifests'
95 adding file changes
105 adding file changes
96 added 9 changesets with 7 changes to 4 files (+1 heads)
106 added 9 changesets with 7 changes to 4 files (+1 heads)
97 (run 'hg heads' to see heads, 'hg merge' to merge)
107 (run 'hg heads' to see heads, 'hg merge' to merge)
108 ====== Create partial clones
98 requesting all changes
109 requesting all changes
99 adding changesets
110 adding changesets
100 adding manifests
111 adding manifests
@@ -102,6 +113,7 b' adding file changes'
102 added 4 changesets with 4 changes to 1 files
113 added 4 changesets with 4 changes to 1 files
103 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
114 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
104 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
115 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
116 ====== Log -R full.hg in partial
105 changeset: 8:836ac62537ab
117 changeset: 8:836ac62537ab
106 tag: tip
118 tag: tip
107 parent: 3:ac69c658229d
119 parent: 3:ac69c658229d
@@ -150,6 +162,7 b' user: test'
150 date: Mon Jan 12 13:46:40 1970 +0000
162 date: Mon Jan 12 13:46:40 1970 +0000
151 summary: 0.0
163 summary: 0.0
152
164
165 ====== Incoming full.hg in partial
153 comparing with bundle://../full.hg
166 comparing with bundle://../full.hg
154 searching for changes
167 searching for changes
155 changeset: 4:5f4f3ceb285e
168 changeset: 4:5f4f3ceb285e
@@ -180,6 +193,7 b' user: test'
180 date: Mon Jan 12 13:46:40 1970 +0000
193 date: Mon Jan 12 13:46:40 1970 +0000
181 summary: 0.3m
194 summary: 0.3m
182
195
196 ====== Outgoing -R full.hg vs partial2 in partial
183 comparing with ../partial2
197 comparing with ../partial2
184 searching for changes
198 searching for changes
185 changeset: 4:5f4f3ceb285e
199 changeset: 4:5f4f3ceb285e
@@ -210,7 +224,9 b' user: test'
210 date: Mon Jan 12 13:46:40 1970 +0000
224 date: Mon Jan 12 13:46:40 1970 +0000
211 summary: 0.3m
225 summary: 0.3m
212
226
227 ====== Outgoing -R does-not-exist.hg vs partial2 in partial
213 abort: No such file or directory: ../does-not-exist.hg
228 abort: No such file or directory: ../does-not-exist.hg
229 ====== Unbundle incremental bundles into fresh empty in one go
214 adding changesets
230 adding changesets
215 adding manifests
231 adding manifests
216 adding file changes
232 adding file changes
@@ -220,6 +236,7 b' adding manifests'
220 adding file changes
236 adding file changes
221 added 1 changesets with 1 changes to 1 files
237 added 1 changesets with 1 changes to 1 files
222 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
238 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
239 ====== test for 540d1059c802
223 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
240 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
224 searching for changes
241 searching for changes
225 comparing with ../bundle.hg
242 comparing with ../bundle.hg
General Comments 0
You need to be logged in to leave comments. Login now