mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
A Scalable, User-Friendly Source Control System.
6b050c7be5
Summary: This adds a new LockedState helper class in FileInode to also keep track of whether or not we are currently holding an refcount on the open file/blob. The LockedState object automatically decrements this refcount on destruction. Alternatively, this refcount can be transferred to a new EdenFileHandle object when unlocking the state. Previously most of the internal FileInode code simply used EdenFileHandle objects to manage this refcount. However, this is prone to deadlock, since you have to ensure that EdenFileHandle objects are never destroyed while the state is already locked. This new LockedState API makes it harder to have code paths that may accidentally destroy an EdenFileHandle object while holding the state lock. Reviewed By: chadaustin Differential Revision: D7407423 fbshipit-source-id: 610fcda3220a9f49b734910b7a13e8d68a81a779 |
||
---|---|---|
common | ||
eden | ||
external | ||
.gitignore | ||
CONTRIBUTING.md | ||
getdeps.py | ||
LICENSE | ||
PATENTS | ||
README.md |
Eden
Eden is a project with several components, the most prominent of which is a virtual filesystem built using FUSE.
Caveat Emptor
Eden is still in early stages of development. We are making it available now because we plan to start making references to it from our other open source projects, such as Buck, Watchman, and Nuclide.
The version that we provide on GitHub does not build yet.
This is because the code is exported verbatim from an internal repository at Facebook, and not all of the scaffolding from our internal repository can be easily extracted. The key areas where we need to shore things up are:
- The reinterpretations of build macros in
DEFS
. - A process for including third-party dependencies (presumably via Git submodules) and wiring up the
external_deps
argument in the build macros to point to them. - Providing the toolchain needed to power the [undocumented]
thrift_library()
rule in Buck.
The goal is to get Eden building on both Linux and OS X, though Linux support is expected to come first.