Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/main.rs @ 48339:a2e278b5e265
rhg: [encode] and [decode] config sections are not supported
Differential Revision: https://phab.mercurial-scm.org/D11761
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 09 Nov 2021 19:09:57 +0100 |
parents | 5b9865032533 |
children | d71b9902e2de |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Tue Nov 09 18:56:55 2021 +0100 +++ b/rust/rhg/src/main.rs Tue Nov 09 19:09:57 2021 +0100 @@ -626,5 +626,13 @@ Err(CommandError::unsupported("$HG_PENDING"))? } + if config.has_non_empty_section(b"encode") { + Err(CommandError::unsupported("[encode] config"))? + } + + if config.has_non_empty_section(b"decode") { + Err(CommandError::unsupported("[decode] config"))? + } + Ok(()) }