# HG changeset patch # User Simon Sapin # Date 2021-03-03 17:38:22 # Node ID 92e3cfd63096be23bdf4da0682b70de501a54789 # Parent df247f58ecee02205bd0b3e5b8d3c31cdb83df03 rhg: Fall back to Python on unsupported `rhg config
` Printing an entire section (as opposed to a single value with `rhg config foo.bar`) is not supported yet in Rust only. Differential Revision: https://phab.mercurial-scm.org/D10098 diff --git a/rust/rhg/src/commands/config.rs b/rust/rhg/src/commands/config.rs --- a/rust/rhg/src/commands/config.rs +++ b/rust/rhg/src/commands/config.rs @@ -27,7 +27,7 @@ pub fn run(invocation: &crate::CliInvoca .expect("missing required CLI argument") .as_bytes() .split_2(b'.') - .ok_or_else(|| HgError::abort(""))?; + .ok_or_else(|| HgError::unsupported("hg config
"))?; let value = invocation.config.get(section, name).unwrap_or(b"");