changeset 46739:c184b490da37

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
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 05 Mar 2021 13:28:49 +0100
parents b4ad45f2f648
children 97ac588b6d9e
files rust/rhg/src/commands/files.rs
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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?;