MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / update_branch_state

Method update_branch_state

atomic-core/src/crdt/apply/traits.rs:589–598  ·  view source on GitHub ↗
(
            &mut self,
            id: BranchId,
            state: BranchState,
        )

Source from the content-addressed store, hash-verified

587 }
588
589 fn update_branch_state(
590 &mut self,
591 id: BranchId,
592 state: BranchState,
593 ) -> Result<(), Self::Error> {
594 if let Some(branch) = self.branches.get_mut(&id) {
595 branch.set_state(state);
596 }
597 Ok(())
598 }
599
600 fn list_branches(&self, trunk_id: TrunkId) -> Result<Vec<BranchId>, Self::Error> {
601 Ok(self

Callers 2

mark_branch_deletedMethod · 0.45
mark_branch_aliveMethod · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected