comparison rust/rhg/src/commands/files.rs @ 46752: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 5ce2aa7c2ad5
children 97ac588b6d9e
comparison
equal deleted inserted replaced
46751:b4ad45f2f648 46752:c184b490da37
25 ) 25 )
26 .about(HELP_TEXT) 26 .about(HELP_TEXT)
27 } 27 }
28 28
29 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { 29 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {
30 let relative = invocation.config.get(b"ui", b"relative-paths");
31 if relative.is_some() {
32 return Err(CommandError::unsupported(
33 "non-default ui.relative-paths",
34 ));
35 }
36
30 let rev = invocation.subcommand_args.value_of("rev"); 37 let rev = invocation.subcommand_args.value_of("rev");
31 38
32 let repo = invocation.repo?; 39 let repo = invocation.repo?;
33 if let Some(rev) = rev { 40 if let Some(rev) = rev {
34 let files = list_rev_tracked_files(repo, rev).map_err(|e| (e, rev))?; 41 let files = list_rev_tracked_files(repo, rev).map_err(|e| (e, rev))?;