equal
deleted
inserted
replaced
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, _>( |