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

Method repository

libatomic/src/daemon/state.rs:100–110  ·  view source on GitHub ↗

Open the repository database for this request. The caller drops the handle when done; the gate guarantees exclusivity within this process. `open_existing_wait` skips the table-init write transaction (the repository exists — the daemon never bootstraps) and gives an external short-lived writer the open grace before failing.

(&self)

Source from the content-addressed store, hash-verified

98 /// (the repository exists — the daemon never bootstraps) and gives an
99 /// external short-lived writer the open grace before failing.
100 pub fn repository(&self) -> Result<Repository, Status> {
101 Repository::open_existing_wait(&self.root, database_open_wait()).map_err(|error| {
102 domain_status(
103 ErrorCode::Repository,
104 format!(
105 "failed to open repository at {}: {error}",
106 self.root.display()
107 ),
108 )
109 })
110 }
111
112 /// Enter an explicit working-copy boundary inside the blocking request.
113 /// The caller retains the returned transaction for the whole operation;

Callers 15

get_session_implFunction · 0.80
create_viewMethod · 0.80
delete_viewMethod · 0.80
set_view_scopeMethod · 0.80
preview_mutationMethod · 0.80
list_stashesMethod · 0.80
drop_stashMethod · 0.80
stage_sandbox_imageMethod · 0.80
seal_sandbox_imageMethod · 0.80
materializeMethod · 0.80
publish_provenanceMethod · 0.80
submit_changeMethod · 0.80

Calls 2

database_open_waitFunction · 0.85
domain_statusFunction · 0.85

Tested by

no test coverage detected