Get all change NodeIds applied up to and including a specific change. This is a convenience wrapper around [`get_changes_up_to_sequence`] that includes the specified change in the result set. # Arguments `txn` - Read transaction `view` - The view to query `change_hash` - Hash of the change to include (and all before it) # Returns `Ok(Some(set))` - Set of changes including the specified change
(
txn: &T,
view: &ViewState,
change_hash: &Hash,
)
| 347 | /// * `Ok(None)` - The change is not in this view's history |
| 348 | /// * `Err(_)` - Database error |
| 349 | pub fn get_changes_up_to_change<T: ViewTxnT>( |
| 350 | txn: &T, |
| 351 | view: &ViewState, |
| 352 | change_hash: &Hash, |
| 353 | ) -> HistoryResult<Option<std::collections::HashSet<NodeId>>> { |
| 354 | // Find the sequence number for this change |
| 355 | let sequence = match find_change_sequence(txn, view, change_hash)? { |
| 356 | Some(seq) => seq, |
| 357 | None => return Ok(None), |
| 358 | }; |
| 359 | |
| 360 | // Get all changes up to and including this sequence |
| 361 | let change_set = get_changes_up_to_sequence(txn, view, sequence + 1)?; |
| 362 | |
| 363 | Ok(Some(change_set)) |
| 364 | } |
| 365 | |
| 366 | /// Get the files modified by a specific change. |
| 367 | /// |
no test coverage detected