jj/lib/testutils
Martin von Zweigbergk 404f31cbc1 backend: add error variant for access denied, handle when diffing
Some backends, like the one we have at Google, can restrict access to
certain files. For such files, if they return a regular
`BackendError::ReadObject`, then that will terminate iteration in many
cases (e.g. when diffing or listing files). This patch adds a new
error variant for them to return instead, plus handling of such errors
in diff output and in the working copy.

In order to test the feature, I added a new commit backend that
returns the new `ReadAccessDenied` error when the caller tries to read
certain objects.
2024-05-30 18:27:38 -07:00
..
src backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00
Cargo.toml backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00