A Scalable, User-Friendly Source Control System.
Go to file
Tim Fox 5adf5c109b Implement per file hooks
Summary:
This diff implements hooks which act upon individual files. The results of the hooks are cached using Asyncmemo.

The cache is currently keyed on (changeset_id, hook_name, file path) but this will change to file content hash once we move to Bonsai changesets.

Reviewed By: StanislavGlebik

Differential Revision: D8707726

fbshipit-source-id: ceaf94abd09e1dd7f6b2d8f9c87a9a221439a252
2018-07-04 07:07:02 -07:00
apiserver/src blobrepo: turn manifold connection arguments into a struct 2018-06-28 11:46:06 -07:00
async-compression/src mercurial_bundles: make Bundle2Stream sendable across threads 2018-01-15 10:36:32 -08:00
asyncmemo/src asyncmemo: add stats to track size of asyncmemo cache 2018-06-28 09:21:31 -07:00
blobrepo Implement per file hooks 2018-07-04 07:07:02 -07:00
blobstore asyncmemo: add stats to track size of asyncmemo cache 2018-06-28 09:21:31 -07:00
bonsai-utils mononoke-types: change definition of path-conflict-free slightly 2018-06-27 13:05:55 -07:00
bookmarks mononoke/dbbookmarks: return txn success as bool 2018-06-29 20:37:09 -07:00
bundle2-resolver/src mononoke/dbbookmarks: return txn success as bool 2018-06-29 20:37:09 -07:00
bytes-ext add cargo build support for local development 2018-02-22 04:30:32 -08:00
cache-warmup/src mercurial_types: remove D* types and move mercurial types around 2018-06-07 13:19:16 -07:00
changesets asyncmemo: add stats to track size of asyncmemo cache 2018-06-28 09:21:31 -07:00
cmdlib/src cmds: move some common code into a shared crate 2018-06-28 14:51:56 -07:00
cmds Implement per file hooks 2018-07-04 07:07:02 -07:00
common/pylz4/src mononoke: add CompressContext 2018-06-04 04:56:11 -07:00
docs CODEMOD: rename mercurial::Parents to HgParents 2018-04-16 03:40:25 -07:00
filenodes asyncmemo: add stats to track size of asyncmemo cache 2018-06-28 09:21:31 -07:00
futures-ext/src mononoke: add left_future() and right_future() 2018-06-27 07:52:53 -07:00
hgcli mononoke: tls for hgcli and Mononoke server 2018-06-29 14:37:44 -07:00
hgproto mononoke: streaming gettreepack 2018-06-14 02:50:18 -07:00
hooks/src Implement per file hooks 2018-07-04 07:07:02 -07:00
hooks_old/src mercurial_types: remove D* types and move mercurial types around 2018-06-07 13:19:16 -07:00
mercurial/src mononoke: add new requirement 2018-06-22 14:51:40 -07:00
mercurial-bundles/src Upgrade openssl, enable alpn for actix-web, add tokio-codec 2018-06-29 10:57:36 -07:00
mercurial-types add Display impls for the various envelope types 2018-06-28 11:46:05 -07:00
metaconfig/src Refactor repoconfig to support loading of hooks, and directory per repo 2018-07-04 07:07:02 -07:00
mononoke-types mononoke-types: change definition of path-conflict-free slightly 2018-06-27 13:05: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 asyncmemo: add stats to track size of asyncmemo cache 2018-06-28 09:21:31 -07:00
revset/src Moved UniqueHeap to its own file. 2018-07-03 16:52:18 -07:00
server/src Refactor repoconfig to support loading of hooks, and directory per repo 2018-07-04 07:07:02 -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 Refactor repoconfig to support loading of hooks, and directory per repo 2018-07-04 07:07:02 -07:00
vfs/src mercurial-types-mocks: remove old csv code 2018-06-22 11:09:39 -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
packman.yml packman config file for admin tool 2018-06-04 22:09:49 -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.