(&self, root: &Path, hashes: Vec<Hash>)
| 262 | } |
| 263 | |
| 264 | fn changes(&self, root: &Path, hashes: Vec<Hash>) -> Result<Vec<ChangeFile>, String> { |
| 265 | exchange(root, move |repository, target, channel| async move { |
| 266 | let response = sandbox_client(channel) |
| 267 | .get_changes(pb::GetChangesRequest { |
| 268 | repository: Some(repository), |
| 269 | hashes: hashes |
| 270 | .iter() |
| 271 | .map(libatomic::daemon::convert::hash_proto) |
| 272 | .collect(), |
| 273 | target: Some(target), |
| 274 | expected_snapshot: None, |
| 275 | }) |
| 276 | .await |
| 277 | .map_err(refused)? |
| 278 | .into_inner(); |
| 279 | match response.outcome.ok_or("no outcome in GetChanges")? { |
| 280 | pb::get_changes_response::Outcome::Changes(payload) => payload |
| 281 | .changes |
| 282 | .iter() |
| 283 | .map(wire::change_from_bundle) |
| 284 | .collect(), |
| 285 | pb::get_changes_response::Outcome::Refused(info) => Err(info.message), |
| 286 | } |
| 287 | }) |
| 288 | } |
| 289 | |
| 290 | fn publish_provenance( |
| 291 | &self, |
no test coverage detected