Mercurial > public > mercurial-scm > hg
diff rust/hg-cpython/src/dirstate/status.rs @ 52300:04b9a56c2d25
rust-lib: only export very common types to the top of the crate
This was done very early in the Rust project's lifecycle and I had very little
Rust experience. Let's keep the `DirstateParents` since they'll pop up in
all higher-level code and make the rest more explicit imports to make the
imports less confusing and the lib less cluttered.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 11:13:05 +0100 |
parents | aa23b19e6da4 |
children | f33b87b46135 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/status.rs Mon Nov 04 11:07:05 2024 +0100 +++ b/rust/hg-cpython/src/dirstate/status.rs Mon Nov 04 11:13:05 2024 +0100 @@ -14,7 +14,9 @@ exc::ValueError, ObjectProtocol, PyBool, PyBytes, PyErr, PyList, PyObject, PyResult, PyTuple, Python, PythonObject, ToPyObject, }; -use hg::dirstate::status::StatusPath; +use hg::dirstate::status::{ + BadMatch, DirstateStatus, StatusError, StatusOptions, StatusPath, +}; use hg::matchers::{ DifferenceMatcher, IntersectionMatcher, Matcher, NeverMatcher, PatternMatcher, UnionMatcher, @@ -26,8 +28,7 @@ files::{get_bytes_from_path, get_path_from_bytes}, hg_path::{HgPath, HgPathBuf}, }, - BadMatch, DirstateStatus, IgnorePattern, PatternError, PatternFileWarning, - StatusError, StatusOptions, + IgnorePattern, PatternError, PatternFileWarning, }; use std::borrow::Borrow;