Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-cpython/src/lib.rs @ 44222:3bd77c64bc74
rust-filepatterns: remove bridge code for filepatterns-related functions
These functions will be used internally by `hg-core` without needed to be
exposed to Python.
Differential Revision: https://phab.mercurial-scm.org/D7868
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 14 Jan 2020 16:58:07 +0100 |
parents | b69d5f3a41d0 |
children | d4f19eb471ca |
line wrap: on
line diff
--- a/rust/hg-cpython/src/lib.rs Tue Jan 14 18:03:28 2020 +0100 +++ b/rust/hg-cpython/src/lib.rs Tue Jan 14 16:58:07 2020 +0100 @@ -33,7 +33,6 @@ pub mod dirstate; pub mod discovery; pub mod exceptions; -pub mod filepatterns; pub mod parsers; pub mod revlog; pub mod utils; @@ -53,25 +52,10 @@ m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?; m.add( py, - "filepatterns", - filepatterns::init_module(py, &dotted_name)?, - )?; - m.add( - py, "parsers", parsers::init_parsers_module(py, &dotted_name)?, )?; m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; - m.add( - py, - "PatternFileError", - py.get_type::<exceptions::PatternFileError>(), - )?; - m.add( - py, - "PatternError", - py.get_type::<exceptions::PatternError>(), - )?; Ok(()) });