rust/rhg/src/commands/files.rs
changeset 46739 c184b490da37
parent 46593 5ce2aa7c2ad5
child 46740 97ac588b6d9e
equal deleted inserted replaced
46738:b4ad45f2f648 46739: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))?;