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

Method materialize

atomic-repository/src/repository/materialize.rs:96–101  ·  view source on GitHub ↗

Materialize the working copy to match the current view's state. This synchronizes the working copy files with the repository graph state for the current view. Files are created, updated, or deleted to match what's recorded in the view. Since all edges are stored in the global GRAPH table, this uses the raw transaction directly with a change filter to scope which vertices are alive for this view.

(&self)

Source from the content-addressed store, hash-verified

94 /// }
95 /// ```
96 pub fn materialize(&self) -> Result<MaterializeResult, RepositoryError> {
97 // Use the parallel path — buffers content in memory, processes files
98 // concurrently via rayon, writes each file in a single fs::write call,
99 // and computes content hashes in-memory (no read-back pass).
100 self.materialize_parallel(None)
101 }
102
103 /// Sequential materialize fallback.
104 ///

Callers 15

run_pushMethod · 0.80
run_single_insertFunction · 0.80
run_from_viewFunction · 0.80
run_tagFunction · 0.80
run_pickFunction · 0.80
runMethod · 0.80
run_asyncMethod · 0.80
run_asyncMethod · 0.80
switch_viewMethod · 0.80

Calls 1

materialize_parallelMethod · 0.80