sapling/lib
Jun Wu 775ee9c0c9 root: normalize the repo path before printing it out
Summary:
Change `root` to normalize the repo path so it strips `\\?\` UNC prefix that
might break some (ex. Python) scripts.

Reviewed By: DurhamG

Differential Revision: D16928880

fbshipit-source-id: 9691b712f1ba0a07815d025e083d0cbd90b7d6a3
2019-08-20 16:40:25 -07:00
..
asyncrevisionstore/src revisionstore: remove MutableHistoryStore::close 2019-05-21 15:25:28 -07:00
blackbox blackbox: buffer logs before initialization 2019-07-18 15:11:57 -07:00
bookmarkstore rust: update to 2018 edition 2019-06-03 07:22:36 -07:00
cdatapack fix a warning about an ignored const keyword 2019-08-05 12:10:41 -07:00
clib Started Eden for Windows and integrated hg store with it. 2018-08-21 17:51:26 -07:00
clidispatch clidispatch: register commands without CommandDefinition 2019-08-19 19:27:31 -07:00
cliparser cliparser: store positional args in structs 2019-08-19 19:27:30 -07:00
commitcloudsubscriber Apply rustfmt to all rust files 2019-07-10 20:18:48 -07:00
configparser fix copyright headers in a few files 2019-08-15 11:33:07 -07:00
cpython-ext lib: drop extension-module-2-7 cpython feature 2019-08-08 22:54:07 -07:00
cpython-failure lib: drop extension-module-2-7 cpython feature 2019-08-08 22:54:07 -07:00
dag dag: make ancestor APIs take a set 2019-08-09 16:17:53 -07:00
drawdag drawdag: implement a Rust drawdag library 2019-05-03 13:35:40 -07:00
edenapi rust: Head start on some upcoming warnings 2019-07-12 00:55:53 -07:00
encoding encoding: fix empty path handling on windows 2019-08-14 19:01:34 -07:00
hg_watchman_client Apply rustfmt to all rust files 2019-07-10 20:18:48 -07:00
hgcommands root: normalize the repo path before printing it out 2019-08-20 16:40:25 -07:00
indexedlog rotatelog: make indexes of immutable Logs up-to-date 2019-08-15 16:32:55 -07:00
linelog linelog: update README 2018-11-08 12:34:36 -08:00
lz4-pyframe revisionstore: use Bytes instead of Box<[u8]> in Delta and DataEntry 2019-01-22 14:03:17 -08:00
manifest bindings: add finalize implementation for tree manifests 2019-08-06 14:24:31 -07:00
minibench minibench: add a way to provide adhoc messages for measurement 2019-08-09 16:17:50 -07:00
mpatch rust: update to 2018 edition 2019-06-03 07:22:36 -07:00
mpatch-sys rust: update to 2018 edition 2019-06-03 07:22:36 -07:00
mutationstore rust: update to 2018 edition 2019-06-03 07:22:36 -07:00
nodemap Apply rustfmt to all rust files 2019-07-10 20:18:48 -07:00
pathmatcher pathmatcher: add Matcher trait 2019-07-22 13:03:00 -07:00
procinfo procinfo: upgrade winapi to 0.3 2019-07-16 17:10:59 -07:00
radixbuf rust: update to 2018 edition 2019-06-03 07:22:36 -07:00
revisionstore Debugstore command 2019-08-15 19:36:31 -07:00
stackdesc stackdesc: a thin library to annotate the current thread execution 2019-08-01 19:53:56 -07:00
third-party xdiff: backport upstream changes 2018-04-13 21:51:48 -07:00
treestate rust: Head start on some upcoming warnings 2019-07-12 00:55:53 -07:00
types redaction: handle redacted content coming from the EdenAPI 2019-08-12 08:04:58 -07:00
util bindings: move configparser path normalization to a new util crate 2019-08-20 16:40:25 -07:00
vlqencoding Apply rustfmt to all rust files 2019-07-10 20:18:48 -07:00
watchman_client Apply rustfmt to all rust files 2019-07-10 20:18:48 -07:00
zstdelta tp2/rust: Update socket2, net2, async-trait 2019-07-27 19:54:26 -07:00
Cargo.toml bindings: move configparser path normalization to a new util crate 2019-08-20 16:40:25 -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).