jj/cli
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
..
examples templater: implement expect_*_arguments() as methods 2024-05-22 10:18:05 +09:00
src backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00
testing revset: add support for file(kind:pattern) syntax 2024-04-07 19:43:29 +09:00
tests backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00
build.rs
Cargo.toml cargo: explicitly indicate paths to publish 2024-04-15 20:37:00 -07:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00