Show More
@@ -1450,24 +1450,32 b' def _pullbundle2(pullop):' | |||
|
1450 | 1450 | For now, the only supported data are changegroup.""" |
|
1451 | 1451 | kwargs = {'bundlecaps': caps20to10(pullop.repo)} |
|
1452 | 1452 | |
|
1453 | # make ui easier to access | |
|
1454 | ui = pullop.repo.ui | |
|
1455 | ||
|
1453 | 1456 | # At the moment we don't do stream clones over bundle2. If that is |
|
1454 | 1457 | # implemented then here's where the check for that will go. |
|
1455 | 1458 | streaming = False |
|
1456 | 1459 | |
|
1460 | # declare pull perimeters | |
|
1461 | kwargs['common'] = pullop.common | |
|
1462 | kwargs['heads'] = pullop.heads or pullop.rheads | |
|
1463 | ||
|
1457 | 1464 | # pulling changegroup |
|
1458 | 1465 | pullop.stepsdone.add('changegroup') |
|
1459 | 1466 | |
|
1460 | kwargs['common'] = pullop.common | |
|
1461 | kwargs['heads'] = pullop.heads or pullop.rheads | |
|
1462 | 1467 | kwargs['cg'] = pullop.fetch |
|
1463 | 1468 | |
|
1464 | ui = pullop.repo.ui | |
|
1465 | 1469 | legacyphase = 'phases' in ui.configlist('devel', 'legacy.exchange') |
|
1466 | 1470 | hasbinaryphase = 'heads' in pullop.remotebundle2caps.get('phases', ()) |
|
1467 | 1471 | if (not legacyphase and hasbinaryphase): |
|
1468 | 1472 | kwargs['phases'] = True |
|
1469 | 1473 | pullop.stepsdone.add('phases') |
|
1470 | 1474 | |
|
1475 | if 'listkeys' in pullop.remotebundle2caps: | |
|
1476 | if 'phases' not in pullop.stepsdone: | |
|
1477 | kwargs['listkeys'] = ['phases'] | |
|
1478 | ||
|
1471 | 1479 | bookmarksrequested = False |
|
1472 | 1480 | legacybookmark = 'bookmarks' in ui.configlist('devel', 'legacy.exchange') |
|
1473 | 1481 | hasbinarybook = 'bookmarks' in pullop.remotebundle2caps |
@@ -1482,8 +1490,6 b' def _pullbundle2(pullop):' | |||
|
1482 | 1490 | bookmarksrequested = True |
|
1483 | 1491 | |
|
1484 | 1492 | if 'listkeys' in pullop.remotebundle2caps: |
|
1485 | if 'phases' not in pullop.stepsdone: | |
|
1486 | kwargs['listkeys'] = ['phases'] | |
|
1487 | 1493 | if 'request-bookmarks' not in pullop.stepsdone: |
|
1488 | 1494 | # make sure to always includes bookmark data when migrating |
|
1489 | 1495 | # `hg incoming --bundle` to using this function. |
General Comments 0
You need to be logged in to leave comments.
Login now