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