mercurial/bundle2.py
changeset 35792 1d118f9f4f57
parent 35790 c1b9eb15a51c
child 35793 4fb2bb61597c
equal deleted inserted replaced
35791:9adae6a20e1f 35792:1d118f9f4f57
  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"""