diff rust/hg-pyo3/src/lib.rs @ 52870:c60f69556924

rust-pyo3: new module for conversions of HgPath and friends Same as `PyRevision`, the `PyHgPathRef` new-type wrapper is not a Python type, but it implements `IntoPyObject`, which will spare us tedious uses of `PyBytes::new`. The `paths_py_list` function is the the analog of `revs_py_list` for paths. There was one similar utility in `hg-cpython`, within the `dirstate::status` module. We feel it should be in a more global location, and have a name consistent with utilities for revisions. The `paths_pyiter_collect` function is similarly the analog of `revs_pyiter_collect`.
author Georges Racinet <georges.racinet@cloudcrane.io>
date Thu, 06 Feb 2025 11:18:28 +0100
parents d0c0ad938eb9
children a39680ec3e76
line wrap: on
line diff
--- a/rust/hg-pyo3/src/lib.rs	Wed Jan 29 14:05:26 2025 +0100
+++ b/rust/hg-pyo3/src/lib.rs	Thu Feb 06 11:18:28 2025 +0100
@@ -6,6 +6,7 @@
 mod discovery;
 mod exceptions;
 mod node;
+mod path;
 mod revision;
 mod revlog;
 mod store;