A Scalable, User-Friendly Source Control System.
Go to file
Stanislau Hlebik 865b59eb46 mononoke: add has_copyinfo
Summary:
Motivation for this change is the following:
We want to avoid doing point lookups to the db to fetch the history, and
instead select the history for a file or a directory with a single select. That
should be many times faster.
After we select the data from filenodes table, we need to fetch  copy info
data. To do that we need to either do lots of point lookups to the fixedcopyinfo (which
undermines the point of doing single select) or construct a giant select
statement. First option is inefficient, the second can introduce big code
complexity.

Instead let's add a single field that says whether we have fixed copy info or
not. Db size increase should be tiny.

For the data that we've already imported I'm planning to run a script that will
fill the has_copyinfo field correctly.

Reviewed By: jsgf

Differential Revision: D8164029

fbshipit-source-id: c91c99b065808a93a9b361914cf9b3822d78cb60
2018-05-27 13:06:17 -07:00
async-compression/src mercurial_bundles: make Bundle2Stream sendable across threads 2018-01-15 10:36:32 -08:00
asyncmemo/src asyncmemo: do not add key sizes to the total weight 2018-05-18 01:58:19 -07:00
blobrepo blobrepo: sort list of changed files as mercurial would sort them 2018-05-25 03:51:37 -07:00
blobstore tp2: update to rust 1.26.0 and corresponding rust-crates-io rebuild 2018-05-11 11:07:33 -07:00
bookmarks mononoke: add separate types for Bookmark and BookmarkPrefix 2018-05-09 02:11:17 -07:00
bookmarks_old/src CODEMOD: rename mercurial_types::HgChangesetId to DChangesetId 2018-04-16 03:40:24 -07:00
bundle2-resolver/src bundle2-resolver: ignore phases pushkey 2018-05-22 05:15:23 -07:00
bytes-ext add cargo build support for local development 2018-02-22 04:30:32 -08:00
cache-warmup/src mononoke: simple precaching 2018-05-10 02:02:34 -07:00
changesets mononoke: add stats 2018-05-01 06:07:53 -07:00
cmds new_blobimport: force set bookmarks rather than gracefully create them 2018-05-24 05:14:20 -07:00
common/pylz4/src mononoke: add compress function 2018-02-06 11:23:57 -08:00
docs CODEMOD: rename mercurial::Parents to HgParents 2018-04-16 03:40:25 -07:00
eden_server/src mononoke: configure Manifold QPS via config option 2018-05-10 02:02:39 -07:00
filenodes mononoke: add has_copyinfo 2018-05-27 13:06:17 -07:00
futures-ext/src convert from put_X::<BigEndian> -> put_X_be 2018-05-09 09:02:11 -07:00
hgcli mononoke: add traffic_replay binary 2018-05-25 07:51:12 -07:00
hgproto mononoke: do not log too big node lists 2018-05-22 06:49:56 -07:00
hooks/src CODEMOD: rename mercurial_types::HgChangesetId to DChangesetId 2018-04-16 03:40:24 -07:00
mercurial mercurial: fix extras escaping 2018-05-09 02:54:09 -07:00
mercurial-bundles/src convert from put_X::<BigEndian> -> put_X_be 2018-05-09 09:02:11 -07:00
mercurial-types Update rust-crates-io 2018-05-21 14:00:04 -07:00
metaconfig/src mononoke: configure Manifold QPS via config option 2018-05-10 02:02:39 -07:00
mononoke-types Add and remove items from memory manifests 2018-05-16 09:35:28 -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 tp2: update to rust 1.26.0 and corresponding rust-crates-io rebuild 2018-05-11 11:07:33 -07:00
revset/src Make it possible to keep the manifest tree in memory 2018-05-16 09:35:28 -07:00
server/src mononoke: do not upload traces if tracing is disabled 2018-05-25 05:35:49 -07:00
sshrelay/src mononoke: fix sshrelay 2018-05-10 02:02:35 -07:00
storage tp2: update to rust 1.26.0 and corresponding rust-crates-io rebuild 2018-05-11 11:07:33 -07:00
tests new_blobimport: buffer_unordered the changesets in main.rs 2018-05-21 06:24:12 -07:00
vfs/src tp2: update to rust 1.26.0 and corresponding rust-crates-io rebuild 2018-05-11 11:07:33 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -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 updates for rustfmt 0.3.4 2018-01-05 12:07:01 -08: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.