A Scalable, User-Friendly Source Control System.
Go to file
Mark Thomas 6724b8035f cat command for fetching file contents
Summary:
Add an `scsc cat` command which can be used to fetch file contents at a
particular revision.

This uses chunking to ensure the server doesn't need to buffer the whole file
in memory, and to provide some streaming of the output.

JSON output is less useful for `cat`, but it is still provided.  File chunks
that are falid UTF-8 are rendered as strings.  File chunks that are not valid
UTF-8 are hex-encoded.

Reviewed By: ikostia

Differential Revision: D18528708

fbshipit-source-id: 38f82d05d956928fe655e7cf9862e7c0a57d97ac
2019-11-15 07:06:30 -08:00
apiserver rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
async-compression tp2/rust: update rust-crates-io 2019-10-31 09:40:14 -07:00
asyncmemo Yearless license header 2019-10-11 13:52:34 -07:00
benchmark Update scs to make it use globalrevs 2019-11-07 12:39:38 -08:00
blobimport_lib/src common/rust: Remove E argument of with_context closure 2019-11-14 11:56:50 -08:00
blobrepo rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
blobrepo_utils rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
blobstore mononoke: extend --readonly-storage support to sqlite 2019-11-15 00:57:52 -08:00
blobstore_sync_queue Yearless license header 2019-10-11 13:52:34 -07:00
bonsai_globalrev_mapping rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
bonsai_hg_mapping rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
bonsai_utils Re-sync with internal repository 2019-11-13 20:16:37 +01:00
bookmarks warm_bookmarks_cache: derive each data type in a separate task 2019-11-14 10:08:29 -08:00
cache_warmup/src rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
changesets rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
cmdlib/src mononoke: extend --readonly-storage support to sqlite 2019-11-15 00:57:52 -08:00
cmds mononoke: add --readonly-storage option to cmdlib 2019-11-13 05:31:14 -08:00
commit_rewriting rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
common mononoke: extend --readonly-storage support to sqlite 2019-11-15 00:57:52 -08:00
derived_data rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
failure_ext rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
filenodes rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
filestore/src rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
futures-ext cargo_from_buck: generate single section in Cargo.toml from multiple targets 2019-11-08 11:04:35 -08:00
hgcli Re-sync with internal repository 2019-11-13 20:16:37 +01:00
hgproto rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
hook_tailer rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
hooks rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
lfs_import_lib/src Yearless license header 2019-10-11 13:52:34 -07:00
lfs_protocol/src mononoke/lfs_server: extract lfs_protocol 2019-10-17 06:53:53 -07:00
lfs_server/src rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
manifest implementation for commit_compare method 2019-11-07 07:52:34 -08:00
mercurial rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
metaconfig rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
mononoke_api/src inlude copy/move information in commit_compare API 2019-11-15 05:41:28 -08:00
mononoke_types rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
netstring rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
phases rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
pushrebase/src rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
py_tar_utils Yearless license header 2019-10-11 13:52:34 -07:00
reachabilityindex Rename rust2 code generator to rust 2019-11-04 13:06:55 -08:00
ready_state/src Yearless license header 2019-10-11 13:52:34 -07:00
repo_client rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
revset rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
scs_server/src inlude copy/move information in commit_compare API 2019-11-15 05:41:28 -08:00
server mononoke: extend --readonly-storage support to sqlite 2019-11-15 00:57:52 -08:00
sshrelay/src Re-sync with internal repository 2019-11-13 20:16:37 +01:00
tests cat command for fetching file contents 2019-11-15 07:06:30 -08: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
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 Get rustfmt/rls working in fbcode again. 2019-09-19 18:06:23 -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