Show More
@@ -659,6 +659,9 b' def clone(ui, peeropts, source, dest=Non' | |||||
659 | checkout = revs[0] |
|
659 | checkout = revs[0] | |
660 | local = destpeer.local() |
|
660 | local = destpeer.local() | |
661 | if local: |
|
661 | if local: | |
|
662 | u = util.url(abspath) | |||
|
663 | defaulturl = bytes(u) | |||
|
664 | local.ui.setconfig('paths', 'default', defaulturl, 'clone') | |||
662 | if not stream: |
|
665 | if not stream: | |
663 | if pull: |
|
666 | if pull: | |
664 | stream = False |
|
667 | stream = False |
@@ -517,3 +517,30 b' A manifest with a gzip bundle and a stre' | |||||
517 | transferred 613 bytes in * seconds (*) (glob) |
|
517 | transferred 613 bytes in * seconds (*) (glob) | |
518 | searching for changes |
|
518 | searching for changes | |
519 | no changes found |
|
519 | no changes found | |
|
520 | ||||
|
521 | Test clone bundle retrieved through bundle2 | |||
|
522 | ||||
|
523 | $ cat << EOF >> $HGRCPATH | |||
|
524 | > [extensions] | |||
|
525 | > largefiles= | |||
|
526 | > EOF | |||
|
527 | $ killdaemons.py | |||
|
528 | $ hg -R server serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log | |||
|
529 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
530 | ||||
|
531 | $ hg -R server debuglfput gz-a.hg | |||
|
532 | f6eca29e25359f6a92f1ea64527cdcf1b5abe62a | |||
|
533 | ||||
|
534 | $ cat > server/.hg/clonebundles.manifest << EOF | |||
|
535 | > largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a BUNDLESPEC=gzip-v2 | |||
|
536 | > EOF | |||
|
537 | ||||
|
538 | $ hg clone -U http://localhost:$HGPORT largefile-provided --traceback | |||
|
539 | applying clone bundle from largefile://f6eca29e25359f6a92f1ea64527cdcf1b5abe62a | |||
|
540 | adding changesets | |||
|
541 | adding manifests | |||
|
542 | adding file changes | |||
|
543 | added 2 changesets with 2 changes to 2 files | |||
|
544 | finished applying clone bundle | |||
|
545 | searching for changes | |||
|
546 | no changes found |
General Comments 0
You need to be logged in to leave comments.
Login now