rust/hg-cpython/src/lib.rs
changeset 45945 50c5ee3bdf9a
parent 44531 d4f19eb471ca
child 47953 8f031a274cd6
equal deleted inserted replaced
45944:595979dc924e 45945:50c5ee3bdf9a
    27 pub mod ancestors;
    27 pub mod ancestors;
    28 mod cindex;
    28 mod cindex;
    29 mod conversion;
    29 mod conversion;
    30 #[macro_use]
    30 #[macro_use]
    31 pub mod ref_sharing;
    31 pub mod ref_sharing;
       
    32 pub mod copy_tracing;
    32 pub mod dagops;
    33 pub mod dagops;
    33 pub mod debug;
    34 pub mod debug;
    34 pub mod dirstate;
    35 pub mod dirstate;
    35 pub mod discovery;
    36 pub mod discovery;
    36 pub mod exceptions;
    37 pub mod exceptions;
    47 
    48 
    48     let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
    49     let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
    49     m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
    50     m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
    50     m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?;
    51     m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?;
    51     m.add(py, "debug", debug::init_module(py, &dotted_name)?)?;
    52     m.add(py, "debug", debug::init_module(py, &dotted_name)?)?;
       
    53     m.add(
       
    54         py,
       
    55         "copy_tracing",
       
    56         copy_tracing::init_module(py, &dotted_name)?,
       
    57     )?;
    52     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
    58     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
    53     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
    59     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
    54     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
    60     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
    55     m.add(
    61     m.add(
    56         py,
    62         py,