##// END OF EJS Templates
delta: have a native implementation of _findsnapshot...
delta: have a native implementation of _findsnapshot The function might traverse a lot of revision, a native implementation get significantly faster. example affected manifest write before: 0.114989 after: 0.067141 (-42%)

File last commit:

r41001:5532823e default
r41141:38e88450 default
Show More
exceptions.rs
15 lines | 367 B | application/rls-services+xml | RustLexer
use cpython::exc::ValueError;
use cpython::{PyErr, Python};
use hg;
py_exception!(rustext, GraphError, ValueError);
impl GraphError {
pub fn pynew(py: Python, inner: hg::GraphError) -> PyErr {
match inner {
hg::GraphError::ParentOutOfRange(r) => {
GraphError::new(py, ("ParentOutOfRange", r))
}
}
}
}