A Scalable, User-Friendly Source Control System.
Go to file
Jeremy Fitzhardinge ac31713c84 rust: failure cleanup pass
Summary:
Don't use failure's bail!() and ensure!() macros.

Instead, failure_ext provides:
- bail_err!(err) - Converts its single parameter to the expected error and returns; ie `return Err(From::from(err));`
- bail_msg!(fmt, ...) - takes format string parameters and returns a `failure::err_msg()` error
- ensure_err!(), ensure_msg!() - corresponding changes

Also:
- remove all stray references to error-chain
- remove direct references to failure_derive (it's reexported via failure and failure_ext)
- replace uses of `Err(foo)?;` with `bail_err!()` (since `bail_err` unconditionally returns, but `Err(x)?` does not in principle, which can affect type inference)

Reviewed By: kulshrax

Differential Revision: D6507717

fbshipit-source-id: 635fb6f8c96d185b195dff171ea9c8db9e83af10
2017-12-07 14:10:17 -08:00
async-compression/src rust: async-compression: loosen decompressor lifetime bound 2017-11-01 18:51:21 -07:00
asyncmemo/src rust: asyncmemo: add failure test 2017-08-29 12:36:18 -07:00
blobrepo/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
blobstore rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
bookmarks rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
cmds rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
eden_server/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
futures-ext/src Update to Rust 1.21 2017-11-29 15:21:41 -08:00
heads rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
hgcli hgcli: add a bash script for using mononoke deployed inside tupperware 2017-10-18 05:37:00 -07:00
hgproto rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
hooks/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
linknodes rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
mercurial/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
mercurial-bundles/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
mercurial-types rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
metaconfig/src rust: failure cleanup pass 2017-12-07 14:10:17 -08: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 rust: mass convert scm/mononoke/... to use failure 2017-12-05 18:11:13 -08:00
revset/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
server/src rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
sshrelay/src Initial commit 2017-07-27 18:00:19 -07:00
storage rust: failure cleanup pass 2017-12-07 14:10:17 -08:00
tests mononoke: select free port in the test 2017-12-06 07:37:23 -08:00
vfs/src rust: failure cleanup pass 2017-12-07 14:10:17 -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
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.