sapling/eden/fs
Adam Simpkins aaa3332644 simplify EdenMount and Dirstate construction
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
2016-12-01 17:52:30 -08:00
..
cli normalize mount paths when doing config look-ups 2016-09-30 19:07:45 -07:00
config simplify EdenMount and Dirstate construction 2016-12-01 17:52:30 -08:00
inodes simplify EdenMount and Dirstate construction 2016-12-01 17:52:30 -08:00
integration some prep work for hypothesis testing 2016-10-14 07:26:13 -07:00
journal sample the snapshot id in the journal at mount time 2016-09-26 13:52:25 -07:00
model Flip Dirstate -> EdenMount dependency. 2016-11-26 12:01:41 -08:00
rocksdb Update TARGETS files to use buckified RocksDB (Use RocksDB version 4.13.3) 2016-11-29 14:37:06 -08:00
service simplify EdenMount and Dirstate construction 2016-12-01 17:52:30 -08:00
store Update TARGETS files to use buckified RocksDB (Use RocksDB version 4.13.3) 2016-11-29 14:37:06 -08:00
testharness simplify EdenMount and Dirstate construction 2016-12-01 17:52:30 -08:00