rust/hg-cpython/src/lib.rs
changeset 52056 8b7123c8947b
parent 50976 4c5f6e95df84
child 52163 7346f93be7a4
equal deleted inserted replaced
52055:b332ae615714 52056:8b7123c8947b
    43 pub mod dirstate;
    43 pub mod dirstate;
    44 pub mod discovery;
    44 pub mod discovery;
    45 pub mod exceptions;
    45 pub mod exceptions;
    46 mod pybytes_deref;
    46 mod pybytes_deref;
    47 pub mod revlog;
    47 pub mod revlog;
       
    48 pub mod update;
    48 pub mod utils;
    49 pub mod utils;
    49 
    50 
    50 /// Revision as exposed to/from the Python layer.
    51 /// Revision as exposed to/from the Python layer.
    51 ///
    52 ///
    52 /// We need this indirection because of the orphan rule, meaning we can't
    53 /// We need this indirection because of the orphan rule, meaning we can't
    98         copy_tracing::init_module(py, &dotted_name)?,
    99         copy_tracing::init_module(py, &dotted_name)?,
    99     )?;
   100     )?;
   100     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
   101     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
   101     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
   102     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
   102     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
   103     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
       
   104     m.add(py, "update", update::init_module(py, &dotted_name)?)?;
   103     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
   105     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
   104     Ok(())
   106     Ok(())
   105 });
   107 });
   106 
   108 
   107 #[cfg(not(feature = "python3-bin"))]
   109 #[cfg(not(feature = "python3-bin"))]