Otherwise the CBOR encoder fails on Python 3 due to lacking support
for encoding str/unicode.
- skip-blame just some b'' prefixes
hg-reviewers |
Otherwise the CBOR encoder fails on Python 3 due to lacking support
for encoding str/unicode.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | ||||
] | ] | ||||
Requesting multiple revisions works | Requesting multiple revisions works | ||||
(first revision is a fulltext since haveparents=False by default) | (first revision is a fulltext since haveparents=False by default) | ||||
$ sendhttpv2peer << EOF | $ sendhttpv2peer << EOF | ||||
> command filedata | > command filedata | ||||
> nodes eval:['\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda', '\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc'] | > nodes eval:[b'\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda', b'\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc'] | ||||
> path eval:b'a' | > path eval:b'a' | ||||
> fields eval:[b'revision'] | > fields eval:[b'revision'] | ||||
> EOF | > EOF | ||||
creating http peer for wire protocol version 2 | creating http peer for wire protocol version 2 | ||||
sending filedata command | sending filedata command | ||||
s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | ||||
s> Accept-Encoding: identity\r\n | s> Accept-Encoding: identity\r\n | ||||
s> accept: application/mercurial-exp-framing-0005\r\n | s> accept: application/mercurial-exp-framing-0005\r\n | ||||
}, | }, | ||||
b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | ||||
] | ] | ||||
Revisions are sorted by DAG order, parents first | Revisions are sorted by DAG order, parents first | ||||
$ sendhttpv2peer << EOF | $ sendhttpv2peer << EOF | ||||
> command filedata | > command filedata | ||||
> nodes eval:['\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc', '\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda'] | > nodes eval:[b'\x9a\x38\x12\x29\x97\xb3\xac\x97\xbe\x2a\x9a\xa2\xe5\x56\x83\x83\x41\xfd\xf2\xcc', b'\x2b\x4e\xb0\x73\x19\xbf\xa0\x77\xa4\x0a\x2f\x04\x91\x36\x59\xae\xf0\xda\x42\xda'] | ||||
> path eval:b'a' | > path eval:b'a' | ||||
> fields eval:[b'revision'] | > fields eval:[b'revision'] | ||||
> EOF | > EOF | ||||
creating http peer for wire protocol version 2 | creating http peer for wire protocol version 2 | ||||
sending filedata command | sending filedata command | ||||
s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | ||||
s> Accept-Encoding: identity\r\n | s> Accept-Encoding: identity\r\n | ||||
s> accept: application/mercurial-exp-framing-0005\r\n | s> accept: application/mercurial-exp-framing-0005\r\n | ||||
}, | }, | ||||
b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | b'\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x03a1\n' | ||||
] | ] | ||||
Requesting parents and revision data works | Requesting parents and revision data works | ||||
$ sendhttpv2peer << EOF | $ sendhttpv2peer << EOF | ||||
> command filedata | > command filedata | ||||
> nodes eval:['\x08\x79\x34\x5e\x39\x37\x72\x29\x63\x4b\x42\x0c\x63\x94\x54\x15\x67\x26\xc6\xb6'] | > nodes eval:[b'\x08\x79\x34\x5e\x39\x37\x72\x29\x63\x4b\x42\x0c\x63\x94\x54\x15\x67\x26\xc6\xb6'] | ||||
> path eval:b'a' | > path eval:b'a' | ||||
> fields eval:[b'parents', b'revision'] | > fields eval:[b'parents', b'revision'] | ||||
> EOF | > EOF | ||||
creating http peer for wire protocol version 2 | creating http peer for wire protocol version 2 | ||||
sending filedata command | sending filedata command | ||||
s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n | ||||
s> Accept-Encoding: identity\r\n | s> Accept-Encoding: identity\r\n | ||||
s> accept: application/mercurial-exp-framing-0005\r\n | s> accept: application/mercurial-exp-framing-0005\r\n |