mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
90cfd27c37
Summary: Include a configPath_ field for EdenServer that holds the path of the user ~/.edenrc config file. The server needs the data from this user config file in order to perform mounts and currently, the path to the home directory is passed via the CLI to the mount command as a field inside the MountInfo struct in order to get the file. As per discussion in D3498567, including the home directory inside the MountInfo struct is logically a bit disjointed, and this change would no longer require the home directory to be passed to the server via MountInfo. This restructuring also sets up eden for a future change - having the server remount existing mount points on start-up is now possible from the inside. Before this change, mounting anything had to be done via the CLI since the home directory had to be passed in from the outside. This meant that remounting the existing mount points on start up could only be done if Eden was run in the background - running in the foreground would require manual remounting of all existing mount points. Now that the server has access to the config file's path, remounting can be done without any prompting from the CLI in both cases. Reviewed By: simpkins Differential Revision: D3580737 fbshipit-source-id: 46667ccd130b470a3a8a9e9aa08e5ec8e8b90336 |
||
---|---|---|
.. | ||
cli | ||
config | ||
inodes | ||
integration | ||
model | ||
overlay | ||
rocksdb | ||
service | ||
store |