rust/hg-cpython/src/revlog.rs
changeset 47305 33e7508b0ae9
parent 47268 9d1a8829f959
child 47799 3fffb48539ee
equal deleted inserted replaced
47304:73f52278a158 47305:33e7508b0ae9
   467     match py
   467     match py
   468         .import("mercurial.error")
   468         .import("mercurial.error")
   469         .and_then(|m| m.get(py, "RevlogError"))
   469         .and_then(|m| m.get(py, "RevlogError"))
   470     {
   470     {
   471         Err(e) => e,
   471         Err(e) => e,
   472         Ok(cls) => PyErr::from_instance(py, cls),
   472         Ok(cls) => PyErr::from_instance(
       
   473             py,
       
   474             cls.call(py, (py.None(),), None).ok().into_py_object(py),
       
   475         ),
   473     }
   476     }
   474 }
   477 }
   475 
   478 
   476 fn rev_not_in_index(py: Python, rev: Revision) -> PyErr {
   479 fn rev_not_in_index(py: Python, rev: Revision) -> PyErr {
   477     PyErr::new::<ValueError, _>(
   480     PyErr::new::<ValueError, _>(