##// END OF EJS Templates
rhg-cat: fallback in presence of a fileset...
Raphaël Gomès -
r48888:4a6fa6b6 default
parent child Browse files
Show More
@@ -46,6 +46,11 b' pub fn run(invocation: &crate::CliInvoca'
46
46
47 let mut files = vec![];
47 let mut files = vec![];
48 for file in file_args.iter() {
48 for file in file_args.iter() {
49 if file.starts_with("set:") {
50 let message = "fileset";
51 return Err(CommandError::unsupported(message));
52 }
53
49 let normalized = cwd.join(&file);
54 let normalized = cwd.join(&file);
50 // TODO: actually normalize `..` path segments etc?
55 // TODO: actually normalize `..` path segments etc?
51 let dotted = normalized.components().any(|c| c.as_os_str() == "..");
56 let dotted = normalized.components().any(|c| c.as_os_str() == "..");
@@ -210,6 +210,11 b' Fallback with shell path segments'
210 unsupported feature: `..` or `.` path segment
210 unsupported feature: `..` or `.` path segment
211 [252]
211 [252]
212
212
213 Fallback with filesets
214 $ $NO_FALLBACK rhg cat "set:c or b"
215 unsupported feature: fileset
216 [252]
217
213 Requirements
218 Requirements
214 $ $NO_FALLBACK rhg debugrequirements
219 $ $NO_FALLBACK rhg debugrequirements
215 dotencode
220 dotencode
General Comments 0
You need to be logged in to leave comments. Login now