Show More
@@ -315,6 +315,10 b' Secret changeset can still be streamed i' | |||||
315 | $ killdaemons.py |
|
315 | $ killdaemons.py | |
316 |
|
316 | |||
317 | Verify interaction between preferuncompressed and secret presence |
|
317 | Verify interaction between preferuncompressed and secret presence | |
|
318 | ----------------------------------------------------------------- | |||
|
319 | ||||
|
320 | Secret presence will still make the clone falls back to a normal bundle even if | |||
|
321 | the server prefers stream clone. | |||
318 |
|
322 | |||
319 | $ cd server |
|
323 | $ cd server | |
320 | $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid |
|
324 | $ hg serve --config server.preferuncompressed=true -p $HGPORT -d --pid-file=hg.pid | |
@@ -332,6 +336,9 b' Verify interaction between preferuncompr' | |||||
332 | $ killdaemons.py |
|
336 | $ killdaemons.py | |
333 |
|
337 | |||
334 | Clone not allowed when full bundles disabled and can't serve secrets |
|
338 | Clone not allowed when full bundles disabled and can't serve secrets | |
|
339 | -------------------------------------------------------------------- | |||
|
340 | ||||
|
341 | The clone should fail as no valid option is found. | |||
335 |
|
342 | |||
336 | $ cd server |
|
343 | $ cd server | |
337 | $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid |
|
344 | $ hg serve --config server.disablefullbundle=true -p $HGPORT -d --pid-file=hg.pid | |
@@ -347,6 +354,8 b' Clone not allowed when full bundles disa' | |||||
347 | [100] |
|
354 | [100] | |
348 |
|
355 | |||
349 | Local stream clone with secrets involved |
|
356 | Local stream clone with secrets involved | |
|
357 | ---------------------------------------- | |||
|
358 | ||||
350 | (This is just a test over behavior: if you have access to the repo's files, |
|
359 | (This is just a test over behavior: if you have access to the repo's files, | |
351 | there is no security so it isn't important to prevent a clone here.) |
|
360 | there is no security so it isn't important to prevent a clone here.) | |
352 |
|
361 | |||
@@ -673,12 +682,14 b' Clone non-publishing with obsolescence' | |||||
673 | #endif |
|
682 | #endif | |
674 |
|
683 | |||
675 | Cloning a repo with no requirements doesn't give some obscure error |
|
684 | Cloning a repo with no requirements doesn't give some obscure error | |
|
685 | ------------------------------------------------------------------- | |||
676 |
|
686 | |||
677 | $ mkdir -p empty-repo/.hg |
|
687 | $ mkdir -p empty-repo/.hg | |
678 | $ hg clone -q --stream ssh://user@dummy/empty-repo empty-repo2 |
|
688 | $ hg clone -q --stream ssh://user@dummy/empty-repo empty-repo2 | |
679 | $ hg --cwd empty-repo2 verify -q |
|
689 | $ hg --cwd empty-repo2 verify -q | |
680 |
|
690 | |||
681 | Cloning a repo with an empty manifestlog doesn't give some weird error |
|
691 | Cloning a repo with an empty manifestlog doesn't give some weird error | |
|
692 | ---------------------------------------------------------------------- | |||
682 |
|
693 | |||
683 | $ rm -r empty-repo; hg init empty-repo |
|
694 | $ rm -r empty-repo; hg init empty-repo | |
684 | $ (cd empty-repo; touch x; hg commit -Am empty; hg debugstrip -r 0) > /dev/null |
|
695 | $ (cd empty-repo; touch x; hg commit -Am empty; hg debugstrip -r 0) > /dev/null |
General Comments 0
You need to be logged in to leave comments.
Login now