GcReport

Result of Repo.gc.

Usage

Source

GcReport(
    unpinned=dict(),
    kept_pins=dict(),
    deleted_working_refs=dict(),
    kept_working_refs=dict(),
    forgotten_working_refs=dict(),
    deleted_listings=list(),
    deleted_stores=dict(),
    kept_stores=dict(),
    forgotten_stores=list(),
    dry_run=True,
    plan=None
)

Parameter Attributes

unpinned: dict[str, list[str]] = dict()

Backend kind -> pin ids released (or that would be, in a dry run).

kept_pins: dict[str, list[str]] = dict()

Backend kind -> unreferenced pin ids this clone did not create and so left alone (keep-pin; gc --release-foreign releases them).

deleted_working_refs: dict[str, list[str]] = dict()

Object key -> native working branches deleted (--prune-bookmarks).

kept_working_refs: dict[str, list[str]] = dict()

Object key -> stray branches kept because they hold unpinned data.

forgotten_working_refs: dict[str, list[str]] = dict()

Object key -> refs dropped from the workspace state (object removed).

deleted_listings: list[str] = list()

.tether/listings/ files no manifest references.

deleted_stores: dict[str, str] = dict()

Object key (at creation) -> the store add --create made, removed now that nothing references it and only tether’s refs remained.

kept_stores: dict[str, str] = dict()

Object key -> why an unreferenced created store was left in place.

forgotten_stores: list[str] = list()

Index entries dropped: a created store already gone (forget-store), or a touched store with nothing of this dataset’s left in it (forget-touched).

dry_run: bool = True

Whether anything was actually released.

plan: Plan | None = None
The plan that was (or would be) applied.