ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/testutils/src
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
..
lib.rs backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00
test_backend.rs cleanup: consistently use BackendResult 2024-05-07 19:35:03 -07:00
test_signing_backend.rs sign: Implement a test signing backend and add a few basic tests 2023-11-30 23:36:56 +02:00