mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
59deefe6ab
Summary: Eden should load its configuration from toml files. This change includes: - ConfigParser is the class that parses and provides access to the configuration. We load the configuration from toml files and pass to ConfigParser in order to preserve existing behavior. - The toml configuration format differs from the Config format. Thus, we use toml.load() and toml.dump() to load/save toml format configuration. - Tests - configuration is properly loaded from a group of config files - toml configuration (if present) takes precedence - missing configuration files (/home/user/.edenrc) are ignored - invalid configuration files are fatal - update of configuration works (adding repo) - toml parsing handles over-rides of properties in the same way as cfg files Deployment Strategy: - This code determines whether to use toml configuration based on the presence of atleast 1 '.toml' file in the etc-eden-dir/config.d. Reviewed By: chadaustin Differential Revision: D9023232 fbshipit-source-id: 6734a9d91eca92b05872a758c764546451dd2d51 |
||
---|---|---|
.. | ||
config_test.py | ||
doctor_test.py | ||
interp_test.py | ||
mtab_test.py | ||
stats_test.py | ||
util_test.py |