[][src]Trait hg::Graph

pub trait Graph {
    fn parents(&self, _: Revision) -> Result<[Revision; 2], GraphError>;
}

The simplest expression of what we need of Mercurial DAGs.

Required methods

fn parents(&self, _: Revision) -> Result<[Revision; 2], GraphError>

Return the two parents of the given Revision.

Each of the parents can be independently NULL_REVISION

Loading content...

Implementors

Loading content...