sapling/lib
Jun Wu 3adc813687 codemod: add copyright headers
Summary: This is just the result of running `./contrib/fix-code.py $(hg files .)`

Reviewed By: ikostia

Differential Revision: D10213075

fbshipit-source-id: 88577c9b9588a5b44fcf1fe6f0082815dfeb363a
2018-10-26 15:09:12 -07:00
..
argparse codemod: add copyright headers 2018-10-26 15:09:12 -07:00
bookmarkstore codemod: add copyright headers 2018-10-26 15:09:12 -07:00
cdatapack hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
clib Started Eden for Windows and integrated hg store with it. 2018-08-21 17:51:26 -07:00
commitcloudsubscriber codemod: add copyright headers 2018-10-26 15:09:12 -07:00
configparser codemod: add copyright headers 2018-10-26 15:09:12 -07:00
encoding codemod: add copyright headers 2018-10-26 15:09:12 -07:00
hg_watchman_client codemod: add copyright headers 2018-10-26 15:09:12 -07:00
hgpython hgpython: rename hgenv to be buildenv 2018-10-12 14:55:09 -07:00
indexedlog codemod: add copyright headers 2018-10-26 15:09:12 -07:00
linelog hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
lz4-pyframe codemod: add copyright headers 2018-10-26 15:09:12 -07:00
minibench codemod: add copyright headers 2018-10-26 15:09:12 -07:00
mpatch codemod: add copyright headers 2018-10-26 15:09:12 -07:00
mpatch-sys codemod: add copyright headers 2018-10-26 15:09:12 -07:00
pathmatcher codemod: add copyright headers 2018-10-26 15:09:12 -07:00
radixbuf codemod: add copyright headers 2018-10-26 15:09:12 -07:00
revisionstore codemod: add copyright headers 2018-10-26 15:09:12 -07:00
third-party xdiff: backport upstream changes 2018-04-13 21:51:48 -07:00
treestate codemod: add copyright headers 2018-10-26 15:09:12 -07:00
types codemod: add copyright headers 2018-10-26 15:09:12 -07:00
vlqencoding codemod: add copyright headers 2018-10-26 15:09:12 -07:00
watchman_client codemod: add copyright headers 2018-10-26 15:09:12 -07:00
zstdelta codemod: add copyright headers 2018-10-26 15:09:12 -07:00
Cargo.toml packaging: back out D10213071 to fix continuous build 2018-10-08 08:54:08 -07:00
README.md READMEs: tweaks based on feedback 2018-01-12 12:35:52 -08: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).