Show More
@@ -2474,7 +2474,7 b' def _getbundlechangegrouppart(' | |||
|
2474 | 2474 | **kwargs |
|
2475 | 2475 | ): |
|
2476 | 2476 | """add a changegroup part to the requested bundle""" |
|
2477 | if not kwargs.get('cg', True): | |
|
2477 | if not kwargs.get('cg', True) or not b2caps: | |
|
2478 | 2478 | return |
|
2479 | 2479 | |
|
2480 | 2480 | version = b'01' |
@@ -2536,7 +2536,7 b' def _getbundlebookmarkpart(' | |||
|
2536 | 2536 | """add a bookmark part to the requested bundle""" |
|
2537 | 2537 | if not kwargs.get('bookmarks', False): |
|
2538 | 2538 | return |
|
2539 | if b'bookmarks' not in b2caps: | |
|
2539 | if not b2caps or b'bookmarks' not in b2caps: | |
|
2540 | 2540 | raise error.Abort(_(b'no common bookmarks exchange method')) |
|
2541 | 2541 | books = bookmod.listbinbookmarks(repo) |
|
2542 | 2542 | data = bookmod.binaryencode(books) |
@@ -2577,7 +2577,7 b' def _getbundlephasespart(' | |||
|
2577 | 2577 | ): |
|
2578 | 2578 | """add phase heads part to the requested bundle""" |
|
2579 | 2579 | if kwargs.get('phases', False): |
|
2580 | if not b'heads' in b2caps.get(b'phases'): | |
|
2580 | if not b2caps or not b'heads' in b2caps.get(b'phases'): | |
|
2581 | 2581 | raise error.Abort(_(b'no common phases exchange method')) |
|
2582 | 2582 | if heads is None: |
|
2583 | 2583 | heads = repo.heads() |
@@ -2641,7 +2641,7 b' def _getbundletagsfnodes(' | |||
|
2641 | 2641 | # Don't send unless: |
|
2642 | 2642 | # - changeset are being exchanged, |
|
2643 | 2643 | # - the client supports it. |
|
2644 | if not (kwargs.get('cg', True) and b'hgtagsfnodes' in b2caps): | |
|
2644 | if not b2caps or not (kwargs.get('cg', True) and b'hgtagsfnodes' in b2caps): | |
|
2645 | 2645 | return |
|
2646 | 2646 | |
|
2647 | 2647 | outgoing = _computeoutgoing(repo, heads, common) |
@@ -2675,6 +2675,7 b' def _getbundlerevbranchcache(' | |||
|
2675 | 2675 | # - narrow bundle isn't in play (not currently compatible). |
|
2676 | 2676 | if ( |
|
2677 | 2677 | not kwargs.get('cg', True) |
|
2678 | or not b2caps | |
|
2678 | 2679 | or b'rev-branch-cache' not in b2caps |
|
2679 | 2680 | or kwargs.get('narrow', False) |
|
2680 | 2681 | or repo.ui.has_section(_NARROWACL_SECTION) |
General Comments 0
You need to be logged in to leave comments.
Login now