##// END OF EJS Templates
wireproto: provide accessors for client capabilities...
Joerg Sonnenberger -
r37411:afcfdf53 default
parent child Browse files
Show More
@@ -451,6 +451,10 b' response.'
451
451
452 The server terminates if it receives an empty command (a ``\n`` character).
452 The server terminates if it receives an empty command (a ``\n`` character).
453
453
454 If the server announces support for the ``protocaps`` capability, the client
455 should issue a ``protocaps`` command after the initial handshake to annonunce
456 its own capabilities. The client capabilities are persistent.
457
454 SSH Version 2 Transport
458 SSH Version 2 Transport
455 -----------------------
459 -----------------------
456
460
@@ -1121,6 +1125,13 b' 2006).'
1121 This capability was introduced at the same time as the ``changegroupsubset``
1125 This capability was introduced at the same time as the ``changegroupsubset``
1122 capability/command.
1126 capability/command.
1123
1127
1128 protocaps
1129 ---------
1130
1131 Whether the server supports the ``protocaps`` command for SSH V1 transport.
1132
1133 This capability was introduced in Mercurial 4.6.
1134
1124 pushkey
1135 pushkey
1125 -------
1136 -------
1126
1137
@@ -1530,6 +1541,16 b' will be present at byte offset N.'
1530
1541
1531 There is no trailing newline.
1542 There is no trailing newline.
1532
1543
1544 protocaps
1545 ---------
1546
1547 Notify the server about the client capabilities in the SSH V1 transport
1548 protocol.
1549
1550 The ``caps`` argument is a space-delimited list of capabilities.
1551
1552 The server will reply with the string ``OK``.
1553
1533 pushkey
1554 pushkey
1534 -------
1555 -------
1535
1556
@@ -163,6 +163,17 b' def _makeconnection(ui, sshcmd, args, re'
163
163
164 return proc, stdin, stdout, stderr
164 return proc, stdin, stdout, stderr
165
165
166 def _clientcapabilities():
167 """Return list of capabilities of this client.
168
169 Returns a list of capabilities that are supported by this client.
170 """
171 protoparams = []
172 comps = [e.wireprotosupport().name for e in
173 util.compengines.supportedwireengines(util.CLIENTROLE)]
174 protoparams.append('comp=%s' % ','.join(comps))
175 return protoparams
176
166 def _performhandshake(ui, stdin, stdout, stderr):
177 def _performhandshake(ui, stdin, stdout, stderr):
167 def badresponse():
178 def badresponse():
168 # Flush any output on stderr.
179 # Flush any output on stderr.
@@ -609,4 +620,15 b' def instance(ui, path, create):'
609 proc, stdin, stdout, stderr = _makeconnection(ui, sshcmd, args, remotecmd,
620 proc, stdin, stdout, stderr = _makeconnection(ui, sshcmd, args, remotecmd,
610 remotepath, sshenv)
621 remotepath, sshenv)
611
622
612 return makepeer(ui, path, proc, stdin, stdout, stderr)
623 peer = makepeer(ui, path, proc, stdin, stdout, stderr)
624
625 # Finally, if supported by the server, notify it about our own
626 # capabilities.
627 if 'protocaps' in peer.capabilities():
628 try:
629 peer._call("protocaps", caps=' '.join(_clientcapabilities()))
630 except IOError:
631 peer._cleanup()
632 raise error.RepoError(_('capability exchange failed'))
633
634 return peer
@@ -159,6 +159,18 b' def encodebatchcmds(req):'
159
159
160 return ';'.join(cmds)
160 return ';'.join(cmds)
161
161
162 def clientcompressionsupport(proto):
163 """Returns a list of compression methods supported by the client.
164
165 Returns a list of the compression methods supported by the client
166 according to the protocol capabilities. If no such capability has
167 been announced, fallback to the default of zlib and uncompressed.
168 """
169 for cap in proto.getprotocaps():
170 if cap.startswith('comp='):
171 return cap[5:].split(',')
172 return ['zlib', 'none']
173
162 # mapping of options accepted by getbundle and their types
174 # mapping of options accepted by getbundle and their types
163 #
175 #
164 # Meant to be extended by extensions. It is extensions responsibility to ensure
176 # Meant to be extended by extensions. It is extensions responsibility to ensure
@@ -1027,6 +1039,13 b' def known(repo, proto, nodes, others):'
1027 v = ''.join(b and '1' or '0' for b in repo.known(decodelist(nodes)))
1039 v = ''.join(b and '1' or '0' for b in repo.known(decodelist(nodes)))
1028 return wireprototypes.bytesresponse(v)
1040 return wireprototypes.bytesresponse(v)
1029
1041
1042 @wireprotocommand('protocaps', 'caps', permission='pull',
1043 transportpolicy=POLICY_V1_ONLY)
1044 def protocaps(repo, proto, caps):
1045 if proto.name == wireprototypes.SSHV1:
1046 proto._protocaps = set(caps.split(' '))
1047 return wireprototypes.bytesresponse('OK')
1048
1030 @wireprotocommand('pushkey', 'namespace key old new', permission='push')
1049 @wireprotocommand('pushkey', 'namespace key old new', permission='push')
1031 def pushkey(repo, proto, namespace, key, old, new):
1050 def pushkey(repo, proto, namespace, key, old, new):
1032 # compatibility with pre-1.8 clients which were accidentally
1051 # compatibility with pre-1.8 clients which were accidentally
@@ -67,6 +67,7 b' class httpv1protocolhandler(object):'
67 self._req = req
67 self._req = req
68 self._ui = ui
68 self._ui = ui
69 self._checkperm = checkperm
69 self._checkperm = checkperm
70 self._protocaps = None
70
71
71 @property
72 @property
72 def name(self):
73 def name(self):
@@ -99,6 +100,12 b' class httpv1protocolhandler(object):'
99 args.update(urlreq.parseqs(argvalue, keep_blank_values=True))
100 args.update(urlreq.parseqs(argvalue, keep_blank_values=True))
100 return args
101 return args
101
102
103 def getprotocaps(self):
104 if self._protocaps is None:
105 value = decodevaluefromheaders(self._req, r'X-HgProto')
106 self._protocaps = set(value.split(' '))
107 return self._protocaps
108
102 def forwardpayload(self, fp):
109 def forwardpayload(self, fp):
103 # Existing clients *always* send Content-Length.
110 # Existing clients *always* send Content-Length.
104 length = int(self._req.headers[b'Content-Length'])
111 length = int(self._req.headers[b'Content-Length'])
@@ -599,6 +606,10 b' class httpv2protocolhandler(object):'
599
606
600 return [data[k] for k in args.split()]
607 return [data[k] for k in args.split()]
601
608
609 def getprotocaps(self):
610 # Protocol capabilities are currently not implemented for HTTP V2.
611 return set()
612
602 def forwardpayload(self, fp):
613 def forwardpayload(self, fp):
603 raise NotImplementedError
614 raise NotImplementedError
604
615
@@ -615,28 +626,21 b' class httpv2protocolhandler(object):'
615 def checkperm(self, perm):
626 def checkperm(self, perm):
616 raise NotImplementedError
627 raise NotImplementedError
617
628
618 def _httpresponsetype(ui, req, prefer_uncompressed):
629 def _httpresponsetype(ui, proto, prefer_uncompressed):
619 """Determine the appropriate response type and compression settings.
630 """Determine the appropriate response type and compression settings.
620
631
621 Returns a tuple of (mediatype, compengine, engineopts).
632 Returns a tuple of (mediatype, compengine, engineopts).
622 """
633 """
623 # Determine the response media type and compression engine based
634 # Determine the response media type and compression engine based
624 # on the request parameters.
635 # on the request parameters.
625 protocaps = decodevaluefromheaders(req, 'X-HgProto').split(' ')
626
636
627 if '0.2' in protocaps:
637 if '0.2' in proto.getprotocaps():
628 # All clients are expected to support uncompressed data.
638 # All clients are expected to support uncompressed data.
629 if prefer_uncompressed:
639 if prefer_uncompressed:
630 return HGTYPE2, util._noopengine(), {}
640 return HGTYPE2, util._noopengine(), {}
631
641
632 # Default as defined by wire protocol spec.
633 compformats = ['zlib', 'none']
634 for cap in protocaps:
635 if cap.startswith('comp='):
636 compformats = cap[5:].split(',')
637 break
638
639 # Now find an agreed upon compression format.
642 # Now find an agreed upon compression format.
643 compformats = wireproto.clientcompressionsupport(proto)
640 for engine in wireproto.supportedcompengines(ui, util.SERVERROLE):
644 for engine in wireproto.supportedcompengines(ui, util.SERVERROLE):
641 if engine.wireprotosupport().name in compformats:
645 if engine.wireprotosupport().name in compformats:
642 opts = {}
646 opts = {}
@@ -705,7 +709,7 b' def _callhttp(repo, req, res, proto, cmd'
705 # This code for compression should not be streamres specific. It
709 # This code for compression should not be streamres specific. It
706 # is here because we only compress streamres at the moment.
710 # is here because we only compress streamres at the moment.
707 mediatype, engine, engineopts = _httpresponsetype(
711 mediatype, engine, engineopts = _httpresponsetype(
708 repo.ui, req, rsp.prefer_uncompressed)
712 repo.ui, proto, rsp.prefer_uncompressed)
709 gen = engine.compressstream(gen, engineopts)
713 gen = engine.compressstream(gen, engineopts)
710
714
711 if mediatype == HGTYPE2:
715 if mediatype == HGTYPE2:
@@ -749,6 +753,7 b' class sshv1protocolhandler(object):'
749 self._ui = ui
753 self._ui = ui
750 self._fin = fin
754 self._fin = fin
751 self._fout = fout
755 self._fout = fout
756 self._protocaps = set()
752
757
753 @property
758 @property
754 def name(self):
759 def name(self):
@@ -775,6 +780,9 b' class sshv1protocolhandler(object):'
775 data[arg] = val
780 data[arg] = val
776 return [data[k] for k in keys]
781 return [data[k] for k in keys]
777
782
783 def getprotocaps(self):
784 return self._protocaps
785
778 def forwardpayload(self, fpout):
786 def forwardpayload(self, fpout):
779 # We initially send an empty response. This tells the client it is
787 # We initially send an empty response. This tells the client it is
780 # OK to start sending data. If a client sees any other response, it
788 # OK to start sending data. If a client sees any other response, it
@@ -800,6 +808,8 b' class sshv1protocolhandler(object):'
800 return 'remote:ssh:' + client
808 return 'remote:ssh:' + client
801
809
802 def addcapabilities(self, repo, caps):
810 def addcapabilities(self, repo, caps):
811 if self.name == wireprototypes.SSHV1:
812 caps.append(b'protocaps')
803 caps.append(b'batch')
813 caps.append(b'batch')
804 return caps
814 return caps
805
815
@@ -117,6 +117,12 b' class baseprotocolhandler(zi.Interface):'
117
117
118 returns a list of values (same order as <args>)"""
118 returns a list of values (same order as <args>)"""
119
119
120 def getprotocaps():
121 """Returns the list of protocol-level capabilities of client
122
123 Returns a list of capabilities as declared by the client for
124 the current request (or connection for stateful protocol handlers)."""
125
120 def forwardpayload(fp):
126 def forwardpayload(fp):
121 """Read the raw payload and forward to a file.
127 """Read the raw payload and forward to a file.
122
128
@@ -407,9 +407,12 b' Test debugpeer'
407 devel-peer-request: between
407 devel-peer-request: between
408 devel-peer-request: pairs: 81 bytes
408 devel-peer-request: pairs: 81 bytes
409 sending between command
409 sending between command
410 remote: 403
410 remote: 413
411 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
411 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
412 remote: 1
412 remote: 1
413 devel-peer-request: protocaps
414 devel-peer-request: caps: * bytes (glob)
415 sending protocaps command
413 url: ssh://user@dummy/debugrevlog
416 url: ssh://user@dummy/debugrevlog
414 local: no
417 local: no
415 pushable: yes
418 pushable: yes
@@ -480,10 +480,11 b' debug output'
480 sending upgrade request: * proto=exp-ssh-v2-0001 (glob) (sshv2 !)
480 sending upgrade request: * proto=exp-ssh-v2-0001 (glob) (sshv2 !)
481 sending hello command
481 sending hello command
482 sending between command
482 sending between command
483 remote: 403 (sshv1 !)
483 remote: 413 (sshv1 !)
484 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
484 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
485 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
485 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
486 remote: 1 (sshv1 !)
486 remote: 1 (sshv1 !)
487 sending protocaps command
487 preparing listkeys for "bookmarks"
488 preparing listkeys for "bookmarks"
488 sending listkeys command
489 sending listkeys command
489 received listkey for "bookmarks": 45 bytes
490 received listkey for "bookmarks": 45 bytes
@@ -56,9 +56,9 b' Test pushing bundle1 payload to a server'
56 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
56 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
57 i> flush() -> None
57 i> flush() -> None
58 o> readline() -> 4:
58 o> readline() -> 4:
59 o> 403\n
59 o> 413\n
60 o> readline() -> 403:
60 o> readline() -> 413:
61 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
61 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
62 o> readline() -> 2:
62 o> readline() -> 2:
63 o> 1\n
63 o> 1\n
64 o> readline() -> 1:
64 o> readline() -> 1:
@@ -110,8 +110,8 b' Test pushing bundle1 payload to a server'
110 o> readline() -> 62:
110 o> readline() -> 62:
111 o> upgraded * exp-ssh-v2-0001\n (glob)
111 o> upgraded * exp-ssh-v2-0001\n (glob)
112 o> readline() -> 4:
112 o> readline() -> 4:
113 o> 402\n
113 o> 412\n
114 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
114 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
115 o> read(1) -> 1:
115 o> read(1) -> 1:
116 o> \n
116 o> \n
117 sending unbundle command
117 sending unbundle command
@@ -225,9 +225,9 b' ui.write() in hook is redirected to stde'
225 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
225 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
226 i> flush() -> None
226 i> flush() -> None
227 o> readline() -> 4:
227 o> readline() -> 4:
228 o> 403\n
228 o> 413\n
229 o> readline() -> 403:
229 o> readline() -> 413:
230 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
230 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
231 o> readline() -> 2:
231 o> readline() -> 2:
232 o> 1\n
232 o> 1\n
233 o> readline() -> 1:
233 o> readline() -> 1:
@@ -285,8 +285,8 b' ui.write() in hook is redirected to stde'
285 o> readline() -> 62:
285 o> readline() -> 62:
286 o> upgraded * exp-ssh-v2-0001\n (glob)
286 o> upgraded * exp-ssh-v2-0001\n (glob)
287 o> readline() -> 4:
287 o> readline() -> 4:
288 o> 402\n
288 o> 412\n
289 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
289 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
290 o> read(1) -> 1:
290 o> read(1) -> 1:
291 o> \n
291 o> \n
292 sending unbundle command
292 sending unbundle command
@@ -353,9 +353,9 b' And a variation that writes multiple lin'
353 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
353 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
354 i> flush() -> None
354 i> flush() -> None
355 o> readline() -> 4:
355 o> readline() -> 4:
356 o> 403\n
356 o> 413\n
357 o> readline() -> 403:
357 o> readline() -> 413:
358 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
358 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
359 o> readline() -> 2:
359 o> readline() -> 2:
360 o> 1\n
360 o> 1\n
361 o> readline() -> 1:
361 o> readline() -> 1:
@@ -414,8 +414,8 b' And a variation that writes multiple lin'
414 o> readline() -> 62:
414 o> readline() -> 62:
415 o> upgraded * exp-ssh-v2-0001\n (glob)
415 o> upgraded * exp-ssh-v2-0001\n (glob)
416 o> readline() -> 4:
416 o> readline() -> 4:
417 o> 402\n
417 o> 412\n
418 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
418 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
419 o> read(1) -> 1:
419 o> read(1) -> 1:
420 o> \n
420 o> \n
421 sending unbundle command
421 sending unbundle command
@@ -483,9 +483,9 b' And a variation that does a ui.flush() a'
483 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
483 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
484 i> flush() -> None
484 i> flush() -> None
485 o> readline() -> 4:
485 o> readline() -> 4:
486 o> 403\n
486 o> 413\n
487 o> readline() -> 403:
487 o> readline() -> 413:
488 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
488 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
489 o> readline() -> 2:
489 o> readline() -> 2:
490 o> 1\n
490 o> 1\n
491 o> readline() -> 1:
491 o> readline() -> 1:
@@ -543,8 +543,8 b' And a variation that does a ui.flush() a'
543 o> readline() -> 62:
543 o> readline() -> 62:
544 o> upgraded * exp-ssh-v2-0001\n (glob)
544 o> upgraded * exp-ssh-v2-0001\n (glob)
545 o> readline() -> 4:
545 o> readline() -> 4:
546 o> 402\n
546 o> 412\n
547 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
547 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
548 o> read(1) -> 1:
548 o> read(1) -> 1:
549 o> \n
549 o> \n
550 sending unbundle command
550 sending unbundle command
@@ -611,9 +611,9 b' Multiple writes + flush'
611 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
611 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
612 i> flush() -> None
612 i> flush() -> None
613 o> readline() -> 4:
613 o> readline() -> 4:
614 o> 403\n
614 o> 413\n
615 o> readline() -> 403:
615 o> readline() -> 413:
616 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
616 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
617 o> readline() -> 2:
617 o> readline() -> 2:
618 o> 1\n
618 o> 1\n
619 o> readline() -> 1:
619 o> readline() -> 1:
@@ -672,8 +672,8 b' Multiple writes + flush'
672 o> readline() -> 62:
672 o> readline() -> 62:
673 o> upgraded * exp-ssh-v2-0001\n (glob)
673 o> upgraded * exp-ssh-v2-0001\n (glob)
674 o> readline() -> 4:
674 o> readline() -> 4:
675 o> 402\n
675 o> 412\n
676 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
676 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
677 o> read(1) -> 1:
677 o> read(1) -> 1:
678 o> \n
678 o> \n
679 sending unbundle command
679 sending unbundle command
@@ -741,9 +741,9 b' ui.write() + ui.write_err() output is ca'
741 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
741 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
742 i> flush() -> None
742 i> flush() -> None
743 o> readline() -> 4:
743 o> readline() -> 4:
744 o> 403\n
744 o> 413\n
745 o> readline() -> 403:
745 o> readline() -> 413:
746 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
746 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
747 o> readline() -> 2:
747 o> readline() -> 2:
748 o> 1\n
748 o> 1\n
749 o> readline() -> 1:
749 o> readline() -> 1:
@@ -804,8 +804,8 b' ui.write() + ui.write_err() output is ca'
804 o> readline() -> 62:
804 o> readline() -> 62:
805 o> upgraded * exp-ssh-v2-0001\n (glob)
805 o> upgraded * exp-ssh-v2-0001\n (glob)
806 o> readline() -> 4:
806 o> readline() -> 4:
807 o> 402\n
807 o> 412\n
808 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
808 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
809 o> read(1) -> 1:
809 o> read(1) -> 1:
810 o> \n
810 o> \n
811 sending unbundle command
811 sending unbundle command
@@ -875,9 +875,9 b' print() output is captured'
875 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
875 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
876 i> flush() -> None
876 i> flush() -> None
877 o> readline() -> 4:
877 o> readline() -> 4:
878 o> 403\n
878 o> 413\n
879 o> readline() -> 403:
879 o> readline() -> 413:
880 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
880 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
881 o> readline() -> 2:
881 o> readline() -> 2:
882 o> 1\n
882 o> 1\n
883 o> readline() -> 1:
883 o> readline() -> 1:
@@ -935,8 +935,8 b' print() output is captured'
935 o> readline() -> 62:
935 o> readline() -> 62:
936 o> upgraded * exp-ssh-v2-0001\n (glob)
936 o> upgraded * exp-ssh-v2-0001\n (glob)
937 o> readline() -> 4:
937 o> readline() -> 4:
938 o> 402\n
938 o> 412\n
939 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
939 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
940 o> read(1) -> 1:
940 o> read(1) -> 1:
941 o> \n
941 o> \n
942 sending unbundle command
942 sending unbundle command
@@ -1003,9 +1003,9 b' Mixed print() and ui.write() are both ca'
1003 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1003 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1004 i> flush() -> None
1004 i> flush() -> None
1005 o> readline() -> 4:
1005 o> readline() -> 4:
1006 o> 403\n
1006 o> 413\n
1007 o> readline() -> 403:
1007 o> readline() -> 413:
1008 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1008 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1009 o> readline() -> 2:
1009 o> readline() -> 2:
1010 o> 1\n
1010 o> 1\n
1011 o> readline() -> 1:
1011 o> readline() -> 1:
@@ -1066,8 +1066,8 b' Mixed print() and ui.write() are both ca'
1066 o> readline() -> 62:
1066 o> readline() -> 62:
1067 o> upgraded * exp-ssh-v2-0001\n (glob)
1067 o> upgraded * exp-ssh-v2-0001\n (glob)
1068 o> readline() -> 4:
1068 o> readline() -> 4:
1069 o> 402\n
1069 o> 412\n
1070 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1070 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1071 o> read(1) -> 1:
1071 o> read(1) -> 1:
1072 o> \n
1072 o> \n
1073 sending unbundle command
1073 sending unbundle command
@@ -1137,9 +1137,9 b' print() to stdout and stderr both get ca'
1137 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1137 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1138 i> flush() -> None
1138 i> flush() -> None
1139 o> readline() -> 4:
1139 o> readline() -> 4:
1140 o> 403\n
1140 o> 413\n
1141 o> readline() -> 403:
1141 o> readline() -> 413:
1142 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1142 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1143 o> readline() -> 2:
1143 o> readline() -> 2:
1144 o> 1\n
1144 o> 1\n
1145 o> readline() -> 1:
1145 o> readline() -> 1:
@@ -1200,8 +1200,8 b' print() to stdout and stderr both get ca'
1200 o> readline() -> 62:
1200 o> readline() -> 62:
1201 o> upgraded * exp-ssh-v2-0001\n (glob)
1201 o> upgraded * exp-ssh-v2-0001\n (glob)
1202 o> readline() -> 4:
1202 o> readline() -> 4:
1203 o> 402\n
1203 o> 412\n
1204 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1204 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1205 o> read(1) -> 1:
1205 o> read(1) -> 1:
1206 o> \n
1206 o> \n
1207 sending unbundle command
1207 sending unbundle command
@@ -1277,9 +1277,9 b' Shell hook writing to stdout has output '
1277 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1277 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1278 i> flush() -> None
1278 i> flush() -> None
1279 o> readline() -> 4:
1279 o> readline() -> 4:
1280 o> 403\n
1280 o> 413\n
1281 o> readline() -> 403:
1281 o> readline() -> 413:
1282 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1282 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1283 o> readline() -> 2:
1283 o> readline() -> 2:
1284 o> 1\n
1284 o> 1\n
1285 o> readline() -> 1:
1285 o> readline() -> 1:
@@ -1338,8 +1338,8 b' Shell hook writing to stdout has output '
1338 o> readline() -> 62:
1338 o> readline() -> 62:
1339 o> upgraded * exp-ssh-v2-0001\n (glob)
1339 o> upgraded * exp-ssh-v2-0001\n (glob)
1340 o> readline() -> 4:
1340 o> readline() -> 4:
1341 o> 402\n
1341 o> 412\n
1342 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1342 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1343 o> read(1) -> 1:
1343 o> read(1) -> 1:
1344 o> \n
1344 o> \n
1345 sending unbundle command
1345 sending unbundle command
@@ -1408,9 +1408,9 b' Shell hook writing to stderr has output '
1408 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1408 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1409 i> flush() -> None
1409 i> flush() -> None
1410 o> readline() -> 4:
1410 o> readline() -> 4:
1411 o> 403\n
1411 o> 413\n
1412 o> readline() -> 403:
1412 o> readline() -> 413:
1413 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1413 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1414 o> readline() -> 2:
1414 o> readline() -> 2:
1415 o> 1\n
1415 o> 1\n
1416 o> readline() -> 1:
1416 o> readline() -> 1:
@@ -1469,8 +1469,8 b' Shell hook writing to stderr has output '
1469 o> readline() -> 62:
1469 o> readline() -> 62:
1470 o> upgraded * exp-ssh-v2-0001\n (glob)
1470 o> upgraded * exp-ssh-v2-0001\n (glob)
1471 o> readline() -> 4:
1471 o> readline() -> 4:
1472 o> 402\n
1472 o> 412\n
1473 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1473 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1474 o> read(1) -> 1:
1474 o> read(1) -> 1:
1475 o> \n
1475 o> \n
1476 sending unbundle command
1476 sending unbundle command
@@ -1541,9 +1541,9 b' Shell hook writing to stdout and stderr '
1541 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1541 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1542 i> flush() -> None
1542 i> flush() -> None
1543 o> readline() -> 4:
1543 o> readline() -> 4:
1544 o> 403\n
1544 o> 413\n
1545 o> readline() -> 403:
1545 o> readline() -> 413:
1546 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1546 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1547 o> readline() -> 2:
1547 o> readline() -> 2:
1548 o> 1\n
1548 o> 1\n
1549 o> readline() -> 1:
1549 o> readline() -> 1:
@@ -1604,8 +1604,8 b' Shell hook writing to stdout and stderr '
1604 o> readline() -> 62:
1604 o> readline() -> 62:
1605 o> upgraded * exp-ssh-v2-0001\n (glob)
1605 o> upgraded * exp-ssh-v2-0001\n (glob)
1606 o> readline() -> 4:
1606 o> readline() -> 4:
1607 o> 402\n
1607 o> 412\n
1608 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1608 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1609 o> read(1) -> 1:
1609 o> read(1) -> 1:
1610 o> \n
1610 o> \n
1611 sending unbundle command
1611 sending unbundle command
@@ -1684,9 +1684,9 b' Shell and Python hooks writing to stdout'
1684 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1684 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1685 i> flush() -> None
1685 i> flush() -> None
1686 o> readline() -> 4:
1686 o> readline() -> 4:
1687 o> 403\n
1687 o> 413\n
1688 o> readline() -> 403:
1688 o> readline() -> 413:
1689 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1689 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1690 o> readline() -> 2:
1690 o> readline() -> 2:
1691 o> 1\n
1691 o> 1\n
1692 o> readline() -> 1:
1692 o> readline() -> 1:
@@ -1751,8 +1751,8 b' Shell and Python hooks writing to stdout'
1751 o> readline() -> 62:
1751 o> readline() -> 62:
1752 o> upgraded * exp-ssh-v2-0001\n (glob)
1752 o> upgraded * exp-ssh-v2-0001\n (glob)
1753 o> readline() -> 4:
1753 o> readline() -> 4:
1754 o> 402\n
1754 o> 412\n
1755 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1755 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1756 o> read(1) -> 1:
1756 o> read(1) -> 1:
1757 o> \n
1757 o> \n
1758 sending unbundle command
1758 sending unbundle command
@@ -1826,9 +1826,9 b' Pushing a bundle1 with no output'
1826 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1826 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1827 i> flush() -> None
1827 i> flush() -> None
1828 o> readline() -> 4:
1828 o> readline() -> 4:
1829 o> 403\n
1829 o> 413\n
1830 o> readline() -> 403:
1830 o> readline() -> 413:
1831 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1831 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1832 o> readline() -> 2:
1832 o> readline() -> 2:
1833 o> 1\n
1833 o> 1\n
1834 o> readline() -> 1:
1834 o> readline() -> 1:
@@ -1882,8 +1882,8 b' Pushing a bundle1 with no output'
1882 o> readline() -> 62:
1882 o> readline() -> 62:
1883 o> upgraded * exp-ssh-v2-0001\n (glob)
1883 o> upgraded * exp-ssh-v2-0001\n (glob)
1884 o> readline() -> 4:
1884 o> readline() -> 4:
1885 o> 402\n
1885 o> 412\n
1886 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1886 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1887 o> read(1) -> 1:
1887 o> read(1) -> 1:
1888 o> \n
1888 o> \n
1889 sending unbundle command
1889 sending unbundle command
@@ -1958,9 +1958,9 b' Pushing a bundle1 with ui.write() and ui'
1958 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1958 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1959 i> flush() -> None
1959 i> flush() -> None
1960 o> readline() -> 4:
1960 o> readline() -> 4:
1961 o> 403\n
1961 o> 413\n
1962 o> readline() -> 403:
1962 o> readline() -> 413:
1963 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1963 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1964 o> readline() -> 2:
1964 o> readline() -> 2:
1965 o> 1\n
1965 o> 1\n
1966 o> readline() -> 1:
1966 o> readline() -> 1:
@@ -2018,8 +2018,8 b' Pushing a bundle1 with ui.write() and ui'
2018 o> readline() -> 62:
2018 o> readline() -> 62:
2019 o> upgraded * exp-ssh-v2-0001\n (glob)
2019 o> upgraded * exp-ssh-v2-0001\n (glob)
2020 o> readline() -> 4:
2020 o> readline() -> 4:
2021 o> 402\n
2021 o> 412\n
2022 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
2022 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
2023 o> read(1) -> 1:
2023 o> read(1) -> 1:
2024 o> \n
2024 o> \n
2025 sending unbundle command
2025 sending unbundle command
@@ -63,9 +63,12 b' Test a normal behaving server, for sanit'
63 devel-peer-request: between
63 devel-peer-request: between
64 devel-peer-request: pairs: 81 bytes
64 devel-peer-request: pairs: 81 bytes
65 sending between command
65 sending between command
66 remote: 403
66 remote: 413
67 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
67 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
68 remote: 1
68 remote: 1
69 devel-peer-request: protocaps
70 devel-peer-request: caps: * bytes (glob)
71 sending protocaps command
69 url: ssh://user@dummy/server
72 url: ssh://user@dummy/server
70 local: no
73 local: no
71 pushable: yes
74 pushable: yes
@@ -82,9 +85,9 b' Server should answer the "hello" command'
82 i> write(6) -> 6:
85 i> write(6) -> 6:
83 i> hello\n
86 i> hello\n
84 o> readline() -> 4:
87 o> readline() -> 4:
85 o> 403\n
88 o> 413\n
86 o> readline() -> 403:
89 o> readline() -> 413:
87 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
90 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
88
91
89 `hg debugserve --sshstdio` works
92 `hg debugserve --sshstdio` works
90
93
@@ -92,8 +95,8 b' Server should answer the "hello" command'
92 $ hg debugserve --sshstdio << EOF
95 $ hg debugserve --sshstdio << EOF
93 > hello
96 > hello
94 > EOF
97 > EOF
95 403
98 413
96 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
99 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
97
100
98 I/O logging works
101 I/O logging works
99
102
@@ -101,24 +104,24 b' I/O logging works'
101 > hello
104 > hello
102 > EOF
105 > EOF
103 o> write(4) -> 4:
106 o> write(4) -> 4:
104 o> 403\n
107 o> 413\n
105 o> write(403) -> 403:
108 o> write(413) -> 413:
106 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
109 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
107 403
110 413
108 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
111 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
109 o> flush() -> None
112 o> flush() -> None
110
113
111 $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
114 $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
112 > hello
115 > hello
113 > EOF
116 > EOF
114 403
117 413
115 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
118 capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
116
119
117 $ cat $TESTTMP/io
120 $ cat $TESTTMP/io
118 o> write(4) -> 4:
121 o> write(4) -> 4:
119 o> 403\n
122 o> 413\n
120 o> write(403) -> 403:
123 o> write(413) -> 413:
121 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
124 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
122 o> flush() -> None
125 o> flush() -> None
123
126
124 $ cd ..
127 $ cd ..
@@ -143,9 +146,9 b' reply with empty response to the "betwee'
143 i> write(6) -> 6:
146 i> write(6) -> 6:
144 i> hello\n
147 i> hello\n
145 o> readline() -> 4:
148 o> readline() -> 4:
146 o> 403\n
149 o> 413\n
147 o> readline() -> 403:
150 o> readline() -> 413:
148 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
151 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
149 i> write(98) -> 98:
152 i> write(98) -> 98:
150 i> between\n
153 i> between\n
151 i> pairs 81\n
154 i> pairs 81\n
@@ -182,9 +185,12 b' SSH banner is not printed by default, ig'
182 remote: banner: line 7
185 remote: banner: line 7
183 remote: banner: line 8
186 remote: banner: line 8
184 remote: banner: line 9
187 remote: banner: line 9
185 remote: 403
188 remote: 413
186 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
189 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
187 remote: 1
190 remote: 1
191 devel-peer-request: protocaps
192 devel-peer-request: caps: * bytes (glob)
193 sending protocaps command
188 url: ssh://user@dummy/server
194 url: ssh://user@dummy/server
189 local: no
195 local: no
190 pushable: yes
196 pushable: yes
@@ -237,9 +243,9 b' And test the banner with the raw protoco'
237 o> readline() -> 15:
243 o> readline() -> 15:
238 o> banner: line 9\n
244 o> banner: line 9\n
239 o> readline() -> 4:
245 o> readline() -> 4:
240 o> 403\n
246 o> 413\n
241 o> readline() -> 403:
247 o> readline() -> 413:
242 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
248 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
243 i> write(98) -> 98:
249 i> write(98) -> 98:
244 i> between\n
250 i> between\n
245 i> pairs 81\n
251 i> pairs 81\n
@@ -290,13 +296,13 b' Sending an unknown command to the server'
290 i> write(6) -> 6:
296 i> write(6) -> 6:
291 i> hello\n
297 i> hello\n
292 o> readline() -> 4:
298 o> readline() -> 4:
293 o> 403\n
299 o> 413\n
294 i> write(98) -> 98:
300 i> write(98) -> 98:
295 i> between\n
301 i> between\n
296 i> pairs 81\n
302 i> pairs 81\n
297 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
303 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
298 o> readline() -> 403:
304 o> readline() -> 413:
299 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
305 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
300 o> readline() -> 2:
306 o> readline() -> 2:
301 o> 1\n
307 o> 1\n
302
308
@@ -310,9 +316,12 b' Sending an unknown command to the server'
310 devel-peer-request: pairs: 81 bytes
316 devel-peer-request: pairs: 81 bytes
311 sending between command
317 sending between command
312 remote: 0
318 remote: 0
313 remote: 403
319 remote: 413
314 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
320 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
315 remote: 1
321 remote: 1
322 devel-peer-request: protocaps
323 devel-peer-request: caps: * bytes (glob)
324 sending protocaps command
316 url: ssh://user@dummy/server
325 url: ssh://user@dummy/server
317 local: no
326 local: no
318 pushable: yes
327 pushable: yes
@@ -356,9 +365,9 b' Send multiple unknown commands before he'
356 i> write(6) -> 6:
365 i> write(6) -> 6:
357 i> hello\n
366 i> hello\n
358 o> readline() -> 4:
367 o> readline() -> 4:
359 o> 403\n
368 o> 413\n
360 o> readline() -> 403:
369 o> readline() -> 413:
361 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
370 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
362 i> write(98) -> 98:
371 i> write(98) -> 98:
363 i> between\n
372 i> between\n
364 i> pairs 81\n
373 i> pairs 81\n
@@ -382,9 +391,12 b' Send multiple unknown commands before he'
382 remote: 0
391 remote: 0
383 remote: 0
392 remote: 0
384 remote: 0
393 remote: 0
385 remote: 403
394 remote: 413
386 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
395 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
387 remote: 1
396 remote: 1
397 devel-peer-request: protocaps
398 devel-peer-request: caps: * bytes (glob)
399 sending protocaps command
388 url: ssh://user@dummy/server
400 url: ssh://user@dummy/server
389 local: no
401 local: no
390 pushable: yes
402 pushable: yes
@@ -436,9 +448,9 b' Send an unknown command before hello tha'
436 i> write(6) -> 6:
448 i> write(6) -> 6:
437 i> hello\n
449 i> hello\n
438 o> readline() -> 4:
450 o> readline() -> 4:
439 o> 403\n
451 o> 413\n
440 o> readline() -> 403:
452 o> readline() -> 413:
441 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
453 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
442 i> write(98) -> 98:
454 i> write(98) -> 98:
443 i> between\n
455 i> between\n
444 i> pairs 81\n
456 i> pairs 81\n
@@ -483,9 +495,9 b' Send an unknown command having an argume'
483 i> write(6) -> 6:
495 i> write(6) -> 6:
484 i> hello\n
496 i> hello\n
485 o> readline() -> 4:
497 o> readline() -> 4:
486 o> 403\n
498 o> 413\n
487 o> readline() -> 403:
499 o> readline() -> 413:
488 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
500 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
489 i> write(98) -> 98:
501 i> write(98) -> 98:
490 i> between\n
502 i> between\n
491 i> pairs 81\n
503 i> pairs 81\n
@@ -528,9 +540,9 b' Send an unknown command having an argume'
528 i> write(6) -> 6:
540 i> write(6) -> 6:
529 i> hello\n
541 i> hello\n
530 o> readline() -> 4:
542 o> readline() -> 4:
531 o> 403\n
543 o> 413\n
532 o> readline() -> 403:
544 o> readline() -> 413:
533 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
545 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
534 i> write(98) -> 98:
546 i> write(98) -> 98:
535 i> between\n
547 i> between\n
536 i> pairs 81\n
548 i> pairs 81\n
@@ -598,9 +610,9 b' Dictionary value for unknown command'
598 i> write(6) -> 6:
610 i> write(6) -> 6:
599 i> hello\n
611 i> hello\n
600 o> readline() -> 4:
612 o> readline() -> 4:
601 o> 403\n
613 o> 413\n
602 o> readline() -> 403:
614 o> readline() -> 413:
603 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
615 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
604
616
605 Incomplete dictionary send
617 Incomplete dictionary send
606
618
@@ -680,9 +692,9 b' Send a command line with spaces'
680 i> write(6) -> 6:
692 i> write(6) -> 6:
681 i> hello\n
693 i> hello\n
682 o> readline() -> 4:
694 o> readline() -> 4:
683 o> 403\n
695 o> 413\n
684 o> readline() -> 403:
696 o> readline() -> 413:
685 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
697 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
686 i> write(98) -> 98:
698 i> write(98) -> 98:
687 i> between\n
699 i> between\n
688 i> pairs 81\n
700 i> pairs 81\n
@@ -714,9 +726,9 b' Send a command line with spaces'
714 i> write(6) -> 6:
726 i> write(6) -> 6:
715 i> hello\n
727 i> hello\n
716 o> readline() -> 4:
728 o> readline() -> 4:
717 o> 403\n
729 o> 413\n
718 o> readline() -> 403:
730 o> readline() -> 413:
719 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
731 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
720 i> write(98) -> 98:
732 i> write(98) -> 98:
721 i> between\n
733 i> between\n
722 i> pairs 81\n
734 i> pairs 81\n
@@ -757,9 +769,9 b' Send a command line with spaces'
757 i> write(6) -> 6:
769 i> write(6) -> 6:
758 i> hello\n
770 i> hello\n
759 o> readline() -> 4:
771 o> readline() -> 4:
760 o> 403\n
772 o> 413\n
761 o> readline() -> 403:
773 o> readline() -> 413:
762 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
774 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
763 i> write(98) -> 98:
775 i> write(98) -> 98:
764 i> between\n
776 i> between\n
765 i> pairs 81\n
777 i> pairs 81\n
@@ -786,9 +798,9 b' Send an unknown command after the "betwe'
786 i> write(6) -> 6:
798 i> write(6) -> 6:
787 i> hello\n
799 i> hello\n
788 o> readline() -> 4:
800 o> readline() -> 4:
789 o> 403\n
801 o> 413\n
790 o> readline() -> 403:
802 o> readline() -> 413:
791 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
803 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
792 i> write(105) -> 105:
804 i> write(105) -> 105:
793 i> between\n
805 i> between\n
794 i> pairs 81\n
806 i> pairs 81\n
@@ -827,9 +839,9 b' And one with arguments'
827 i> pairs 81\n
839 i> pairs 81\n
828 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
840 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
829 o> readline() -> 4:
841 o> readline() -> 4:
830 o> 403\n
842 o> 413\n
831 o> readline() -> 403:
843 o> readline() -> 413:
832 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
844 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
833 o> readline() -> 2:
845 o> readline() -> 2:
834 o> 1\n
846 o> 1\n
835 o> readline() -> 1:
847 o> readline() -> 1:
@@ -876,9 +888,9 b' Send a valid command before the handshak'
876 o> readline() -> 41:
888 o> readline() -> 41:
877 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
889 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
878 o> readline() -> 4:
890 o> readline() -> 4:
879 o> 403\n
891 o> 413\n
880 o> readline() -> 403:
892 o> readline() -> 413:
881 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
893 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
882 o> readline() -> 2:
894 o> readline() -> 2:
883 o> 1\n
895 o> 1\n
884
896
@@ -903,7 +915,7 b" And a variation that doesn't send the be"
903 o> readline() -> 41:
915 o> readline() -> 41:
904 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
916 o> 68986213bd4485ea51533535e3fc9e78007a711f\n
905 o> readline() -> 4:
917 o> readline() -> 4:
906 o> 403\n
918 o> 413\n
907
919
908 Send an upgrade request to a server that doesn't support that command
920 Send an upgrade request to a server that doesn't support that command
909
921
@@ -932,9 +944,9 b' Send an upgrade request to a server that'
932 i> pairs 81\n
944 i> pairs 81\n
933 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
945 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
934 o> readline() -> 4:
946 o> readline() -> 4:
935 o> 403\n
947 o> 413\n
936 o> readline() -> 403:
948 o> readline() -> 413:
937 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
949 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
938 o> readline() -> 2:
950 o> readline() -> 2:
939 o> 1\n
951 o> 1\n
940 o> readline() -> 1:
952 o> readline() -> 1:
@@ -952,9 +964,12 b' Send an upgrade request to a server that'
952 devel-peer-request: pairs: 81 bytes
964 devel-peer-request: pairs: 81 bytes
953 sending between command
965 sending between command
954 remote: 0
966 remote: 0
955 remote: 403
967 remote: 413
956 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
968 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
957 remote: 1
969 remote: 1
970 devel-peer-request: protocaps
971 devel-peer-request: caps: * bytes (glob)
972 sending protocaps command
958 url: ssh://user@dummy/server
973 url: ssh://user@dummy/server
959 local: no
974 local: no
960 pushable: yes
975 pushable: yes
@@ -992,9 +1007,9 b' Send an upgrade request to a server that'
992 o> readline() -> 44:
1007 o> readline() -> 44:
993 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1008 o> upgraded this-is-some-token exp-ssh-v2-0001\n
994 o> readline() -> 4:
1009 o> readline() -> 4:
995 o> 402\n
1010 o> 412\n
996 o> readline() -> 403:
1011 o> readline() -> 413:
997 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1012 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
998
1013
999 $ cd ..
1014 $ cd ..
1000
1015
@@ -1008,7 +1023,10 b' Send an upgrade request to a server that'
1008 devel-peer-request: pairs: 81 bytes
1023 devel-peer-request: pairs: 81 bytes
1009 sending between command
1024 sending between command
1010 protocol upgraded to exp-ssh-v2-0001
1025 protocol upgraded to exp-ssh-v2-0001
1011 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1026 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1027 devel-peer-request: protocaps
1028 devel-peer-request: caps: * bytes (glob)
1029 sending protocaps command
1012 url: ssh://user@dummy/server
1030 url: ssh://user@dummy/server
1013 local: no
1031 local: no
1014 pushable: yes
1032 pushable: yes
@@ -1025,7 +1043,10 b' Verify the peer has capabilities'
1025 devel-peer-request: pairs: 81 bytes
1043 devel-peer-request: pairs: 81 bytes
1026 sending between command
1044 sending between command
1027 protocol upgraded to exp-ssh-v2-0001
1045 protocol upgraded to exp-ssh-v2-0001
1028 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1046 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1047 devel-peer-request: protocaps
1048 devel-peer-request: caps: * bytes (glob)
1049 sending protocaps command
1029 Main capabilities:
1050 Main capabilities:
1030 batch
1051 batch
1031 branchmap
1052 branchmap
@@ -1034,6 +1055,7 b' Verify the peer has capabilities'
1034 getbundle
1055 getbundle
1035 known
1056 known
1036 lookup
1057 lookup
1058 protocaps
1037 pushkey
1059 pushkey
1038 streamreqs=generaldelta,revlogv1
1060 streamreqs=generaldelta,revlogv1
1039 unbundle=HG10GZ,HG10BZ,HG10UN
1061 unbundle=HG10GZ,HG10BZ,HG10UN
@@ -1092,9 +1114,9 b' Command after upgrade to version 2 is pr'
1092 o> readline() -> 44:
1114 o> readline() -> 44:
1093 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1115 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1094 o> readline() -> 4:
1116 o> readline() -> 4:
1095 o> 402\n
1117 o> 412\n
1096 o> readline() -> 403:
1118 o> readline() -> 413:
1097 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1119 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1098 i> write(6) -> 6:
1120 i> write(6) -> 6:
1099 i> hello\n
1121 i> hello\n
1100 o> readline() -> 4:
1122 o> readline() -> 4:
@@ -1130,9 +1152,9 b' Multiple upgrades is not allowed'
1130 o> readline() -> 44:
1152 o> readline() -> 44:
1131 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1153 o> upgraded this-is-some-token exp-ssh-v2-0001\n
1132 o> readline() -> 4:
1154 o> readline() -> 4:
1133 o> 402\n
1155 o> 412\n
1134 o> readline() -> 403:
1156 o> readline() -> 413:
1135 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1157 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1136 i> write(45) -> 45:
1158 i> write(45) -> 45:
1137 i> upgrade another-token proto=irrelevant\n
1159 i> upgrade another-token proto=irrelevant\n
1138 i> hello\n
1160 i> hello\n
@@ -1203,9 +1225,9 b' Upgrade request to unsupported protocol '
1203 i> write(6) -> 6:
1225 i> write(6) -> 6:
1204 i> hello\n
1226 i> hello\n
1205 o> readline() -> 4:
1227 o> readline() -> 4:
1206 o> 403\n
1228 o> 413\n
1207 o> readline() -> 403:
1229 o> readline() -> 413:
1208 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1230 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1209 i> write(98) -> 98:
1231 i> write(98) -> 98:
1210 i> between\n
1232 i> between\n
1211 i> pairs 81\n
1233 i> pairs 81\n
@@ -1325,9 +1347,9 b' Test listkeys for listing namespaces'
1325 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1347 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1326 i> flush() -> None
1348 i> flush() -> None
1327 o> readline() -> 4:
1349 o> readline() -> 4:
1328 o> 403\n
1350 o> 413\n
1329 o> readline() -> 403:
1351 o> readline() -> 413:
1330 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1352 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1331 o> readline() -> 2:
1353 o> readline() -> 2:
1332 o> 1\n
1354 o> 1\n
1333 o> readline() -> 1:
1355 o> readline() -> 1:
@@ -1359,8 +1381,8 b' Test listkeys for listing namespaces'
1359 o> readline() -> 62:
1381 o> readline() -> 62:
1360 o> upgraded * exp-ssh-v2-0001\n (glob)
1382 o> upgraded * exp-ssh-v2-0001\n (glob)
1361 o> readline() -> 4:
1383 o> readline() -> 4:
1362 o> 402\n
1384 o> 412\n
1363 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1385 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1364 o> read(1) -> 1:
1386 o> read(1) -> 1:
1365 o> \n
1387 o> \n
1366 sending listkeys command
1388 sending listkeys command
@@ -1405,9 +1427,9 b' With no bookmarks set'
1405 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1427 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1406 i> flush() -> None
1428 i> flush() -> None
1407 o> readline() -> 4:
1429 o> readline() -> 4:
1408 o> 403\n
1430 o> 413\n
1409 o> readline() -> 403:
1431 o> readline() -> 413:
1410 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1432 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1411 o> readline() -> 2:
1433 o> readline() -> 2:
1412 o> 1\n
1434 o> 1\n
1413 o> readline() -> 1:
1435 o> readline() -> 1:
@@ -1435,8 +1457,8 b' With no bookmarks set'
1435 o> readline() -> 62:
1457 o> readline() -> 62:
1436 o> upgraded * exp-ssh-v2-0001\n (glob)
1458 o> upgraded * exp-ssh-v2-0001\n (glob)
1437 o> readline() -> 4:
1459 o> readline() -> 4:
1438 o> 402\n
1460 o> 412\n
1439 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1461 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1440 o> read(1) -> 1:
1462 o> read(1) -> 1:
1441 o> \n
1463 o> \n
1442 sending listkeys command
1464 sending listkeys command
@@ -1466,9 +1488,9 b' With a single bookmark set'
1466 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1488 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1467 i> flush() -> None
1489 i> flush() -> None
1468 o> readline() -> 4:
1490 o> readline() -> 4:
1469 o> 403\n
1491 o> 413\n
1470 o> readline() -> 403:
1492 o> readline() -> 413:
1471 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1493 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1472 o> readline() -> 2:
1494 o> readline() -> 2:
1473 o> 1\n
1495 o> 1\n
1474 o> readline() -> 1:
1496 o> readline() -> 1:
@@ -1497,8 +1519,8 b' With a single bookmark set'
1497 o> readline() -> 62:
1519 o> readline() -> 62:
1498 o> upgraded * exp-ssh-v2-0001\n (glob)
1520 o> upgraded * exp-ssh-v2-0001\n (glob)
1499 o> readline() -> 4:
1521 o> readline() -> 4:
1500 o> 402\n
1522 o> 412\n
1501 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1523 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1502 o> read(1) -> 1:
1524 o> read(1) -> 1:
1503 o> \n
1525 o> \n
1504 sending listkeys command
1526 sending listkeys command
@@ -1529,9 +1551,9 b' With multiple bookmarks set'
1529 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1551 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1530 i> flush() -> None
1552 i> flush() -> None
1531 o> readline() -> 4:
1553 o> readline() -> 4:
1532 o> 403\n
1554 o> 413\n
1533 o> readline() -> 403:
1555 o> readline() -> 413:
1534 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1556 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1535 o> readline() -> 2:
1557 o> readline() -> 2:
1536 o> 1\n
1558 o> 1\n
1537 o> readline() -> 1:
1559 o> readline() -> 1:
@@ -1562,8 +1584,8 b' With multiple bookmarks set'
1562 o> readline() -> 62:
1584 o> readline() -> 62:
1563 o> upgraded * exp-ssh-v2-0001\n (glob)
1585 o> upgraded * exp-ssh-v2-0001\n (glob)
1564 o> readline() -> 4:
1586 o> readline() -> 4:
1565 o> 402\n
1587 o> 412\n
1566 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1588 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1567 o> read(1) -> 1:
1589 o> read(1) -> 1:
1568 o> \n
1590 o> \n
1569 sending listkeys command
1591 sending listkeys command
@@ -1598,9 +1620,9 b' Test pushkey for bookmarks'
1598 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1620 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1599 i> flush() -> None
1621 i> flush() -> None
1600 o> readline() -> 4:
1622 o> readline() -> 4:
1601 o> 403\n
1623 o> 413\n
1602 o> readline() -> 403:
1624 o> readline() -> 413:
1603 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1625 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1604 o> readline() -> 2:
1626 o> readline() -> 2:
1605 o> 1\n
1627 o> 1\n
1606 o> readline() -> 1:
1628 o> readline() -> 1:
@@ -1638,8 +1660,8 b' Test pushkey for bookmarks'
1638 o> readline() -> 62:
1660 o> readline() -> 62:
1639 o> upgraded * exp-ssh-v2-0001\n (glob)
1661 o> upgraded * exp-ssh-v2-0001\n (glob)
1640 o> readline() -> 4:
1662 o> readline() -> 4:
1641 o> 402\n
1663 o> 412\n
1642 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1664 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1643 o> read(1) -> 1:
1665 o> read(1) -> 1:
1644 o> \n
1666 o> \n
1645 sending pushkey command
1667 sending pushkey command
@@ -1690,9 +1712,9 b' Phases on empty repo'
1690 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1712 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1691 i> flush() -> None
1713 i> flush() -> None
1692 o> readline() -> 4:
1714 o> readline() -> 4:
1693 o> 403\n
1715 o> 413\n
1694 o> readline() -> 403:
1716 o> readline() -> 413:
1695 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1717 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1696 o> readline() -> 2:
1718 o> readline() -> 2:
1697 o> 1\n
1719 o> 1\n
1698 o> readline() -> 1:
1720 o> readline() -> 1:
@@ -1721,8 +1743,8 b' Phases on empty repo'
1721 o> readline() -> 62:
1743 o> readline() -> 62:
1722 o> upgraded * exp-ssh-v2-0001\n (glob)
1744 o> upgraded * exp-ssh-v2-0001\n (glob)
1723 o> readline() -> 4:
1745 o> readline() -> 4:
1724 o> 402\n
1746 o> 412\n
1725 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1747 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1726 o> read(1) -> 1:
1748 o> read(1) -> 1:
1727 o> \n
1749 o> \n
1728 sending listkeys command
1750 sending listkeys command
@@ -1769,9 +1791,9 b' Two draft heads'
1769 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1791 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1770 i> flush() -> None
1792 i> flush() -> None
1771 o> readline() -> 4:
1793 o> readline() -> 4:
1772 o> 403\n
1794 o> 413\n
1773 o> readline() -> 403:
1795 o> readline() -> 413:
1774 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1796 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1775 o> readline() -> 2:
1797 o> readline() -> 2:
1776 o> 1\n
1798 o> 1\n
1777 o> readline() -> 1:
1799 o> readline() -> 1:
@@ -1803,8 +1825,8 b' Two draft heads'
1803 o> readline() -> 62:
1825 o> readline() -> 62:
1804 o> upgraded * exp-ssh-v2-0001\n (glob)
1826 o> upgraded * exp-ssh-v2-0001\n (glob)
1805 o> readline() -> 4:
1827 o> readline() -> 4:
1806 o> 402\n
1828 o> 412\n
1807 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1829 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1808 o> read(1) -> 1:
1830 o> read(1) -> 1:
1809 o> \n
1831 o> \n
1810 sending listkeys command
1832 sending listkeys command
@@ -1838,9 +1860,9 b' Single draft head'
1838 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1860 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1839 i> flush() -> None
1861 i> flush() -> None
1840 o> readline() -> 4:
1862 o> readline() -> 4:
1841 o> 403\n
1863 o> 413\n
1842 o> readline() -> 403:
1864 o> readline() -> 413:
1843 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1865 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1844 o> readline() -> 2:
1866 o> readline() -> 2:
1845 o> 1\n
1867 o> 1\n
1846 o> readline() -> 1:
1868 o> readline() -> 1:
@@ -1871,8 +1893,8 b' Single draft head'
1871 o> readline() -> 62:
1893 o> readline() -> 62:
1872 o> upgraded * exp-ssh-v2-0001\n (glob)
1894 o> upgraded * exp-ssh-v2-0001\n (glob)
1873 o> readline() -> 4:
1895 o> readline() -> 4:
1874 o> 402\n
1896 o> 412\n
1875 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1897 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1876 o> read(1) -> 1:
1898 o> read(1) -> 1:
1877 o> \n
1899 o> \n
1878 sending listkeys command
1900 sending listkeys command
@@ -1905,9 +1927,9 b' All public heads'
1905 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1927 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1906 i> flush() -> None
1928 i> flush() -> None
1907 o> readline() -> 4:
1929 o> readline() -> 4:
1908 o> 403\n
1930 o> 413\n
1909 o> readline() -> 403:
1931 o> readline() -> 413:
1910 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1932 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1911 o> readline() -> 2:
1933 o> readline() -> 2:
1912 o> 1\n
1934 o> 1\n
1913 o> readline() -> 1:
1935 o> readline() -> 1:
@@ -1936,8 +1958,8 b' All public heads'
1936 o> readline() -> 62:
1958 o> readline() -> 62:
1937 o> upgraded * exp-ssh-v2-0001\n (glob)
1959 o> upgraded * exp-ssh-v2-0001\n (glob)
1938 o> readline() -> 4:
1960 o> readline() -> 4:
1939 o> 402\n
1961 o> 412\n
1940 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
1962 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
1941 o> read(1) -> 1:
1963 o> read(1) -> 1:
1942 o> \n
1964 o> \n
1943 sending listkeys command
1965 sending listkeys command
@@ -1972,9 +1994,9 b' Setting public phase via pushkey'
1972 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1994 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1973 i> flush() -> None
1995 i> flush() -> None
1974 o> readline() -> 4:
1996 o> readline() -> 4:
1975 o> 403\n
1997 o> 413\n
1976 o> readline() -> 403:
1998 o> readline() -> 413:
1977 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
1999 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
1978 o> readline() -> 2:
2000 o> readline() -> 2:
1979 o> 1\n
2001 o> 1\n
1980 o> readline() -> 1:
2002 o> readline() -> 1:
@@ -2013,8 +2035,8 b' Setting public phase via pushkey'
2013 o> readline() -> 62:
2035 o> readline() -> 62:
2014 o> upgraded * exp-ssh-v2-0001\n (glob)
2036 o> upgraded * exp-ssh-v2-0001\n (glob)
2015 o> readline() -> 4:
2037 o> readline() -> 4:
2016 o> 402\n
2038 o> 412\n
2017 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
2039 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
2018 o> read(1) -> 1:
2040 o> read(1) -> 1:
2019 o> \n
2041 o> \n
2020 sending pushkey command
2042 sending pushkey command
@@ -2079,9 +2101,9 b' Test batching of requests'
2079 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
2101 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
2080 i> flush() -> None
2102 i> flush() -> None
2081 o> readline() -> 4:
2103 o> readline() -> 4:
2082 o> 403\n
2104 o> 413\n
2083 o> readline() -> 403:
2105 o> readline() -> 413:
2084 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
2106 o> capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
2085 o> readline() -> 2:
2107 o> readline() -> 2:
2086 o> 1\n
2108 o> 1\n
2087 o> readline() -> 1:
2109 o> readline() -> 1:
@@ -2119,8 +2141,8 b' Test batching of requests'
2119 o> readline() -> 62:
2141 o> readline() -> 62:
2120 o> upgraded * exp-ssh-v2-0001\n (glob)
2142 o> upgraded * exp-ssh-v2-0001\n (glob)
2121 o> readline() -> 4:
2143 o> readline() -> 4:
2122 o> 402\n
2144 o> 412\n
2123 o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
2145 o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
2124 o> read(1) -> 1:
2146 o> read(1) -> 1:
2125 o> \n
2147 o> \n
2126 sending batch with 3 sub-commands
2148 sending batch with 3 sub-commands
@@ -495,10 +495,13 b' debug output'
495 devel-peer-request: between
495 devel-peer-request: between
496 devel-peer-request: pairs: 81 bytes
496 devel-peer-request: pairs: 81 bytes
497 sending between command
497 sending between command
498 remote: 403 (sshv1 !)
498 remote: 413 (sshv1 !)
499 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
499 protocol upgraded to exp-ssh-v2-0001 (sshv2 !)
500 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
500 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
501 remote: 1 (sshv1 !)
501 remote: 1 (sshv1 !)
502 devel-peer-request: protocaps
503 devel-peer-request: caps: * bytes (glob)
504 sending protocaps command
502 query 1; heads
505 query 1; heads
503 devel-peer-request: batched-content
506 devel-peer-request: batched-content
504 devel-peer-request: - heads (0 arguments)
507 devel-peer-request: - heads (0 arguments)
General Comments 0
You need to be logged in to leave comments. Login now