Mercurial > hg
comparison mercurial/help/config.txt @ 30762:35b516f800e0
wireproto: advertise supported media types and compression formats
This commit introduces support for advertising a server's support for
media types and compression formats in accordance with the spec defined
in internals.wireproto.
The bulk of the new code is a helper function in wireproto.py to
obtain a prioritized list of compression engines available to the
wire protocol. While not utilized yet, we implement support
for obtaining the list of compression engines advertised by the
client.
The upcoming HTTP protocol enhancements are a bit lower-level than
existing tests (most existing tests are command centric). So,
this commit establishes a new test file that will be appropriate
for holding tests around the functionality of the HTTP protocol
itself.
Rounding out this change, `hg debuginstall` now prints compression
engines available to the server.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 24 Dec 2016 15:21:46 -0700 |
parents | 0499da0d5a06 |
children | e75463e3179f |
comparison
equal
deleted
inserted
replaced
30761:7283719e2bfd | 30762:35b516f800e0 |
---|---|
1543 ``server`` | 1543 ``server`` |
1544 ---------- | 1544 ---------- |
1545 | 1545 |
1546 Controls generic server settings. | 1546 Controls generic server settings. |
1547 | 1547 |
1548 ``compressionengines`` | |
1549 List of compression engines and their relative priority to advertise | |
1550 to clients. | |
1551 | |
1552 The order of compression engines determines their priority, the first | |
1553 having the highest priority. If a compression engine is not listed | |
1554 here, it won't be advertised to clients. | |
1555 | |
1556 If not set (the default), built-in defaults are used. Run | |
1557 :hg:`debuginstall` to list available compression engines and their | |
1558 default wire protocol priority. | |
1559 | |
1560 Older Mercurial clients only support zlib compression and this setting | |
1561 has no effect for legacy clients. | |
1562 | |
1548 ``uncompressed`` | 1563 ``uncompressed`` |
1549 Whether to allow clients to clone a repository using the | 1564 Whether to allow clients to clone a repository using the |
1550 uncompressed streaming protocol. This transfers about 40% more | 1565 uncompressed streaming protocol. This transfers about 40% more |
1551 data than a regular clone, but uses less memory and CPU on both | 1566 data than a regular clone, but uses less memory and CPU on both |
1552 server and client. Over a LAN (100 Mbps or better) or a very fast | 1567 server and client. Over a LAN (100 Mbps or better) or a very fast |