rust/hg-cpython/src/ancestors.rs
branchstable
changeset 44431 b24721e7c5ee
parent 43945 f98f0e3ddaa1
child 48519 35ebe6f824be
equal deleted inserted replaced
44430:4bd35d25903f 44431:b24721e7c5ee
   124 });
   124 });
   125 
   125 
   126 py_class!(pub class MissingAncestors |py| {
   126 py_class!(pub class MissingAncestors |py| {
   127     data inner: RefCell<Box<CoreMissing<Index>>>;
   127     data inner: RefCell<Box<CoreMissing<Index>>>;
   128 
   128 
   129     def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult<MissingAncestors> {
   129     def __new__(
       
   130         _cls,
       
   131         index: PyObject,
       
   132         bases: PyObject
       
   133     )
       
   134     -> PyResult<MissingAncestors> {
   130         let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?;
   135         let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?;
   131         let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec);
   136         let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec);
   132         MissingAncestors::create_instance(py, RefCell::new(Box::new(inner)))
   137         MissingAncestors::create_instance(py, RefCell::new(Box::new(inner)))
   133     }
   138     }
   134 
   139