mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
aaa3332644
Summary: This cleans up construction of the EdenMount and Dirstate objects: - The EdenMount constructor is now responsible for creating the Overlay and Dirstate objects. - The Dirstate constructor is now responsible for loading the DirstatePersistence file. - The EdenMount now takes ownership of the ClientConfig object, and stores it for later use. - The ClientConfig object now has a method to get the path to the DirstatePersistence file. - I added a ClientConfig::createTestConfig() method, so that the TestMount code can now use the same EdenMount constructor as the normal code. This simplifies the logic in EdenServiceHandler and TestMount, and makes some of the initialization dependencies a little bit simpler. This change is necessary in order for me to move some logic from fusell::MountPoint into EdenMount. The Dirstate object will need a pointer back to its EdenMount object, and this diff enables that. Reviewed By: bolinfest Differential Revision: D4249393 fbshipit-source-id: 439786accbf48c8696dbc6ca4fe77a4c6bdeab65 |
||
---|---|---|
.. | ||
cli | ||
config | ||
inodes | ||
integration | ||
journal | ||
model | ||
rocksdb | ||
service | ||
store | ||
testharness |