rhg: Fall back to Python if ui.relative-paths is configured
authorSimon Sapin <simon.sapin@octobus.net>
Fri, 05 Mar 2021 13:28:49 +0100
changeset 46739 c184b490da37
parent 46738 b4ad45f2f648
child 46740 97ac588b6d9e
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
rust/rhg/src/commands/files.rs
--- 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?;