diff 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
line wrap: on
line diff
--- a/mercurial/sshpeer.py	Fri Apr 06 22:39:58 2018 -0700
+++ b/mercurial/sshpeer.py	Thu Jan 18 12:54:01 2018 +0100
@@ -168,7 +168,7 @@
 
     Returns a list of capabilities that are supported by this client.
     """
-    protoparams = set()
+    protoparams = {'partial-pull'}
     comps = [e.wireprotosupport().name for e in
              util.compengines.supportedwireengines(util.CLIENTROLE)]
     protoparams.add('comp=%s' % ','.join(comps))