mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-12 23:23:20 +00:00
404f31cbc1
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.
25 lines
749 B
TOML
25 lines
749 B
TOML
[package]
|
|
name = "testutils"
|
|
description = "Integration test utils for the jj-lib crate"
|
|
publish = false
|
|
|
|
version = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
license = { workspace = true }
|
|
homepage = { workspace = true }
|
|
repository = { workspace = true }
|
|
documentation = { workspace = true }
|
|
readme = { workspace = true }
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
async-trait = { workspace = true }
|
|
config = { workspace = true }
|
|
git2 = { workspace = true }
|
|
hex = { workspace = true }
|
|
itertools = { workspace = true }
|
|
jj-lib = { workspace = true, features = ["testing"] }
|
|
rand = { workspace = true }
|
|
tempfile = { workspace = true }
|