pub struct ImportStats {
pub commits_imported: usize,
pub states_created: usize,
pub branches_synced: usize,
pub tags_synced: usize,
pub skipped_non_commit_refs: Vec<SkippedRef>,
pub partial_mirror_refs: Vec<PartialMirrorRef>,
}Expand description
Statistics for import operation.
commits_imported and states_created are equal in the current
implementation (every commit walked produces one new state), but they are
kept separate so future bridges can distinguish “commits seen during the
walk” from “states actually written to the heddle store” — for example,
when re-importing a previously exported repo, a commit may already map to
an existing change_id and need no new state.
Fields§
§commits_imported: usizeTotal commits walked and identified for import.
states_created: usizeNew state objects written to the heddle store during this import.
branches_synced: usize§skipped_non_commit_refs: Vec<SkippedRef>Refs (typically annotated tags) that point at a non-commit object —
most often a blob (e.g. git/git’s refs/tags/junio-gpg-pub
pointing at the maintainer’s GPG public key blob) or a tree
(e.g. git-lfs’s refs/tags/core-gpg-keys).
These are skipped during walk because heddle’s marker model currently requires the target to be a commit. The full-fidelity fix is to extend the marker model with a non-commit-ref variant; until then we record them here so callers can surface what was skipped (and so a future export can restore them by reading the preserved git mirror).
partial_mirror_refs: Vec<PartialMirrorRef>Refs whose object reachability could not be fully copied into
the bridge mirror — see PartialMirrorRef. SHA-stable export
is degraded for these refs.
Trait Implementations§
Source§impl Debug for ImportStats
impl Debug for ImportStats
Source§impl Default for ImportStats
impl Default for ImportStats
Source§fn default() -> ImportStats
fn default() -> ImportStats
Auto Trait Implementations§
impl Freeze for ImportStats
impl RefUnwindSafe for ImportStats
impl Send for ImportStats
impl Sync for ImportStats
impl Unpin for ImportStats
impl UnsafeUnpin for ImportStats
impl UnwindSafe for ImportStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request