Show More
@@ -233,7 +233,14 b' Feature works over SSH' | |||||
233 | no changes found |
|
233 | no changes found | |
234 | 2 local changesets published |
|
234 | 2 local changesets published | |
235 |
|
235 | |||
|
236 | Inline bundle | |||
|
237 | ============= | |||
|
238 | ||||
|
239 | Checking bundle retrieved over the wireprotocol | |||
|
240 | ||||
236 | Feature works over SSH with inline bundle |
|
241 | Feature works over SSH with inline bundle | |
|
242 | ----------------------------------------- | |||
|
243 | ||||
237 | $ mkdir server/.hg/bundle-cache/ |
|
244 | $ mkdir server/.hg/bundle-cache/ | |
238 | $ cp full.hg server/.hg/bundle-cache/ |
|
245 | $ cp full.hg server/.hg/bundle-cache/ | |
239 | $ echo "peer-bundle-cache://full.hg" > server/.hg/clonebundles.manifest |
|
246 | $ echo "peer-bundle-cache://full.hg" > server/.hg/clonebundles.manifest | |
@@ -248,7 +255,26 b' Feature works over SSH with inline bundl' | |||||
248 | no changes found |
|
255 | no changes found | |
249 | 2 local changesets published |
|
256 | 2 local changesets published | |
250 |
|
257 | |||
|
258 | HTTP Supports | |||
|
259 | ------------- | |||
|
260 | ||||
|
261 | Or lack of it actually | |||
|
262 | ||||
|
263 | Feature does not use inline bundle over HTTP(S) because there is no protocaps support | |||
|
264 | (so no way for the client to announce that it supports inline clonebundles) | |||
|
265 | $ hg clone -U http://localhost:$HGPORT http-inline-clone | |||
|
266 | requesting all changes | |||
|
267 | adding changesets | |||
|
268 | adding manifests | |||
|
269 | adding file changes | |||
|
270 | added 2 changesets with 2 changes to 2 files | |||
|
271 | new changesets 53245c60e682:aaff8d2ffbbf | |||
|
272 | ||||
|
273 | Pre-transmit Hook | |||
|
274 | ----------------- | |||
|
275 | ||||
251 | Hooks work with inline bundle |
|
276 | Hooks work with inline bundle | |
|
277 | ||||
252 | $ cp server/.hg/hgrc server/.hg/hgrc-beforeinlinehooks |
|
278 | $ cp server/.hg/hgrc server/.hg/hgrc-beforeinlinehooks | |
253 | $ echo "[hooks]" >> server/.hg/hgrc |
|
279 | $ echo "[hooks]" >> server/.hg/hgrc | |
254 | $ echo "pretransmit-inline-clone-bundle=echo foo" >> server/.hg/hgrc |
|
280 | $ echo "pretransmit-inline-clone-bundle=echo foo" >> server/.hg/hgrc | |
@@ -265,6 +291,7 b' Hooks work with inline bundle' | |||||
265 | 2 local changesets published |
|
291 | 2 local changesets published | |
266 |
|
292 | |||
267 | Hooks can make an inline bundle fail |
|
293 | Hooks can make an inline bundle fail | |
|
294 | ||||
268 | $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc |
|
295 | $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc | |
269 | $ echo "[hooks]" >> server/.hg/hgrc |
|
296 | $ echo "[hooks]" >> server/.hg/hgrc | |
270 | $ echo "pretransmit-inline-clone-bundle=echo bar && false" >> server/.hg/hgrc |
|
297 | $ echo "pretransmit-inline-clone-bundle=echo bar && false" >> server/.hg/hgrc | |
@@ -276,15 +303,8 b' Hooks can make an inline bundle fail' | |||||
276 | [255] |
|
303 | [255] | |
277 | $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc |
|
304 | $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc | |
278 |
|
305 | |||
279 | Feature does not use inline bundle over HTTP(S) because there is no protocaps support |
|
306 | Other tests | |
280 | (so no way for the client to announce that it supports inline clonebundles) |
|
307 | =========== | |
281 | $ hg clone -U http://localhost:$HGPORT http-inline-clone |
|
|||
282 | requesting all changes |
|
|||
283 | adding changesets |
|
|||
284 | adding manifests |
|
|||
285 | adding file changes |
|
|||
286 | added 2 changesets with 2 changes to 2 files |
|
|||
287 | new changesets 53245c60e682:aaff8d2ffbbf |
|
|||
288 |
|
308 | |||
289 | Entry with unknown BUNDLESPEC is filtered and not used |
|
309 | Entry with unknown BUNDLESPEC is filtered and not used | |
290 |
|
310 |
General Comments 0
You need to be logged in to leave comments.
Login now