5961c7558a
Summary: Mercurial filelog entries may have metadata fields in the beginning, usually used to track copies/renames. Previously mononoke eden server returned this metadata as part of the file blob. This diff changes it. Now `get_content()` method returns file content without metadata, and to make it consistent, both `get_content()` of the blobrepo and revlog repo do the same. This decision certainly has it's tradeoffs, because now it's more difficult to get metadata (`get_raw_content` needs to be used). But we'll probably change how metadata is stored anyway, that's why I think changing `get_content` method is fine. This diff also cleans up server/src/main.rs file, because previously it had to strip metadata itself. Also diff fixes problem in metadata parsing - it previously failed if file is less than 2 bytes Reviewed By: farnz Differential Revision: D5901476 fbshipit-source-id: f3ade0179710352590068c238e6a733aab68a512 |
||
---|---|---|
async-compression/src | ||
asyncmemo/src | ||
blobrepo/src | ||
blobstore | ||
bookmarks | ||
cmds | ||
eden-server/src | ||
futures-ext/src | ||
heads | ||
hgcli/src | ||
hgproto/src | ||
hooks/src | ||
mercurial/src | ||
mercurial-bundles/src | ||
mercurial-graphql/src | ||
mercurial-types | ||
metaconfig/src | ||
py_tar_utils | ||
repoinfo/src | ||
revset/src | ||
server/src | ||
sshrelay/src | ||
tests | ||
vfs/src | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
rustfmt.toml |
Mononoke
Mononoke is a next-generation server for the Mercurial source control system, meant to scale up to accepting thousands of commits every hour across millions of files. It is primarily written in the Rust programming language.
Caveat Emptor
Mononoke 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 Eden.
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:
- Full support for a standard
cargo build
. - Open source replacements for Facebook-internal services (blob store, logging etc).
The current goal is to get Mononoke working on Linux. Other Unix-like OSes may be supported in the future.