This instance will be upgraded to Heptapod 0.21.0rc3 on 2021-04-23 at 10:30 UTC+2 (a few minutes of down time)

Commit 578cd969 authored by Raphaël Gomès's avatar Raphaël Gomès

rust-status: don't bubble up os errors, translate them to bad matches

In the rare cases when either the OS/filesystem throws an error on an otherwise
valid action, or because a path is not representable on the filesystem, or
because of concurrent actions in the filesystem, we want to warn the user about
said path instead of bubbling up the error, causing an exception to be raised
in the Python layer.

Differential Revision: https://phab.mercurial-scm.org/D9320
parent c9c3c277e5a5
This diff is collapsed.
......@@ -56,7 +56,7 @@ impl<'a, M: Matcher + Sync> Status<'a, M> {
.expect("old results should exist"),
&mut results,
traversed_sender.clone(),
)?;
);
}
}
_ => {
......@@ -104,7 +104,7 @@ impl<'a, M: Matcher + Sync> Status<'a, M> {
&old_results,
&mut results,
traversed_sender.clone(),
)?;
);
}
}
_ => {
......@@ -116,7 +116,7 @@ impl<'a, M: Matcher + Sync> Status<'a, M> {
if !self.matcher.is_exact() {
if self.options.list_unknown {
self.handle_unknowns(&mut results)?;
self.handle_unknowns(&mut results);
} else {
// TODO this is incorrect, see issue6335
// This requires a fix in both Python and Rust that can happen
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment