equal
deleted
inserted
replaced
8 //! Bindings for the hg::ancestors module provided by the |
8 //! Bindings for the hg::ancestors module provided by the |
9 //! `hg-core` crate. From Python, this will be seen as `rustext.ancestor` |
9 //! `hg-core` crate. From Python, this will be seen as `rustext.ancestor` |
10 |
10 |
11 use cpython::{ObjectProtocol, PyObject, PyResult, Python}; |
11 use cpython::{ObjectProtocol, PyObject, PyResult, Python}; |
12 use hg::Revision; |
12 use hg::Revision; |
13 use std::iter::FromIterator; |
|
14 |
13 |
15 /// Utility function to convert a Python iterable into various collections |
14 /// Utility function to convert a Python iterable into various collections |
16 /// |
15 /// |
17 /// We need this in particular to feed to various methods of inner objects |
16 /// We need this in particular to feed to various methods of inner objects |
18 /// with `impl IntoIterator<Item=Revision>` arguments, because |
17 /// with `impl IntoIterator<Item=Revision>` arguments, because |