The view-pair Diff, collected (same rendering as the working copy).
(&self, request: pb::DiffRequest)
| 412 | |
| 413 | /// The view-pair Diff, collected (same rendering as the working copy). |
| 414 | pub fn diff(&self, request: pb::DiffRequest) -> CliResult<Vec<pb::DiffChunk>> { |
| 415 | self.call(move |backend| async move { |
| 416 | match backend { |
| 417 | Backend::Local(state) => { |
| 418 | let stream = services::QueryImpl { state } |
| 419 | .diff(Request::new(request)) |
| 420 | .await? |
| 421 | .into_inner(); |
| 422 | collect_chunks(Box::pin(stream)).await |
| 423 | } |
| 424 | Backend::Reactor(channel) => { |
| 425 | let mut query = |
| 426 | pb::repository_query_service_client::RepositoryQueryServiceClient::new( |
| 427 | channel, |
| 428 | ); |
| 429 | let stream = query.diff(request).await?.into_inner(); |
| 430 | collect_streaming(stream).await |
| 431 | } |
| 432 | } |
| 433 | }) |
| 434 | } |
| 435 | |
| 436 | pub fn list_conflicts( |
| 437 | &self, |
no test coverage detected