storage: introduce a `revlog.reuse-external-delta-parent` config
As pointed in c59987ab96b4, we had no simple way to get a client to not blindly reuse the delta parent from a bundle. Instead one had to rely on a side effect of the deprecated `format.generaldelta` configuration. We introduce an explicit `revlog.reuse-external-delta-parent` configuration option (default to True) to control this behavior. If the option is not set, `format.generaldelta` still control this behavior. To test the new option, we convert a couple of place where `generaldelta` have been used for its side effects.
Showing
- mercurial/configitems.py 3 additions, 0 deletionsmercurial/configitems.py
- mercurial/help/config.txt 22 additions, 0 deletionsmercurial/help/config.txt
- mercurial/localrepo.py 5 additions, 1 deletionmercurial/localrepo.py
- tests/test-generaldelta.t 1 addition, 1 deletiontests/test-generaldelta.t
- tests/test-sparse-revlog.t 1 addition, 2 deletionstests/test-sparse-revlog.t
Loading
Please register or sign in to comment