equal
deleted
inserted
replaced
1526 untrusted=True) |
1526 untrusted=True) |
1527 featuresupported = repo.ui.configbool('experimental', 'bundle2.stream') |
1527 featuresupported = repo.ui.configbool('experimental', 'bundle2.stream') |
1528 |
1528 |
1529 if not streamsupported or not featuresupported: |
1529 if not streamsupported or not featuresupported: |
1530 caps.pop('stream') |
1530 caps.pop('stream') |
1531 # role == 'client' |
1531 # Else always advertise support on client, because payload support |
1532 else: |
1532 # should always be advertised. |
1533 if not repo.ui.configbool('experimental', 'bundle2.stream'): |
|
1534 caps.pop('stream') |
|
1535 |
1533 |
1536 return caps |
1534 return caps |
1537 |
1535 |
1538 def bundle2caps(remote): |
1536 def bundle2caps(remote): |
1539 """return the bundle capabilities of a peer as dict""" |
1537 """return the bundle capabilities of a peer as dict""" |