mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
d777b70f9e
Summary: This adds a new `find_eden()` method to the Eden CLI code which can look up information about the correct EdenCheckout and EdenInstance given a path. In the future most CLI commands should switch to use this function over the current `get_eden_instance()` and `get_mount_path()` methods. These older APIs only work to find currently mounted checkouts, which is inadequate for commands like `fsck` and some other debug commands that want to be able to operate on unmounted checkouts. This new logic is able to correctly find checkout information even for unmounted checkouts. If the checkout is managed by an edenfs instance running out of a non-default location it also correctly finds the state information for Eden, rather than potentially using the wrong Eden state directory. Reviewed By: wez Differential Revision: D9385821 fbshipit-source-id: a6638f3c3817a595a7b7979c5cd218a2d7400f51 |
||
---|---|---|
.. | ||
cli | ||
docs | ||
fs | ||
hooks | ||
integration | ||
py | ||
scripts | ||
test-data | ||
third-party | ||
win | ||
AUTODEPS | ||
Eden.project.toml |