comparison mercurial/sshpeer.py @ 37498:aacfca6f9767

wireproto: support for pullbundles Pullbundles are similar to clonebundles, but served as normal inline bundle streams. They are almost transparent to the client -- the only visible effect is that the client might get less changes than what it asked for, i.e. not all requested head revisions are provided. The client announces support for the necessary retries with the partial-pull capability. After receiving a partial bundle, it updates the set of revisions shared with the server and drops all now-known heads from the request list. It will then rerun getbundle until no changes are received or all remote heads are present. Extend badserverext to support per-socket limit, i.e. don't assume that the same limits should be applied to all sockets. Differential Revision: https://phab.mercurial-scm.org/D1856
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 18 Jan 2018 12:54:01 +0100
parents 3e1688711efd
children a81d02ea65db
comparison
equal deleted inserted replaced
37497:1541e1a8e87d 37498:aacfca6f9767
166 def _clientcapabilities(): 166 def _clientcapabilities():
167 """Return list of capabilities of this client. 167 """Return list of capabilities of this client.
168 168
169 Returns a list of capabilities that are supported by this client. 169 Returns a list of capabilities that are supported by this client.
170 """ 170 """
171 protoparams = set() 171 protoparams = {'partial-pull'}
172 comps = [e.wireprotosupport().name for e in 172 comps = [e.wireprotosupport().name for e in
173 util.compengines.supportedwireengines(util.CLIENTROLE)] 173 util.compengines.supportedwireengines(util.CLIENTROLE)]
174 protoparams.add('comp=%s' % ','.join(comps)) 174 protoparams.add('comp=%s' % ','.join(comps))
175 return protoparams 175 return protoparams
176 176