A Scalable, User-Friendly Source Control System.
Go to file
Stanislau Hlebik 5961c7558a mononoke: filelog metadata problem fix
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
2017-09-26 00:36:55 -07:00
async-compression/src Initial commit 2017-07-27 18:00:19 -07:00
asyncmemo/src rust: asyncmemo: add failure test 2017-08-29 12:36:18 -07:00
blobrepo/src mononoke: filelog metadata problem fix 2017-09-26 00:36:55 -07:00
blobstore mononoke: blobstore: use ! for memblob errors 2017-09-19 16:11:54 -07:00
bookmarks Remove usage of deprecated Tokio APIs 2017-09-23 10:50:20 -07:00
cmds blobimport: add an option to postpone compaction 2017-09-22 08:33:25 -07:00
eden-server/src mononoke: support rocksdb blobstore in eden server 2017-09-21 08:25:23 -07:00
futures-ext/src rust: futures-ext: use ! for errors that can't happen 2017-09-19 16:11:54 -07:00
heads removed use of deprecated Tokio APIs from fbcode/scm/mononoke/heads/fileheads 2017-09-21 21:21:10 -07:00
hgcli/src Initial commit 2017-07-27 18:00:19 -07:00
hgproto/src update and pull in uuid + subprocess 2017-09-08 17:05:38 -07:00
hooks/src add a prototype to implement hooks 2017-09-05 22:52:51 -07:00
mercurial/src mononoke: filelog metadata problem fix 2017-09-26 00:36:55 -07:00
mercurial-bundles/src rename Path to MPath 2017-09-22 17:27:03 -07:00
mercurial-graphql/src rename Path to MPath 2017-09-22 17:27:03 -07:00
mercurial-types rename Path to MPath 2017-09-22 17:27:03 -07:00
metaconfig/src mononoke: filelog metadata problem fix 2017-09-26 00:36:55 -07:00
py_tar_utils move tar_utils.py from update_rust into an open sourceable location 2017-09-14 13:52:23 -07:00
repoinfo/src mononoke: repoinfo: use u64 for Generation type 2017-09-21 16:52:35 -07:00
revset/src Set difference revset stream 2017-09-25 11:22:33 -07:00
server/src server: read config repo instead of command line arguments to start the server 2017-09-22 09:22:18 -07:00
sshrelay/src Initial commit 2017-07-27 18:00:19 -07:00
tests mononoke: filelog metadata problem fix 2017-09-26 00:36:55 -07:00
vfs/src rename Path to MPath 2017-09-22 17:27:03 -07:00
CONTRIBUTING.md Initial commit 2017-07-27 18:00:19 -07:00
LICENSE Initial commit 2017-07-27 18:00:19 -07:00
README.md mention in README that Mononoke supports Mercurial 2017-07-28 14:41:37 -07:00
rustfmt.toml config for rustfmt-nightly 0.2.6 2017-09-18 10:50:27 -07:00

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.