Show More
@@ -255,7 +255,7 b' fn stat_dmap_entries(' | |||
|
255 | 255 | }) |
|
256 | 256 | } |
|
257 | 257 | |
|
258 |
pub struct Status |
|
|
258 | pub struct DirstateStatus<'a> { | |
|
259 | 259 | pub modified: Vec<&'a HgPath>, |
|
260 | 260 | pub added: Vec<&'a HgPath>, |
|
261 | 261 | pub removed: Vec<&'a HgPath>, |
@@ -267,7 +267,7 b" pub struct StatusResult<'a> {" | |||
|
267 | 267 | |
|
268 | 268 | fn build_response<'a>( |
|
269 | 269 | results: impl IntoIterator<Item = IoResult<(&'a HgPath, Dispatch)>>, |
|
270 |
) -> IoResult<(Vec<&'a HgPath>, Status |
|
|
270 | ) -> IoResult<(Vec<&'a HgPath>, DirstateStatus<'a>)> { | |
|
271 | 271 | let mut lookup = vec![]; |
|
272 | 272 | let mut modified = vec![]; |
|
273 | 273 | let mut added = vec![]; |
@@ -290,7 +290,7 b" fn build_response<'a>(" | |||
|
290 | 290 | |
|
291 | 291 | Ok(( |
|
292 | 292 | lookup, |
|
293 |
Status |
|
|
293 | DirstateStatus { | |
|
294 | 294 | modified, |
|
295 | 295 | added, |
|
296 | 296 | removed, |
@@ -305,7 +305,7 b" pub fn status<'a: 'c, 'b: 'c, 'c>(" | |||
|
305 | 305 | matcher: &'b impl Matcher, |
|
306 | 306 | root_dir: impl AsRef<Path> + Sync + Send + Copy, |
|
307 | 307 | options: StatusOptions, |
|
308 |
) -> IoResult<(Vec<&'c HgPath>, Status |
|
|
308 | ) -> IoResult<(Vec<&'c HgPath>, DirstateStatus<'c>)> { | |
|
309 | 309 | let files = matcher.file_set(); |
|
310 | 310 | let mut results = vec![]; |
|
311 | 311 | if let Some(files) = files { |
@@ -13,7 +13,7 b' pub use dirstate::{' | |||
|
13 | 13 | dirs_multiset::{DirsMultiset, DirsMultisetIter}, |
|
14 | 14 | dirstate_map::DirstateMap, |
|
15 | 15 | parsers::{pack_dirstate, parse_dirstate, PARENT_SIZE}, |
|
16 |
status::{status, Status |
|
|
16 | status::{status, DirstateStatus, StatusOptions}, | |
|
17 | 17 | CopyMap, CopyMapIter, DirstateEntry, DirstateParents, EntryState, |
|
18 | 18 | StateMap, StateMapIter, |
|
19 | 19 | }; |
@@ -20,7 +20,7 b' use hg::{' | |||
|
20 | 20 | matchers::{AlwaysMatcher, FileMatcher}, |
|
21 | 21 | status, |
|
22 | 22 | utils::{files::get_path_from_bytes, hg_path::HgPath}, |
|
23 |
Status |
|
|
23 | DirstateStatus, | |
|
24 | 24 | }; |
|
25 | 25 | use std::borrow::Borrow; |
|
26 | 26 | |
@@ -114,7 +114,7 b' pub fn status_wrapper(' | |||
|
114 | 114 | |
|
115 | 115 | fn build_response( |
|
116 | 116 | lookup: Vec<&HgPath>, |
|
117 |
status_res: Status |
|
|
117 | status_res: DirstateStatus, | |
|
118 | 118 | py: Python, |
|
119 | 119 | ) -> PyResult<(PyList, PyList, PyList, PyList, PyList, PyList, PyList)> { |
|
120 | 120 | let modified = collect_pybytes_list(py, status_res.modified.as_ref()); |
General Comments 0
You need to be logged in to leave comments.
Login now