Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/main.rs @ 47951:cff41e168c25
rhg: Switch rhg.ignored-extensions config to Python-compatible list syntax
This includes the ability to have an extension name/path that contains a comma,
by double-quoting it.
Differential Revision: https://phab.mercurial-scm.org/D11390
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 03 Sep 2021 16:32:35 +0200 |
parents | 6e49769b7f97 |
children | f11f233546ce |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Wed Feb 17 20:49:53 2021 +0100 +++ b/rust/rhg/src/main.rs Fri Sep 03 16:32:35 2021 +0200 @@ -567,11 +567,10 @@ unsupported.remove(supported); } - if let Some(ignored_list) = - config.get_simple_list(b"rhg", b"ignored-extensions") + if let Some(ignored_list) = config.get_list(b"rhg", b"ignored-extensions") { for ignored in ignored_list { - unsupported.remove(ignored); + unsupported.remove(ignored.as_slice()); } }