changeset 49348:44319aa4a2a4

hg-cpython: fallback when encountering an unknown matcher At this point in the process, nothing user-visible has happened, it is still safe to fallback. This can happen now that we're going to be using "container matchers" like unionmatcher and intersectionmatcher. This is easier and less error-prone than recursive checking beforehand since only the presence of a transformation case will allow the process to continue.
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 09 Jun 2022 10:45:27 +0200
parents 4f04bb0d8deb
children 137d6bb71937
files rust/hg-cpython/src/dirstate/status.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/status.rs	Tue Jun 14 19:40:35 2022 +0200
+++ b/rust/hg-cpython/src/dirstate/status.rs	Thu Jun 09 10:45:27 2022 +0200
@@ -236,7 +236,7 @@
                 after_status,
             )
         }
-        e => Err(PyErr::new::<ValueError, _>(
+        e => Err(PyErr::new::<FallbackError, _>(
             py,
             format!("Unsupported matcher {}", e),
         )),