sapling/lib/configparser
Jun Wu 4f5c7ccc14 configparser: allow defining filter functions to rename section or discard configs
Summary:
There are some advanced config related requirements in Mercurial:
- Drop certain configs if certain HGPLAIN features are set.
- But, do not drop HGPLAIN configs if the config is set via CLI flags.
- Remap section names.
- Whitelist sections.

This diff adds a filter function option aiming to support all of the above.

Reviewed By: StanislavGlebik

Differential Revision: D8895787

fbshipit-source-id: 1abd90974c4e4b3f7f2fb33173ad2af34e0a4a65
2018-07-27 18:49:49 -07:00
..
src configparser: allow defining filter functions to rename section or discard configs 2018-07-27 18:49:49 -07:00
Cargo.toml configparser: add a new Rust library 2018-07-11 17:36:06 -07:00