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
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