sapling/eden/scm/lib
Jun Wu add99fb417 indexedlog: write repair message to repair.log
Summary:
The repair messages can be useful to see if things are wrong.
Previously it's only in memory. Attempt to write them to `repair.log` for
easier investigation.

Reviewed By: DurhamG

Differential Revision: D33137391

fbshipit-source-id: d84b35f84c0a70930c5ff9a0d5ccb7e295f64838
2021-12-16 14:04:38 -08:00
..
async-runtime Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
atomicfile third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
auth third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
backingstore Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
blackbox Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
cats update Rust to 1.57.0 2021-12-14 10:34:01 -08:00
checkout Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
clidispatch third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
clientinfo third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
cliparser third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
commitcloudsubscriber third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
configmodel Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
configparser Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
cpython-async Update itertools to 0.10.3 2021-12-08 08:55:53 -08:00
cpython-ext Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
dag dag: indexedlog open => open_with_repair 2021-12-15 19:04:32 -08:00
dev-logger third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
drawdag Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
eagerepo edenapi: drop reponame from edenapi methods 2021-12-15 02:10:00 -08:00
edenapi edenapi: remove unused C bindings 2021-12-16 01:40:37 -08:00
edenfs-client third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
encoding Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
fsinfo third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
fsyncglob third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
hg-http third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
hg-metrics Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
hgcommands Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
hgcommits Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
hgtime Remove imports of prelude items 2021-10-21 20:06:41 -07:00
http-client Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
indexedlog indexedlog: write repair message to repair.log 2021-12-16 14:04:38 -08:00
insta_ext Remove index from UploadTokensResponse 2021-11-30 10:09:34 -08:00
io Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
linelog Apply clang-format update fixes 2021-01-10 10:06:29 -08:00
lz4-pyframe Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
manifest third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
manifest-tree Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
metalog metalog: indexedlog open => open_with_repair 2021-12-15 19:04:32 -08:00
metrics third-party/rust: Re-run autocargo after tracing update 2021-12-03 13:06:53 -08:00
mincode Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
minibench Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
minibytes Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
mpatch Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
mpatch-sys Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
mutationstore mutationstore: indexedlog open => open_with_repair 2021-12-15 19:04:32 -08:00
nodemap nodemap: indexedlog open => open_with_repair 2021-12-16 12:20:00 -08:00
nonblocking Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
pathmatcher third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
pprint Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
procinfo Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
progress Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
radixbuf Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
renderdag Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
revisionstore revisionstore: indexedlog open => open_with_repair 2021-12-15 19:04:32 -08:00
revlogindex Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
runlog Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
spawn-ext Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
status Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
storemodel storemodel: define traits to decouple heavyweight implementation details 2021-12-15 12:45:07 -08:00
streams third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
taggederror third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
taggederror-util third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
third-party remove fbthrift_socket-02 references 2021-11-05 06:30:31 -07:00
thrift-types third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
tracing-analyzer update Diem crates to release 1.5 2021-11-03 01:46:13 -07:00
tracing-collector Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
tracing-runtime-callsite Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
treestate Update itertools to 0.10.3 2021-12-08 08:55:53 -08:00
types third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
util third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
version Even more 2021 edition Cargo.tomls 2021-10-21 19:39:32 -07:00
vfs third-party/rust: Update anyhow from 1.0.48 to 1.0.51 2021-11-29 14:14:17 -08:00
vlqencoding Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
workingcopy Upgrade to parking_log 0.11.2 and add feature send_guard 2021-12-15 14:37:44 -08:00
xdiff Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
xdiff-sys Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
zstdelta Regenerate Cargo.tomls to 2021 edition 2021-10-21 12:40:28 -07:00
zstore zstore: indexedlog open => open_with_repair 2021-12-15 19:04:32 -08:00
CMakeLists.txt clib: remove buffer.[ch] 2020-10-02 10:47:23 -07:00
README.md Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
run_cargo_tests.py config: use Rust graph render as default 2020-10-19 17:07:30 -07:00

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