rust/hg-cpython/src/dagops.rs
changeset 42609 326fdce22fb2
parent 42557 d26e4a434fe5
child 43269 33fe96a5c522
equal deleted inserted replaced
42608:717686c5e461 42609:326fdce22fb2
     7 
     7 
     8 //! Bindings for the `hg::dagops` module provided by the
     8 //! Bindings for the `hg::dagops` module provided by the
     9 //! `hg-core` package.
     9 //! `hg-core` package.
    10 //!
    10 //!
    11 //! From Python, this will be seen as `mercurial.rustext.dagop`
    11 //! From Python, this will be seen as `mercurial.rustext.dagop`
    12 use crate::conversion::{py_set, rev_pyiter_collect};
    12 use crate::{
    13 use cindex::Index;
    13     cindex::Index,
       
    14     conversion::{py_set, rev_pyiter_collect},
       
    15     exceptions::GraphError,
       
    16 };
    14 use cpython::{PyDict, PyModule, PyObject, PyResult, Python};
    17 use cpython::{PyDict, PyModule, PyObject, PyResult, Python};
    15 use exceptions::GraphError;
       
    16 use hg::dagops;
    18 use hg::dagops;
    17 use hg::Revision;
    19 use hg::Revision;
    18 use std::collections::HashSet;
    20 use std::collections::HashSet;
    19 
    21 
    20 /// Using the the `index`, return heads out of any Python iterable of Revisions
    22 /// Using the the `index`, return heads out of any Python iterable of Revisions