equal
deleted
inserted
replaced
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))?; |