mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 22:37:37 +03:00
7fbe72c368
Summary: Update the `FieldConverter` code to support parsing any arithmetic type (integers and floating point) using `folly::to<T>()`. Also change the `bool` conversion implementation to use the same code. This does change the `bool` implementation to accept any string accepted by `folly::to<bool>(string)`. The old code only allowed `true` and `false`. The new code allows other strings: `yes`, `no`, `y`, `n`, `0`, `1`, `on`, `off` This also makes the implementation more efficient by eliminating some unnecessary string copies and avoiding throwing exceptions internally on error. Reviewed By: wez Differential Revision: D15428700 fbshipit-source-id: feb73a1f53775fbf3d3acb8585fa689f79c0db81 |
||
---|---|---|
.. | ||
test | ||
CachedParsedFileMonitor.h | ||
CheckoutConfig.cpp | ||
CheckoutConfig.h | ||
CMakeLists.txt | ||
ConfigSetting.h | ||
eden_config.thrift | ||
EdenConfig.cpp | ||
EdenConfig.h | ||
FieldConverter.cpp | ||
FieldConverter.h | ||
FileChangeMonitor.cpp | ||
FileChangeMonitor.h | ||
ReloadableConfig.cpp | ||
ReloadableConfig.h |