diff 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
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Mon Dec 14 12:08:56 2020 +0100
+++ b/rust/hg-core/src/lib.rs	Tue Dec 29 10:53:45 2020 +0100
@@ -26,6 +26,7 @@
 pub mod repo;
 pub mod revlog;
 pub use revlog::*;
+pub mod config;
 pub mod operations;
 pub mod utils;