mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
f00af51977
Summary: There are a lot of hash types: HgId, Sha256, and edenapi-types has some. The HgId seems to have most features but it is hard to reuse it for similar but different types. This is an attempt to do so and unify the main implementation of those types. Most methods are copied from HgId. `from_byte_array` is made const fn so it can be used to construct constants. The error type is intentionally chosen to be not `anyhow::Error`. Using static typed errors is considered good practice for low-level crates. The benefit is that higher level users get their choice - precise static error type with compile-time checks, or convenient, dynamic error types by anyhow with runtime downcasts. Reviewed By: yancouto Differential Revision: D31615719 fbshipit-source-id: 337356721354c43fe23b9f2d0e90d104c8864c44 |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
hgcache_size_logger | ||
i18n | ||
lib | ||
newdoc | ||
pystubs | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
COPYING | ||
fsprobe.sh | ||
gen_version.py | ||
hgeditor | ||
Makefile | ||
README.rst | ||
setup.py |
Mercurial ========= Mercurial is a fast, easy to use, distributed revision control tool for software developers. Basic install:: $ make # see install targets $ make install # do a system-wide install $ hg debuginstall # sanity-check setup $ hg # see help Running without installing:: $ make local # build for inplace usage $ ./hg --version # should show the latest version See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.