A Scalable, User-Friendly Source Control System.
Go to file
David Budischek 2a93fe345c Block non fastforward bookmark moves
Summary:
This is a hook in mercurial, in Mononoke it will be part of the implementation. By default all non fastforward pushes are blocked, except when using the NON_FAST_FORWARD pushvar (--non-forward-move is also needed to circumvent client side restrictions). Additionally certain bookmarks (e.g. master) shouldn't be able to be moved in a non fastforward manner at all. This can be done by setting block_non_fast_forward field in config.

Pushrebase can only move the bookmark that is actually being pushrebased so we do not need to check whether it is a fastforward move (it always is)

Reviewed By: StanislavGlebik

Differential Revision: D14405696

fbshipit-source-id: 782b49c26a753918418e02c06dcfab76e3394dc1
2019-03-18 04:12:09 -07:00
apiserver Remove logging to scribe from blobrepo 2019-03-12 04:50:45 -07:00
async-compression Revert D13575719: [tp2] Update zstd to 1.3.8 as 1.3.x 2019-01-23 18:18:55 -08:00
asyncmemo rust/stats: don't require users to import lazy_static 2018-12-02 14:34:39 -08:00
blobimport_lib/src mononoke: do not upload same bookmark twice in blobimport 2019-02-11 05:50:55 -08:00
blobrepo Remove logging to scribe from blobrepo 2019-03-12 04:50:45 -07:00
blobrepo_utils mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
blobstore mononoke/glusterblob: use symlinks rather than relying on rename 2019-03-11 14:02:28 -07:00
blobstore_sync_queue mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bonsai_hg_mapping mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bonsai_utils mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bookmarks mononoke: add remaining bundles count to the admin tool 2019-03-17 14:53:09 -07:00
bundle2_resolver Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
bytes-ext add cargo build support for local development 2018-02-22 04:30:32 -08:00
cache_warmup/src mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
changesets mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
cmdlib/src mononoke: add hg sync counter manipulations to the admin tool 2019-03-16 05:20:32 -07:00
cmds mononoke: add remaining bundles count to the admin tool 2019-03-17 14:53:09 -07:00
common unify lz4 compression with hg 2019-02-21 06:27:53 -08:00
failure_ext failure_ext: add SlogKVErrorKey enum to better handle SlogKVError handling 2019-02-20 08:52:09 -08:00
filenodes mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
futures-ext Ignore flaky test asynchronize_parallel from futures-ext 2019-02-12 15:27:22 -08:00
hgcli hooks/verify_integrity: pass username and ssh env variables from CoreContext to verify_integrity.py 2019-03-11 10:43:50 -07:00
hgproto mononoke: getpackv1 params parsing 2019-03-11 07:17:07 -07:00
hook_tailer mononoke: remove HgNodeHash from hook_tailer 2019-03-14 14:22:08 -07:00
hooks Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
mercurial mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mercurial_bundles mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mercurial_types mononoke: handle getpackv1 request on Mononkoe 2019-03-15 11:52:38 -07:00
metaconfig Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
mononoke_api/src mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mononoke_types mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
netstring rust/netstring: convert to Rust 2018 2019-02-12 08:43:24 -08:00
phases mononoke: save bundles for replay 2019-02-11 05:50:55 -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
reachabilityindex Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
ready_state/src server: split server binary crate into 4 separate crates 2018-07-17 04:54:58 -07:00
repo_client Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
revset mononoke: fix computing of changed files 2019-03-08 06:28:49 -08:00
server Block non fastforward bookmark moves 2019-03-18 04:12:09 -07:00
sshrelay hooks/verify_integrity: pass username and ssh env variables from CoreContext to verify_integrity.py 2019-03-11 10:43:50 -07:00
tests Block non fastforward bookmark moves 2019-03-18 04:12:09 -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 fb-mononoke-admin: scm/mononoke/packman.yml: add 'packager: ONCALL' line (trivial) 2019-03-12 19:15:27 -07:00
README.md mention in README that Mononoke supports Mercurial 2017-07-28 14:41:37 -07:00
rustfmt.toml Back out D13589633 "revert D13584553, D13175922, D13166085 to fix rust builds" 2019-01-09 13:31:19 -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.