sapling/eden
Matt Glazar ac938df3dc Simplify making TestMount with empty tree
Summary:
Some tests want to create a TestMount but don't care what files are in the mount. The following code is intuitively correct. However, TestMount's constructor takes a FakeTreeBuilder by non-const reference, so it fails to compile:

    auto testMount = TestMount{FakeTreeBuilder{}};

The following code works, but more verbose:

    auto builder = FakeTreeBuilder{};
    auto testMount = TestMount{builder};

Overload TestMount's constructor to allow the former form in addition to the latter form. This neatly shrinks some test code.

This diff should not change behavior.

Reviewed By: chadaustin

Differential Revision: D14060110

fbshipit-source-id: c6a5d4b2c5859812efff279dedbc1fe690c8f8ad
2019-02-15 13:30:44 -08:00
..
benchmarks Cut most of the remaining Thrift SASL integration 2018-11-19 22:40:44 -08:00
cli Kill 'eden config --get' entirely 2019-02-15 11:44:43 -08:00
docs add a caching strategy document 2018-12-06 12:33:31 -08:00
fs Simplify making TestMount with empty tree 2019-02-15 13:30:44 -08:00
integration eden: hg_import_helper.py execs hg debugedenimporthelper 2019-02-14 22:27:00 -08:00
py eden: add a script to build the eden client executable for oss builds 2019-01-15 14:14:32 -08:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
test_support Allow systemd opt-in via config 2018-12-10 16:30:06 -08:00
test-data add more files to the basic snapshot 2018-11-26 12:28:52 -08:00
third-party update to latest kernel headers (from fuse/for-next) 2019-01-30 23:00:38 -08:00
win include utils/Bug.{h,cpp} in the Windows build 2019-01-24 13:47:41 -08:00
.gitignore eden: wire up mac contbuild 2019-02-05 21:52:30 -08:00
.pyre_configuration.local Update pyre version for eden 2019-01-28 13:36:41 -08:00
Eden.project.toml Eden.project.toml file for Nuclide 2018-04-26 11:05:23 -07:00