comparison mercurial/configitems.py @ 40172:30f70d11c224

wireprotov2: advertise recommended batch size for requests Currently, exchangev2 hardcodes the batch size for how many revisions to fetch per command request. A single value is not appropriate for every repository because some repositories may have a drastically different "shape" from other repositories. e.g. a repo with lots of small files may benefit from larger batch sizes than a repo with lots of large files. And depending on caching used by the server, the server may wish to control the number of commands (to e.g. mitigate overhead of following content redirects). This commit teaches wireprotov2 commands to declare extra metadata which is advertised as part of the command descriptor. The manifestdata command has been taught to advertise a recommended batch size for requests. Differential Revision: https://phab.mercurial-scm.org/D4975
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 08 Oct 2018 17:45:51 -0700
parents 762ef19a07e3
children 46a40bce3ae0
comparison
equal deleted inserted replaced
40171:dac438b7346e 40172:30f70d11c224
602 default=None, 602 default=None,
603 ) 603 )
604 coreconfigitem('experimental', 'revisions.disambiguatewithin', 604 coreconfigitem('experimental', 'revisions.disambiguatewithin',
605 default=None, 605 default=None,
606 ) 606 )
607 coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size',
608 default=100000,
609 )
607 coreconfigitem('experimental', 'single-head-per-branch', 610 coreconfigitem('experimental', 'single-head-per-branch',
608 default=False, 611 default=False,
609 ) 612 )
610 coreconfigitem('experimental', 'sshserver.support-v2', 613 coreconfigitem('experimental', 'sshserver.support-v2',
611 default=False, 614 default=False,