[][src]Module rusthg::ancestors

Bindings for the hg::ancestors module provided by the hg-core crate. From Python, this will be seen as rustext.ancestor and can be used as replacement for the the pure ancestor Python module.

Classes visible from Python:

  • LazyAncestors is the Rust implementation of mercurial.ancestor.lazyancestors. The only difference is that it is instantiated with a C parsers.index instance instead of a parents function.

  • MissingAncestors is the Rust implementation of mercurial.ancestor.incrementalmissingancestors.

    API differences:

    • it is instantiated with a C parsers.index instance instead of a parents function.
    • MissingAncestors.bases is a method returning a tuple instead of a set-valued attribute. We could return a Python set easily if our PySet PR is accepted.
  • AncestorsIterator is the Rust counterpart of the ancestor._lazyancestorsiter Python generator. From Python, instances of this should be mainly obtained by calling iter() on a LazyAncestors instance.

Structs

AncestorsIterator
LazyAncestors
MissingAncestors

Functions

init_module

Create the module, with package given from parent