A Scalable, User-Friendly Source Control System.
Go to file
Pavel Aslanov a0a3a421f2 make HgEntryId an enum
Summary: `HgEntryId` is much more useful in a typed from (enum of `(FileType, HgFileNodeId)` and `HgManifestId`), most of the time we now which type entry should contain and it makes it harder to make and error, all other use cases which require just hash should use `HgNodeHash` instead. This diff includes minimal changes which are necessary to make it work. Some of the cases which do sequence of `Entry::get_hash().into_nondehash() -> HgManifestId::new() | HgFileNodeId::new()` are left for future diffs.

Reviewed By: farnz

Differential Revision: D15866081

fbshipit-source-id: 5be9ecc30dbfd0a49ae6c5d084cdfe2dac351dac
2019-06-18 11:11:52 -07:00
apiserver Use application/cbor MIME type for streaming CBOR responses 2019-06-14 22:14:13 -07:00
async-compression Convert //common/rust/async-compression:async-compression to Rust 2018 2019-05-23 00:09:32 -07:00
asyncmemo Convert //common/rust/asyncmemo:asyncmemo to Rust 2018 2019-05-22 01:00:42 -07:00
benchmark mononoke: fix broken build (racing diffs) 2019-05-21 12:25:53 -07:00
blobimport_lib/src mononoke: support non-publishing / non-pull_default Bookmarks 2019-05-30 07:14:32 -07:00
blobrepo make HgEntryId an enum 2019-06-18 11:11:52 -07:00
blobrepo_utils Convert scm/mononoke/blobrepo_utils to Rust 2018 2019-05-28 15:19:49 -07:00
blobstore Integration of SqlCensoredContentStore service 2019-06-14 02:02:04 -07:00
blobstore_sync_queue mononoke: do not panic if stream has ended 2019-05-21 12:25:53 -07:00
bonsai_hg_mapping mononoke: caching_ext: elide DB calls for no data 2019-06-04 05:16:52 -07:00
bonsai_utils make HgEntryId an enum 2019-06-18 11:11:52 -07:00
bookmarks mononoke: Track dirty state of CachedBookmarksTransaction 2019-05-31 04:37:36 -07:00
bundle2_resolver make HgEntryId an enum 2019-06-18 11:11:52 -07:00
bytes-ext Convert //common/rust/bytes-ext:bytes-ext to Rust 2018 2019-05-22 01:13:28 -07:00
cache_warmup/src add more traces 2019-06-17 05:13:11 -07:00
changesets mononoke: changesets: get_many don't count no-op queries 2019-06-04 03:25:42 -07:00
cmdlib/src mononoke: remove unused db-address argument 2019-06-18 07:52:22 -07:00
cmds mononoke: admin: add bookmarks list command 2019-06-11 02:11:21 -07:00
common mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
failure_ext rust/common/failure_ext: use plain Box<dyn FnOnce()> 2019-06-17 16:55:20 -07:00
filenodes Convert scm/mononoke/filenodes to Rust 2018 2019-05-28 15:14:57 -07:00
futures-ext adds Mutex extentsion method .with 2019-05-31 09:28:54 -07:00
hgcli Convert scm/mononoke/hgcli to Rust 2018 2019-05-28 15:09:33 -07:00
hgproto tp2/rust: update to Rust 1.35.0 2019-05-28 14:28:48 -07:00
hook_tailer mononoke: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
hooks add more traces 2019-06-17 05:13:11 -07:00
mercurial make HgEntryId an enum 2019-06-18 11:11:52 -07:00
mercurial_bundles mononoke: create scratch bookmarks from B2xInfinitepush 2019-05-30 07:14:32 -07:00
mercurial_types make HgEntryId an enum 2019-06-18 11:11:52 -07:00
metaconfig load limiter: add config option 2019-06-06 03:25:39 -07:00
mononoke_api/src mononoke: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
mononoke_types make HgEntryId an enum 2019-06-18 11:11:52 -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: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
ready_state/src server: split server binary crate into 4 separate crates 2018-07-17 04:54:58 -07:00
repo_client mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
revset Convert scm/mononoke/revset to Rust 2018 2019-05-28 15:14:57 -07:00
server mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
sshrelay Convert scm/mononoke/sshrelay to Rust 2018 2019-05-23 00:30:31 -07:00
tests mononoke: do not reuse bad hosts if sync timed out 2019-06-18 10:18:06 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -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