pub struct TruncatedEvolutionGraph {
pub flow_graph: FlowGraph<CommitId>,
/* private fields */
}Expand description
The truncated evolution graph for a divergent change.
This is similar to the evolog graph, but truncated in the sense that it only contains commits that are for the given change-id, and only goes as far as the closest common dominator of the divergent commits.
Fields§
§flow_graph: FlowGraph<CommitId>The evolution graph of the divergent commits, with edges X->Y if commit X is a predecessor of commit Y and both X and Y have the same divergent change-id. The graph is not necessarily a tree (commits may have multiple predecessors). The start node is the evolution fork point.
Implementations§
Source§impl TruncatedEvolutionGraph
impl TruncatedEvolutionGraph
Sourcepub async fn new(
repo: Arc<ReadonlyRepo>,
divergent_commits: Vec<Commit>,
) -> Result<Self, ConvergeError>
pub async fn new( repo: Arc<ReadonlyRepo>, divergent_commits: Vec<Commit>, ) -> Result<Self, ConvergeError>
Builds a truncated evolution graph for the given divergent commits, which are expected to all have the same change-id.
Sourcepub fn repo(&self) -> &Arc<ReadonlyRepo>
pub fn repo(&self) -> &Arc<ReadonlyRepo>
Returns the repo.
Sourcepub fn divergent_commits(&self) -> &Vec<Commit>
pub fn divergent_commits(&self) -> &Vec<Commit>
Returns the divergent commits.
Sourcepub fn divergent_commit_ids(&self) -> &Vec<CommitId>
pub fn divergent_commit_ids(&self) -> &Vec<CommitId>
Returns the commit ids of the divergent commits.
Auto Trait Implementations§
impl !RefUnwindSafe for TruncatedEvolutionGraph
impl !UnwindSafe for TruncatedEvolutionGraph
impl Freeze for TruncatedEvolutionGraph
impl Send for TruncatedEvolutionGraph
impl Sync for TruncatedEvolutionGraph
impl Unpin for TruncatedEvolutionGraph
impl UnsafeUnpin for TruncatedEvolutionGraph
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more