CommitDatabaseFlattener

class dsviper.CommitDatabaseFlattener

Bases: object

Flattens a CommitDatabase commit into a single-commit CommitDatabase.

flatten(source: CommitDatabase, commit_id: ValueCommitId, target: CommitDatabase, label: str, progress: StepperDelegate | None = None) DatabaseTransferInfo

Flatten the state of commit_id from a CommitDatabase into target, a CommitDatabase holding a single commit labelled label (history discarded). progress is an optional StepperDelegate. Return a DatabaseTransferInfo.