##// END OF EJS Templates
rhg: Print "bad match" errors in rhg status...
Simon Sapin -
r49298:0c408831 default
parent child Browse files
Show More
@@ -237,8 +237,20 b' pub fn run(invocation: &crate::CliInvoca'
237 237 warn!("Pattern warnings: {:?}", &pattern_warnings);
238 238 }
239 239
240 if !ds_status.bad.is_empty() {
241 warn!("Bad matches {:?}", &(ds_status.bad))
240 for (path, error) in ds_status.bad {
241 let error = match error {
242 hg::BadMatch::OsError(code) => {
243 std::io::Error::from_raw_os_error(code).to_string()
244 }
245 hg::BadMatch::BadType(ty) => {
246 format!("unsupported file type (type is {})", ty)
247 }
248 };
249 ui.write_stderr(&format_bytes!(
250 b"{}: {}\n",
251 path.as_bytes(),
252 error.as_bytes()
253 ))?
242 254 }
243 255 if !ds_status.unsure.is_empty() {
244 256 info!(
@@ -11,10 +11,6 b''
11 11 > EOF
12 12 #endif
13 13
14 TODO: fix rhg bugs that make this test fail when status is enabled
15 $ unset RHG_STATUS
16
17
18 14 $ hg init t
19 15 $ cd t
20 16
@@ -82,7 +78,7 b' TODO: fix rhg bugs that make this test f'
82 78 (fsmonitor makes "hg status" avoid accessing to "dir")
83 79
84 80 $ hg status
85 dir: Permission denied
81 dir: Permission denied* (glob)
86 82 M a
87 83
88 84 #endif
General Comments 0
You need to be logged in to leave comments. Login now