--- a/mercurial/wireprototypes.py Wed Mar 28 10:52:40 2018 -0700
+++ b/mercurial/wireprototypes.py Wed Mar 28 14:55:13 2018 -0700
@@ -97,6 +97,11 @@
def __init__(self, gen=None):
self.gen = gen
+class cborresponse(object):
+ """Encode the response value as CBOR."""
+ def __init__(self, v):
+ self.value = v
+
class baseprotocolhandler(zi.Interface):
"""Abstract base class for wire protocol handlers.
@@ -115,7 +120,10 @@
def getargs(args):
"""return the value for arguments in <args>
- returns a list of values (same order as <args>)"""
+ For version 1 transports, returns a list of values in the same
+ order they appear in ``args``. For version 2 transports, returns
+ a dict mapping argument name to value.
+ """
def getprotocaps():
"""Returns the list of protocol-level capabilities of client