bxctl memory sync: the Honcho ledger's counts and failed items
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -8,6 +8,7 @@ use bxcore::{SessionId, Timestamp};
|
||||
|
||||
use crate::files::Store;
|
||||
use crate::honcho::ledger::{self, Action, Item, Ledger, Record, Workspace};
|
||||
use crate::honcho::report;
|
||||
use crate::journal;
|
||||
use crate::notes::{self, Kind};
|
||||
|
||||
@@ -167,6 +168,11 @@ impl Mirror {
|
||||
}
|
||||
}
|
||||
|
||||
/// `bxctl memory sync`'s report of the ledger, under the ledger's lock alone.
|
||||
pub fn report(&self) -> String {
|
||||
report::report(&self.ledger.lock().unwrap_or_else(|p| p.into_inner()))
|
||||
}
|
||||
|
||||
/// Decide the journalled edit `id` (the latest when `None`), called under the index lock
|
||||
/// right after it was journalled, so the ledger has the journal's order. Its parts are
|
||||
/// `Edit { id, part }` from 0. An edit already decided, or asking nothing, adds no line. A
|
||||
|
||||
Reference in New Issue
Block a user