Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/wireprototypes.py @ 40328:2c55716f8a1c
wireprotov2: add response type that serializes to indefinite length bytestring
This will be needed in a future patch.
Differential Revision: https://phab.mercurial-scm.org/D5133
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 16 Oct 2018 21:35:33 +0200 |
parents | 41263df08109 |
children | 440f5b65be57 |
comparison
equal
deleted
inserted
replaced
40327:55836a34f41b | 40328:2c55716f8a1c |
---|---|
387 size = attr.ib(default=None) | 387 size = attr.ib(default=None) |
388 fullhashes = attr.ib(default=None) | 388 fullhashes = attr.ib(default=None) |
389 fullhashseed = attr.ib(default=None) | 389 fullhashseed = attr.ib(default=None) |
390 serverdercerts = attr.ib(default=None) | 390 serverdercerts = attr.ib(default=None) |
391 servercadercerts = attr.ib(default=None) | 391 servercadercerts = attr.ib(default=None) |
392 | |
393 @attr.s | |
394 class indefinitebytestringresponse(object): | |
395 """Represents an object to be encoded to an indefinite length bytestring. | |
396 | |
397 Instances are initialized from an iterable of chunks, with each chunk being | |
398 a bytes instance. | |
399 """ | |
400 chunks = attr.ib() |