diff rust/hg-pyo3/src/lib.rs @ 52850:01aff9437828

rust-pyo3: translate discovery module from hg-cpython This is a small module and the only one left that needs to know about the index. Building the conversion machinery would have taken longer and have been more dangerous.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 06 Jan 2025 01:14:52 +0100
parents 50c0c74ca266
children b8cd277d26f4
line wrap: on
line diff
--- a/rust/hg-pyo3/src/lib.rs	Sun Jan 05 23:33:24 2025 +0100
+++ b/rust/hg-pyo3/src/lib.rs	Mon Jan 06 01:14:52 2025 +0100
@@ -3,6 +3,7 @@
 mod ancestors;
 mod convert_cpython;
 mod dagops;
+mod discovery;
 mod exceptions;
 mod node;
 mod revision;
@@ -23,6 +24,7 @@
 
     m.add_submodule(&ancestors::init_module(py, &dotted_name)?)?;
     m.add_submodule(&dagops::init_module(py, &dotted_name)?)?;
+    m.add_submodule(&discovery::init_module(py, &dotted_name)?)?;
     m.add_submodule(&revlog::init_module(py, &dotted_name)?)?;
     m.add("GraphError", py.get_type::<exceptions::GraphError>())?;
     Ok(())