Mercurial > hg
comparison tests/test-wireproto-command-heads.t @ 37724:deff7cf7eefd
wireprotov2: change frame type and name for command response
There was hole at frame type value 3. And the frame is better
named as a command response.
Differential Revision: https://phab.mercurial-scm.org/D3384
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 14 Apr 2018 14:37:23 -0700 |
parents | 89a16704114c |
children | 3ea8323d6f95 |
comparison
equal
deleted
inserted
replaced
37723:e8fba6d578f0 | 37724:deff7cf7eefd |
---|---|
50 s> Date: $HTTP_DATE$\r\n | 50 s> Date: $HTTP_DATE$\r\n |
51 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 51 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
52 s> Transfer-Encoding: chunked\r\n | 52 s> Transfer-Encoding: chunked\r\n |
53 s> \r\n | 53 s> \r\n |
54 s> 48\r\n | 54 s> 48\r\n |
55 s> @\x00\x00\x01\x00\x02\x01B | 55 s> @\x00\x00\x01\x00\x02\x012 |
56 s> \x83T\x1dok\x91\xd4J\xab\xa6\xd5\xe5\x80\xbc0\xa9\x94\x850\xdb\xe0\x0bT\xaeI.6\xb0\xc83\x9f\xfa\xf3(\xd0\x0b\x85\xb4R]\xe1\x16^T)Dm-\xc5A\x9c_\x97Dz\x8b\xc0b\xe4\xcc2\x8b\xf2A | 56 s> \x83T\x1dok\x91\xd4J\xab\xa6\xd5\xe5\x80\xbc0\xa9\x94\x850\xdb\xe0\x0bT\xaeI.6\xb0\xc83\x9f\xfa\xf3(\xd0\x0b\x85\xb4R]\xe1\x16^T)Dm-\xc5A\x9c_\x97Dz\x8b\xc0b\xe4\xcc2\x8b\xf2A |
57 s> \r\n | 57 s> \r\n |
58 received frame(size=64; request=1; stream=2; streamflags=stream-begin; type=bytes-response; flags=eos) | 58 received frame(size=64; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=eos) |
59 s> 0\r\n | 59 s> 0\r\n |
60 s> \r\n | 60 s> \r\n |
61 response: [b'\x1dok\x91\xd4J\xab\xa6\xd5\xe5\x80\xbc0\xa9\x94\x850\xdb\xe0\x0b', b'\xaeI.6\xb0\xc83\x9f\xfa\xf3(\xd0\x0b\x85\xb4R]\xe1\x16^', b')Dm-\xc5A\x9c_\x97Dz\x8b\xc0b\xe4\xcc2\x8b\xf2A'] | 61 response: [b'\x1dok\x91\xd4J\xab\xa6\xd5\xe5\x80\xbc0\xa9\x94\x850\xdb\xe0\x0b', b'\xaeI.6\xb0\xc83\x9f\xfa\xf3(\xd0\x0b\x85\xb4R]\xe1\x16^', b')Dm-\xc5A\x9c_\x97Dz\x8b\xc0b\xe4\xcc2\x8b\xf2A'] |
62 | 62 |
63 Requesting just the public heads works | 63 Requesting just the public heads works |
83 s> Date: $HTTP_DATE$\r\n | 83 s> Date: $HTTP_DATE$\r\n |
84 s> Content-Type: application/mercurial-exp-framing-0004\r\n | 84 s> Content-Type: application/mercurial-exp-framing-0004\r\n |
85 s> Transfer-Encoding: chunked\r\n | 85 s> Transfer-Encoding: chunked\r\n |
86 s> \r\n | 86 s> \r\n |
87 s> 1e\r\n | 87 s> 1e\r\n |
88 s> \x16\x00\x00\x01\x00\x02\x01B | 88 s> \x16\x00\x00\x01\x00\x02\x012 |
89 s> \x81Tx\xd2\xdc\xa46\xb2\xf5\xb1\x88\xac&~)\xb8\x1e\x07&m8\xfc | 89 s> \x81Tx\xd2\xdc\xa46\xb2\xf5\xb1\x88\xac&~)\xb8\x1e\x07&m8\xfc |
90 s> \r\n | 90 s> \r\n |
91 received frame(size=22; request=1; stream=2; streamflags=stream-begin; type=bytes-response; flags=eos) | 91 received frame(size=22; request=1; stream=2; streamflags=stream-begin; type=command-response; flags=eos) |
92 s> 0\r\n | 92 s> 0\r\n |
93 s> \r\n | 93 s> \r\n |
94 response: [b'x\xd2\xdc\xa46\xb2\xf5\xb1\x88\xac&~)\xb8\x1e\x07&m8\xfc'] | 94 response: [b'x\xd2\xdc\xa46\xb2\xf5\xb1\x88\xac&~)\xb8\x1e\x07&m8\xfc'] |
95 | 95 |
96 $ cat error.log | 96 $ cat error.log |