##// END OF EJS Templates
discovery: move common heads computation inside partialdiscovery object...
discovery: move common heads computation inside partialdiscovery object This remove one of the private attribute access. In additions, head tracking and computation is a typical operation we can speed up using Rust.

File last commit:

r41001:5532823e default
r41148:9815d333 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))
}
}
}
}