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

Function record

atomic-repository/examples/materialize_bench.rs:141–156  ·  view source on GitHub ↗
(repo: &Repository, message: &str, tick: &mut i64)

Source from the content-addressed store, hash-verified

139}
140
141fn record(repo: &Repository, message: &str, tick: &mut i64) -> Result<()> {
142 let mut header = ChangeHeader::new(message);
143 header.timestamp = chrono::DateTime::from_timestamp(1_600_000_000 + *tick, 0).unwrap();
144 *tick += 1;
145 repo.record(
146 repo.require_working_copy_id()?,
147 header,
148 RecordOptions::new()
149 .with_all(true)
150 .save_to_store(true)
151 .apply_after_record(true)
152 .sync_vault(false)
153 .enrich_kg(false),
154 )?;
155 Ok(())
156}
157
158struct Fixture {
159 directory: tempfile::TempDir,

Callers 1

newMethod · 0.70

Calls 8

enrich_kgMethod · 0.80
apply_after_recordMethod · 0.80
save_to_storeMethod · 0.80
unwrapMethod · 0.45
recordMethod · 0.45
sync_vaultMethod · 0.45
with_allMethod · 0.45

Tested by

no test coverage detected