rust/hg-cpython/src/exceptions.rs
changeset 52771 2fb13c3f4496
parent 50976 4c5f6e95df84
equal deleted inserted replaced
52770:7b4548a075ab 52771:2fb13c3f4496
    25 impl GraphError {
    25 impl GraphError {
    26     pub fn pynew(py: Python, inner: hg::GraphError) -> PyErr {
    26     pub fn pynew(py: Python, inner: hg::GraphError) -> PyErr {
    27         match inner {
    27         match inner {
    28             hg::GraphError::ParentOutOfRange(r) => {
    28             hg::GraphError::ParentOutOfRange(r) => {
    29                 GraphError::new(py, ("ParentOutOfRange", PyRevision(r.0)))
    29                 GraphError::new(py, ("ParentOutOfRange", PyRevision(r.0)))
       
    30             }
       
    31             hg::GraphError::ParentOutOfOrder(r) => {
       
    32                 GraphError::new(py, ("ParentOutOfOrder", PyRevision(r.0)))
    30             }
    33             }
    31         }
    34         }
    32     }
    35     }
    33 
    36 
    34     pub fn pynew_from_vcsgraph(
    37     pub fn pynew_from_vcsgraph(