mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
898ddfe519
Summary: Add a new `subtree` endpoint to the EdenAPI server, which fetches trees using the underlying server-side logic for the `gettreepack` wire protocol command. This is intended for use in situations where compatibility with `gettreepack` is desired when using HTTP for tree fetching. The name of the endpoint is up for bikeshedding. It seemed weird to name the endpoint `gettreepack` since that name is a verb and refers to a "pack" which is not relevant in this context (there are no wirepacks or packfiles involved). I chose the name `subtree` since the endpoint logically returns all of the nodes underneath a given node in the tree (though in the most frequent case, the node will be the root node and therefore the subtree will be the entire tree). In practice, this initial implementation is not ideal because it buffers the trees in memory, which is problematic because `gettreepack` requests are likely to produce a very large number of trees. Later in this stack, the endpoint will be updated to produce a streaming response instead. Reviewed By: StanislavGlebik Differential Revision: D21782764 fbshipit-source-id: 726925858352c33c923da1979da9d20fbcf930f6 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |