Mercurial > hg
comparison rust/hg-core/src/lib.rs @ 46187:95d6f31e88db
hg-core: add basic config module
The config module exposes a `Config` struct, unused for now.
It only reads the config file local to the repository, but handles all valid
patterns and includes/unsets.
It is structured in layers instead of erasing by reverse order of precedence,
allowing us to transparently know more about the config for debugging purposes,
and potentially other things I haven't thought about yet.
This change also introduces `format_bytes!` to `hg-core`.
Differential Revision: https://phab.mercurial-scm.org/D9408
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 29 Dec 2020 10:53:45 +0100 |
parents | 8a4914397d02 |
children | cabc5e9366c5 |
comparison
equal
deleted
inserted
replaced
46186:5f27924a201d | 46187:95d6f31e88db |
---|---|
24 mod filepatterns; | 24 mod filepatterns; |
25 pub mod matchers; | 25 pub mod matchers; |
26 pub mod repo; | 26 pub mod repo; |
27 pub mod revlog; | 27 pub mod revlog; |
28 pub use revlog::*; | 28 pub use revlog::*; |
29 pub mod config; | |
29 pub mod operations; | 30 pub mod operations; |
30 pub mod utils; | 31 pub mod utils; |
31 | 32 |
32 // Remove this to see (potential) non-artificial compile failures. MacOS | 33 // Remove this to see (potential) non-artificial compile failures. MacOS |
33 // *should* compile, but fail to compile tests for example as of 2020-03-06 | 34 // *should* compile, but fail to compile tests for example as of 2020-03-06 |