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