Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-pyo3/src/lib.rs @ 52985:a60d1eb74dc6
pyo3: add `update` module
This is a transliteration of the `update` module from `hg-cpython`.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 18 Feb 2025 11:47:51 +0100 |
parents | a39680ec3e76 |
children | 6332e5f857f6 |
line wrap: on
line diff
--- a/rust/hg-pyo3/src/lib.rs Tue Feb 18 11:45:50 2025 +0100 +++ b/rust/hg-pyo3/src/lib.rs Tue Feb 18 11:47:51 2025 +0100 @@ -12,6 +12,7 @@ mod revlog; mod store; mod transaction; +mod update; mod utils; #[pymodule] @@ -29,6 +30,7 @@ m.add_submodule(&dirstate::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_submodule(&update::init_module(py, &dotted_name)?)?; m.add("GraphError", py.get_type::<exceptions::GraphError>())?; Ok(()) }