Mercurial > hg
diff mercurial/help/config.txt @ 27633:37d7cf569cf3
wireproto: support disabling bundle1 only if repo is generaldelta
I recently implemented the server.bundle1* options to control whether
bundle1 exchange is allowed.
After thinking about Mozilla's strategy for handling generaldelta
rollout a bit more, I think server operators need an additional
lever: disable bundle1 if and only if the repo is generaldelta.
bundle1 exchange for non-generaldelta repos will not have the potential
for CPU explosion that generaldelta repos do. Therefore, it makes sense
for server operators to continue to allow bundle1 exchange for
non-generaldelta repos without having to set a per-repo hgrc option
to change the policy depending on whether the repo is generaldelta.
This patch introduces a new set of options to control bundle1 behavior
for generaldelta repos. These options enable server operators to limit
bundle1 restrictions to the class of repos that can be performance
issues. It also allows server operators to tie bundle1 access to store
format. In many server environments (including Mozilla's), legacy repos
will not be generaldelta and new repos will or might be. New repos often
aren't bound by legacy access requirements, so setting a global policy
that disallows access to new/generaldelta repos via bundle1 could be a
reasonable policy in many server environments. This patch makes this
policy very easy to implement (modify global hgrc, add options to
existing generaldelta repos to grandfather them in).
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 20 Dec 2015 11:56:24 -0800 |
parents | ee27d461bf5b |
children | 7b5c8c8a2f8c |
line wrap: on
line diff
--- a/mercurial/help/config.txt Sat Jan 02 15:14:55 2016 -0800 +++ b/mercurial/help/config.txt Sun Dec 20 11:56:24 2015 -0800 @@ -1345,14 +1345,26 @@ Whether to allow clients to push and pull using the legacy bundle1 exchange format. (default: True) +``bundle1gd`` + Like ``bundle1` but only used if the repository is using the + *generaldelta* storage format. (default: True) + ``bundle1.push`` Whether to allow clients to push using the legacy bundle1 exchange format. (default: True) +``bundle1gd.push`` + Like ``bundle1.push` but only used if the repository is using the + *generaldelta* storage format. (default: True) + ``bundle1.pull`` Whether to allow clients to pull using the legacy bundle1 exchange format. (default: True) +``bundle1gd.pull`` + Like ``bundle1.pull` but only used if the repository is using the + *generaldelta* storage format. (default: True) + Large repositories using the *generaldelta* storage format should consider setting this option because converting *generaldelta* repositories to the exchange format required by the bundle1 data