Show More
@@ -532,9 +532,7 b' def _pullbundle2(pullop):' | |||||
532 | """pull data using bundle2 |
|
532 | """pull data using bundle2 | |
533 |
|
533 | |||
534 | For now, the only supported data are changegroup.""" |
|
534 | For now, the only supported data are changegroup.""" | |
535 |
kwargs = {'bundlecaps': |
|
535 | kwargs = {'bundlecaps': caps20to10(pullop.repo)} | |
536 | capsblob = bundle2.encodecaps(pullop.repo.bundle2caps) |
|
|||
537 | kwargs['bundlecaps'].add('bundle2=' + urllib.quote(capsblob)) |
|
|||
538 | # pulling changegroup |
|
536 | # pulling changegroup | |
539 | pullop.todosteps.remove('changegroup') |
|
537 | pullop.todosteps.remove('changegroup') | |
540 |
|
538 | |||
@@ -636,6 +634,13 b' def _pullobsolete(pullop):' | |||||
636 | pullop.repo.invalidatevolatilesets() |
|
634 | pullop.repo.invalidatevolatilesets() | |
637 | return tr |
|
635 | return tr | |
638 |
|
636 | |||
|
637 | def caps20to10(repo): | |||
|
638 | """return a set with appropriate options to use bundle20 during getbundle""" | |||
|
639 | caps = set(['HG2X']) | |||
|
640 | capsblob = bundle2.encodecaps(repo.bundle2caps) | |||
|
641 | caps.add('bundle2=' + urllib.quote(capsblob)) | |||
|
642 | return caps | |||
|
643 | ||||
639 | def getbundle(repo, source, heads=None, common=None, bundlecaps=None, |
|
644 | def getbundle(repo, source, heads=None, common=None, bundlecaps=None, | |
640 | **kwargs): |
|
645 | **kwargs): | |
641 | """return a full bundle (with potentially multiple kind of parts) |
|
646 | """return a full bundle (with potentially multiple kind of parts) |
General Comments 0
You need to be logged in to leave comments.
Login now