mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
5666399fcf
Summary: The mutation store stores entries with a floating-point timestamp. This pattern was copied from obsmarkers. However, Mercurial uses integer timestamps in the commit metadata (the parser supports floats for historical reasons, but only stores integer timestamps). Mononoke also uses integer timestamps in its `DateTime` type. To keep things simple, switch to using integer timestamps for mutation entries. Existing entries with floating point timestamps are truncated. Add a new entry format version that encodes the timestamp as an integer. For now, continue to generate the old version so that old clients can read entries created by new clients. Reviewed By: quark-zju Differential Revision: D20444366 fbshipit-source-id: 4d6d9851aacb314abea19b87c9d0130c47fdf512 |
||
---|---|---|
.. | ||
asyncrevisionstore/src | ||
auth | ||
backingstore | ||
blackbox | ||
bookmarkstore | ||
cdatapack | ||
clib | ||
clidispatch | ||
cliparser | ||
commitcloudsubscriber | ||
commitstore/bench-serialize | ||
configparser | ||
cpython-ext | ||
dag | ||
dev-logger | ||
drawdag | ||
edenapi | ||
edenfs-client | ||
encoding | ||
fsinfo | ||
hgcommands | ||
hgtime | ||
indexedlog | ||
linelog | ||
lz4-pyframe | ||
manifest | ||
manifest-tree | ||
metalog | ||
mincode | ||
minibench | ||
minibytes | ||
mpatch | ||
mpatch-sys | ||
mutationstore | ||
nodemap | ||
pathmatcher | ||
procinfo | ||
radixbuf | ||
renderdag | ||
revisionstore | ||
stackdesc | ||
third-party | ||
thrift-types | ||
tracing-collector | ||
treestate | ||
types | ||
util | ||
vlqencoding | ||
workingcopy | ||
xdiff | ||
xdiff-sys | ||
zstdelta | ||
zstore | ||
CMakeLists.txt | ||
README.md |
lib
Any native code (C/C++/Rust) that Mercurial (either core or extensions)
depends on should go here. Python code, or native code that depends on
Python code (e.g. #include <Python.h>
or use cpython
) is disallowed.
As we start to convert more of Mercurial into Rust, and write new paths entrirely in native code, we'll want to limit our dependency on Python, which is why this barrier exists.
See also hgext/extlib/README.md
, mercurial/cext/README.mb
.
How do I choose between lib
and extlib
(and cext
)?
If your code is native and doesn't depend on Python (awesome!), it goes here.
Otherwise, put it in hgext/extlib
(if it's only used by extensions) or
mercurial/cext
(if it's used by extensions or core).