##// END OF EJS Templates
rhg: Add support for the HGRCSKIPREPO environment variable...
Simon Sapin -
r47475:25e3dac5 default
parent child Browse files
Show More
@@ -24,6 +24,7 b' use crate::errors::{HgResultExt, IoResul'
24
24
25 /// Holds the config values for the current repository
25 /// Holds the config values for the current repository
26 /// TODO update this docstring once we support more sources
26 /// TODO update this docstring once we support more sources
27 #[derive(Clone)]
27 pub struct Config {
28 pub struct Config {
28 layers: Vec<layer::ConfigLayer>,
29 layers: Vec<layer::ConfigLayer>,
29 }
30 }
@@ -169,7 +169,11 b' impl Repo {'
169 reqs.extend(requirements::load(Vfs { base: &store_path })?);
169 reqs.extend(requirements::load(Vfs { base: &store_path })?);
170 }
170 }
171
171
172 let repo_config = config.combine_with_repo(&repo_config_files)?;
172 let repo_config = if std::env::var_os("HGRCSKIPREPO").is_none() {
173 config.combine_with_repo(&repo_config_files)?
174 } else {
175 config.clone()
176 };
173
177
174 let repo = Self {
178 let repo = Self {
175 requirements: reqs,
179 requirements: reqs,
General Comments 0
You need to be logged in to leave comments. Login now