Struct libpijul::Branch
[−]
[src]
pub struct Branch { pub db: Db<UnsafeKey, UnsafeEdge>, pub patches: Db<UnsafePatchId, ApplyTimestamp>, pub revpatches: Db<ApplyTimestamp, UnsafePatchId>, pub apply_counter: u64, pub name: SmallString, }
The representation of a branch. The "application number" of a patch on a branch is the state of the application counter at the time the patch has been applied to that branch.
Fields
db: Db<UnsafeKey, UnsafeEdge>
The table containing the branch graph.
patches: Db<UnsafePatchId, ApplyTimestamp>
The map of all patches applied to that branch, ordered by patch hash.
revpatches: Db<ApplyTimestamp, UnsafePatchId>
The map of all patches applied to that branch, ordered by application number.
apply_counter: u64
The number of patches that have been applied on that branch, including patches that are no longer on the branch (i.e. that have been unrecorded).
name: SmallString
Branch name.