##// END OF EJS Templates
add tests for incoming and outgoing
Benoit Boissinot -
r2260:99d6cae5 default
parent child Browse files
Show More
@@ -0,0 +1,46 b''
1 #!/bin/sh
2
3 mkdir test
4 cd test
5 hg init
6 for i in 0 1 2 3 4 5 6 7 8; do
7 echo $i >> foo
8 hg commit -A -m $i -d "1000000 0"
9 done
10 hg verify
11 hg serve -p 20059 -d --pid-file=hg.pid
12 cd ..
13
14 hg init new
15 # http incoming
16 http_proxy= hg -R new incoming http://localhost:20059/
17 # local incoming
18 hg -R new incoming test
19
20 # test with --bundle
21 http_proxy= hg -R new incoming --bundle test.hg http://localhost:20059/
22 hg -R new incoming --bundle test2.hg test
23
24 # test the resulting bundles
25 hg init temp
26 hg init temp2
27 hg -R temp unbundle test.hg
28 hg -R temp2 unbundle test2.hg
29 hg -R temp tip
30 hg -R temp2 tip
31
32 rm -rf temp temp2 new
33
34 # test outgoing
35 hg clone test test-dev
36 cd test-dev
37 for i in 9 10 11 12 13; do
38 echo $i >> foo
39 hg commit -A -m $i -d "1000000 0"
40 done
41 hg verify
42 cd ..
43 hg -R test-dev outgoing test
44 http_proxy= hg -R test-dev outgoing http://localhost:20059/
45
46 kill `cat test/hg.pid`
@@ -0,0 +1,272 b''
1 adding foo
2 checking changesets
3 checking manifests
4 crosschecking files in changesets and manifests
5 checking files
6 1 files, 9 changesets, 9 total revisions
7 changeset: 0:9cb21d99fe27
8 user: test
9 date: Mon Jan 12 13:46:40 1970 +0000
10 summary: 0
11
12 changeset: 1:d717f5dfad6a
13 user: test
14 date: Mon Jan 12 13:46:40 1970 +0000
15 summary: 1
16
17 changeset: 2:c0d6b86da426
18 user: test
19 date: Mon Jan 12 13:46:40 1970 +0000
20 summary: 2
21
22 changeset: 3:dfacbd43b3fe
23 user: test
24 date: Mon Jan 12 13:46:40 1970 +0000
25 summary: 3
26
27 changeset: 4:1f3a964b6022
28 user: test
29 date: Mon Jan 12 13:46:40 1970 +0000
30 summary: 4
31
32 changeset: 5:c028bcc7a28a
33 user: test
34 date: Mon Jan 12 13:46:40 1970 +0000
35 summary: 5
36
37 changeset: 6:a0c0095f3389
38 user: test
39 date: Mon Jan 12 13:46:40 1970 +0000
40 summary: 6
41
42 changeset: 7:d4be65f4e891
43 user: test
44 date: Mon Jan 12 13:46:40 1970 +0000
45 summary: 7
46
47 changeset: 8:92b83e334ef8
48 tag: tip
49 user: test
50 date: Mon Jan 12 13:46:40 1970 +0000
51 summary: 8
52
53 changeset: 0:9cb21d99fe27
54 user: test
55 date: Mon Jan 12 13:46:40 1970 +0000
56 summary: 0
57
58 changeset: 1:d717f5dfad6a
59 user: test
60 date: Mon Jan 12 13:46:40 1970 +0000
61 summary: 1
62
63 changeset: 2:c0d6b86da426
64 user: test
65 date: Mon Jan 12 13:46:40 1970 +0000
66 summary: 2
67
68 changeset: 3:dfacbd43b3fe
69 user: test
70 date: Mon Jan 12 13:46:40 1970 +0000
71 summary: 3
72
73 changeset: 4:1f3a964b6022
74 user: test
75 date: Mon Jan 12 13:46:40 1970 +0000
76 summary: 4
77
78 changeset: 5:c028bcc7a28a
79 user: test
80 date: Mon Jan 12 13:46:40 1970 +0000
81 summary: 5
82
83 changeset: 6:a0c0095f3389
84 user: test
85 date: Mon Jan 12 13:46:40 1970 +0000
86 summary: 6
87
88 changeset: 7:d4be65f4e891
89 user: test
90 date: Mon Jan 12 13:46:40 1970 +0000
91 summary: 7
92
93 changeset: 8:92b83e334ef8
94 tag: tip
95 user: test
96 date: Mon Jan 12 13:46:40 1970 +0000
97 summary: 8
98
99 changeset: 0:9cb21d99fe27
100 user: test
101 date: Mon Jan 12 13:46:40 1970 +0000
102 summary: 0
103
104 changeset: 1:d717f5dfad6a
105 user: test
106 date: Mon Jan 12 13:46:40 1970 +0000
107 summary: 1
108
109 changeset: 2:c0d6b86da426
110 user: test
111 date: Mon Jan 12 13:46:40 1970 +0000
112 summary: 2
113
114 changeset: 3:dfacbd43b3fe
115 user: test
116 date: Mon Jan 12 13:46:40 1970 +0000
117 summary: 3
118
119 changeset: 4:1f3a964b6022
120 user: test
121 date: Mon Jan 12 13:46:40 1970 +0000
122 summary: 4
123
124 changeset: 5:c028bcc7a28a
125 user: test
126 date: Mon Jan 12 13:46:40 1970 +0000
127 summary: 5
128
129 changeset: 6:a0c0095f3389
130 user: test
131 date: Mon Jan 12 13:46:40 1970 +0000
132 summary: 6
133
134 changeset: 7:d4be65f4e891
135 user: test
136 date: Mon Jan 12 13:46:40 1970 +0000
137 summary: 7
138
139 changeset: 8:92b83e334ef8
140 tag: tip
141 user: test
142 date: Mon Jan 12 13:46:40 1970 +0000
143 summary: 8
144
145 changeset: 0:9cb21d99fe27
146 user: test
147 date: Mon Jan 12 13:46:40 1970 +0000
148 summary: 0
149
150 changeset: 1:d717f5dfad6a
151 user: test
152 date: Mon Jan 12 13:46:40 1970 +0000
153 summary: 1
154
155 changeset: 2:c0d6b86da426
156 user: test
157 date: Mon Jan 12 13:46:40 1970 +0000
158 summary: 2
159
160 changeset: 3:dfacbd43b3fe
161 user: test
162 date: Mon Jan 12 13:46:40 1970 +0000
163 summary: 3
164
165 changeset: 4:1f3a964b6022
166 user: test
167 date: Mon Jan 12 13:46:40 1970 +0000
168 summary: 4
169
170 changeset: 5:c028bcc7a28a
171 user: test
172 date: Mon Jan 12 13:46:40 1970 +0000
173 summary: 5
174
175 changeset: 6:a0c0095f3389
176 user: test
177 date: Mon Jan 12 13:46:40 1970 +0000
178 summary: 6
179
180 changeset: 7:d4be65f4e891
181 user: test
182 date: Mon Jan 12 13:46:40 1970 +0000
183 summary: 7
184
185 changeset: 8:92b83e334ef8
186 tag: tip
187 user: test
188 date: Mon Jan 12 13:46:40 1970 +0000
189 summary: 8
190
191 adding changesets
192 adding manifests
193 adding file changes
194 added 9 changesets with 9 changes to 1 files
195 (run 'hg update' to get a working copy)
196 adding changesets
197 adding manifests
198 adding file changes
199 added 9 changesets with 9 changes to 1 files
200 (run 'hg update' to get a working copy)
201 changeset: 8:92b83e334ef8
202 tag: tip
203 user: test
204 date: Mon Jan 12 13:46:40 1970 +0000
205 summary: 8
206
207 changeset: 8:92b83e334ef8
208 tag: tip
209 user: test
210 date: Mon Jan 12 13:46:40 1970 +0000
211 summary: 8
212
213 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
214 checking changesets
215 checking manifests
216 crosschecking files in changesets and manifests
217 checking files
218 1 files, 14 changesets, 14 total revisions
219 searching for changes
220 changeset: 9:3741c3ad1096
221 user: test
222 date: Mon Jan 12 13:46:40 1970 +0000
223 summary: 9
224
225 changeset: 10:de4143c8d9a5
226 user: test
227 date: Mon Jan 12 13:46:40 1970 +0000
228 summary: 10
229
230 changeset: 11:0e1c188b9a7a
231 user: test
232 date: Mon Jan 12 13:46:40 1970 +0000
233 summary: 11
234
235 changeset: 12:251354d0fdd3
236 user: test
237 date: Mon Jan 12 13:46:40 1970 +0000
238 summary: 12
239
240 changeset: 13:bdaadd969642
241 tag: tip
242 user: test
243 date: Mon Jan 12 13:46:40 1970 +0000
244 summary: 13
245
246 searching for changes
247 changeset: 9:3741c3ad1096
248 user: test
249 date: Mon Jan 12 13:46:40 1970 +0000
250 summary: 9
251
252 changeset: 10:de4143c8d9a5
253 user: test
254 date: Mon Jan 12 13:46:40 1970 +0000
255 summary: 10
256
257 changeset: 11:0e1c188b9a7a
258 user: test
259 date: Mon Jan 12 13:46:40 1970 +0000
260 summary: 11
261
262 changeset: 12:251354d0fdd3
263 user: test
264 date: Mon Jan 12 13:46:40 1970 +0000
265 summary: 12
266
267 changeset: 13:bdaadd969642
268 tag: tip
269 user: test
270 date: Mon Jan 12 13:46:40 1970 +0000
271 summary: 13
272
General Comments 0
You need to be logged in to leave comments. Login now