comparison rust/hg-core/src/config/layer.rs @ 48733:39c447e03dbc

rhg: Add support for colored output The same "label" system is used as in Python code Differential Revision: https://phab.mercurial-scm.org/D12167
author Simon Sapin <simon.sapin@octobus.net>
date Thu, 10 Feb 2022 12:59:32 +0100
parents d4a5c2197208
children 9f14126cfc4c
comparison
equal deleted inserted replaced
48732:d4a5c2197208 48733:39c447e03dbc
293 pub bytes: Vec<u8>, 293 pub bytes: Vec<u8>,
294 /// Only present if the value comes from a file, 1-indexed. 294 /// Only present if the value comes from a file, 1-indexed.
295 pub line: Option<usize>, 295 pub line: Option<usize>,
296 } 296 }
297 297
298 #[derive(Clone, Debug)] 298 #[derive(Clone, Debug, PartialEq, Eq)]
299 pub enum ConfigOrigin { 299 pub enum ConfigOrigin {
300 /// From a configuration file 300 /// From a configuration file
301 File(PathBuf), 301 File(PathBuf),
302 /// From a `--config` CLI argument 302 /// From a `--config` CLI argument
303 CommandLine, 303 CommandLine,