A Scalable, User-Friendly Source Control System.
Go to file
Stanislau Hlebik 299b959ee7 mononoke: remove recursion from get_hg_from_bonsai_changeset_with_impl
Summary:
Because of the recursion this function can cause stackoverflow if there are a
lot of commits that don't have hg changeset generated.
Let's rewrite it using loop_fn.

Note that there's "panic!()" in fetch_hg_changeset_from_mapping. While having
panics in the code is not great, there doesn't seem to be a way around it. When
generating new hg changesets it expects that parents' changesets are already in
the repository. If they are not generated then it's an internal logic error,
and in that case it's probably better to panic.

Reviewed By: krallin

Differential Revision: D16132403

fbshipit-source-id: 17e48ecce653f72e3f576f3698330d90a4dd7902
2019-07-08 05:13:45 -07:00
apiserver enable/disable censoring 2019-07-02 05:04:34 -07:00
async-compression Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
asyncmemo Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
benchmark enable/disable censoring 2019-07-02 05:04:34 -07:00
blobimport_lib/src mononoke: support non-publishing / non-pull_default Bookmarks 2019-05-30 07:14:32 -07:00
blobrepo mononoke: remove recursion from get_hg_from_bonsai_changeset_with_impl 2019-07-08 05:13:45 -07:00
blobrepo_utils Convert scm/mononoke/blobrepo_utils to Rust 2018 2019-05-28 15:19:49 -07:00
blobstore censoredblobstore logging access 2019-07-05 07:19:57 -07:00
blobstore_sync_queue mononoke: don't require cachelib to talk to a remote DB 2019-06-24 06:07:18 -07:00
bonsai_hg_mapping Modify abomonation_future_cache to use VolatileLruCachePool 2019-06-21 23:35:07 -07:00
bonsai_utils Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
bookmarks Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
bundle2_resolver mononoke: some minor and (hopefully) uncontroversial refactoring of resolver.rs 2019-07-05 02:52:57 -07:00
bytes-ext Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
cache_warmup/src add more traces 2019-06-17 05:13:11 -07:00
changesets Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
cmdlib/src mononoke: remove local_instances option from cmdlib 2019-07-04 08:03:51 -07:00
cmds populate_healer: fix tiemeout and namespace formatting 2019-07-08 04:35:27 -07:00
common add cachelib layer to CacheManager 2019-06-24 17:48:30 -07:00
failure_ext failure_ext: add missing edition = "2018" to Cargo.toml 2019-06-18 17:01:27 -07:00
filenodes Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
futures-ext rust/futures: Make macros work without FutureExt trait in scope 2019-07-05 14:31:30 -07:00
hgcli Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
hgproto Use first mfnode to replace empty base manifest in gettreepack 2019-07-05 08:12:55 -07:00
hook_tailer enable/disable censoring 2019-07-02 05:04:34 -07:00
hooks mononoke: expose option to disable infinitepush server write support 2019-07-02 10:39:52 -07:00
mercurial Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
mercurial_bundles mononoke: make PartId a public alias for u32, importable from mercurial_bundles 2019-07-01 10:06:10 -07:00
mercurial_types Remove VisitedPruner completely 2019-07-08 03:50:56 -07:00
metaconfig mononoke: expose option to disable infinitepush server write support 2019-07-02 10:39:52 -07:00
mononoke_api/src remove inefficient find_path_in_manifest 2019-06-19 09:33:50 -07:00
mononoke_types Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
netstring rust/netstring: convert to Rust 2018 2019-02-12 08:43:24 -08:00
phases add ods stats for sql requests 2019-06-03 07:46:50 -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
reachabilityindex mononoke: fix filenode generation if one filenode is ancestor of another 2019-06-20 01:50:47 -07:00
ready_state/src server: split server binary crate into 4 separate crates 2018-07-17 04:54:58 -07:00
repo_client Use first mfnode to replace empty base manifest in gettreepack 2019-07-05 08:12:55 -07:00
revset Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
server mononoke: manifest traversal benchmark 2019-07-04 05:20:46 -07:00
sshrelay Transition fbcode Rust crates to 2018 edition 2019-06-24 13:15:17 -07:00
tests mononoke: remove local_instances option from cmdlib 2019-07-04 08:03:51 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -07:00
.rlsconfig mononoke: add a .rlsconfig 2019-07-04 02:00:09 -07:00
.travis.yml Add travis-CI integration by adding .travis.yml file. 2018-07-26 10:09:32 -07:00
Cargo.toml mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
CONTRIBUTING.md Initial commit 2017-07-27 18:00:19 -07:00
LICENSE Initial commit 2017-07-27 18:00:19 -07:00
packman.yml mononoke: add mononoke_exec helper script 2019-06-14 03:59:58 -07:00
README.md mononoke: simple useless change 2019-05-21 12:25:10 -07:00
rustfmt.toml provide edition in .rustfmt.toml 2019-05-29 19:55:37 -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