Mercurial > public > mercurial-scm > hg
diff rust/hg-cpython/src/lib.rs @ 44531:d4f19eb471ca
rust-cpython: add `debug` module to expose debug information to Python
This will be mostly used in `debuginstall`.
Differential Revision: https://phab.mercurial-scm.org/D8225
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 05 Mar 2020 10:24:10 +0100 |
parents | 3bd77c64bc74 |
children | 50c5ee3bdf9a |
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs Fri Jan 24 11:06:01 2020 +0100 +++ b/rust/hg-cpython/src/lib.rs Thu Mar 05 10:24:10 2020 +0100 @@ -30,6 +30,7 @@ #[macro_use] pub mod ref_sharing; pub mod dagops; +pub mod debug; pub mod dirstate; pub mod discovery; pub mod exceptions; @@ -47,6 +48,7 @@ let dotted_name: String = m.get(py, "__name__")?.extract(py)?; m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?; + m.add(py, "debug", debug::init_module(py, &dotted_name)?)?; m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?; m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?; m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;