equal
deleted
inserted
replaced
22 } |
22 } |
23 |
23 |
24 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { |
24 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { |
25 let repo = invocation.repo?; |
25 let repo = invocation.repo?; |
26 |
26 |
27 let (matcher, _warnings) = hg::sparse::matcher(&repo).unwrap(); |
27 let (matcher, _warnings) = hg::sparse::matcher(repo).unwrap(); |
28 let files = invocation.subcommand_args.get_many::<OsString>("files"); |
28 let files = invocation.subcommand_args.get_many::<OsString>("files"); |
29 if let Some(files) = files { |
29 if let Some(files) = files { |
30 let files: Vec<&OsStr> = files |
30 let files: Vec<&OsStr> = files |
31 .filter(|s| !s.is_empty()) |
31 .filter(|s| !s.is_empty()) |
32 .map(|s| s.as_os_str()) |
32 .map(|s| s.as_os_str()) |