comparison rust/hg-pyo3/src/exceptions.rs @ 52792:acae91fad6be

rust-pyo3-revlog: standalone NodeTree class This is the actual first usage of `PyShareable`, but perhaps it could be not so much necessary in this case (we could just reference the `InnerRevlog` python object, and we do not need to keep additional state).
author Georges Racinet <georges.racinet@cloudcrane.io>
date Sun, 22 Dec 2024 17:02:09 +0100
parents 1b9907575768
children adf91dfe6c04
comparison
equal deleted inserted replaced
52791:0ac956db7ea7 52792:acae91fad6be
57 57
58 pub fn revlog_error_bare() -> PyErr { 58 pub fn revlog_error_bare() -> PyErr {
59 mercurial_py_errors::RevlogError::new_err((None::<String>,)) 59 mercurial_py_errors::RevlogError::new_err((None::<String>,))
60 } 60 }
61 61
62 #[allow(dead_code)]
63 pub fn rev_not_in_index(rev: UncheckedRevision) -> PyErr { 62 pub fn rev_not_in_index(rev: UncheckedRevision) -> PyErr {
64 PyValueError::new_err(format!("revlog index out of range: {}", rev)) 63 PyValueError::new_err(format!("revlog index out of range: {}", rev))
65 } 64 }
66 65
67 pub fn nodemap_error(err: NodeMapError) -> PyErr { 66 pub fn nodemap_error(err: NodeMapError) -> PyErr {