2067 5) closed heads nodes |
2069 5) closed heads nodes |
2068 """ |
2070 """ |
2069 # Don't send unless: |
2071 # Don't send unless: |
2070 # - changeset are being exchanged, |
2072 # - changeset are being exchanged, |
2071 # - the client supports it. |
2073 # - the client supports it. |
2072 if not (kwargs.get(r'cg', True)) or 'rev-branch-cache' not in b2caps: |
2074 # - narrow bundle isn't in play (not currently compatible). |
2073 return |
2075 if (not kwargs.get(r'cg', True) |
|
2076 or 'rev-branch-cache' not in b2caps |
|
2077 or kwargs.get(r'narrow', False) |
|
2078 or repo.ui.has_section(_NARROWACL_SECTION)): |
|
2079 return |
|
2080 |
2074 outgoing = _computeoutgoing(repo, heads, common) |
2081 outgoing = _computeoutgoing(repo, heads, common) |
2075 bundle2.addpartrevbranchcache(repo, bundler, outgoing) |
2082 bundle2.addpartrevbranchcache(repo, bundler, outgoing) |
2076 |
2083 |
2077 def check_heads(repo, their_heads, context): |
2084 def check_heads(repo, their_heads, context): |
2078 """check if the heads of a repo have been modified |
2085 """check if the heads of a repo have been modified |