rhg: Fall back to Python if ui.relative-paths is configured
This feature is not supported yet, and affects the output of some tests.
Differential Revision: https://phab.mercurial-scm.org/D10137
--- a/rust/rhg/src/commands/files.rs Mon Mar 08 17:32:22 2021 +0100
+++ b/rust/rhg/src/commands/files.rs Fri Mar 05 13:28:49 2021 +0100
@@ -27,6 +27,13 @@
}
pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {
+ let relative = invocation.config.get(b"ui", b"relative-paths");
+ if relative.is_some() {
+ return Err(CommandError::unsupported(
+ "non-default ui.relative-paths",
+ ));
+ }
+
let rev = invocation.subcommand_args.value_of("rev");
let repo = invocation.repo?;