Dependencies discovered while importing changes are fetched before the graph slice rebuilds the canonical path and attribute indexes.
(host: &Repository, cache: &Repository, view: &str)
| 91 | /// Dependencies discovered while importing changes are fetched before the |
| 92 | /// graph slice rebuilds the canonical path and attribute indexes. |
| 93 | fn fetch_changes(host: &Repository, cache: &Repository, view: &str) { |
| 94 | loop { |
| 95 | let missing = cache.missing_sandbox_changes().unwrap(); |
| 96 | if missing.is_empty() { |
| 97 | break; |
| 98 | } |
| 99 | let changes = host |
| 100 | .export_sandbox_changes(view, &missing) |
| 101 | .unwrap() |
| 102 | .unwrap(); |
| 103 | assert_eq!(changes.len(), missing.len()); |
| 104 | cache.hold_sandbox_changes(&changes).unwrap(); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | fn hydrate_cache(host: &Repository, cache: &Repository, view: &str) { |
| 109 | fetch_changes(host, cache, view); |
no test coverage detected