Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/operations/mod.rs @ 45535:72b7d58d6e35
hg-core: simplify `list_tracked_files` operation
Use directly `ListDirstateTrackedFiles` rather than having an operation builder.
Differential Revision: https://phab.mercurial-scm.org/D9013
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 09 Sep 2020 12:12:11 +0200 |
parents | 66756b34c06e |
children | 639f33f22faf |
comparison
equal
deleted
inserted
replaced
45534:4f11a67a12fb | 45535:72b7d58d6e35 |
---|---|
9 pub use debugdata::{ | 9 pub use debugdata::{ |
10 DebugData, DebugDataError, DebugDataErrorKind, DebugDataKind, | 10 DebugData, DebugDataError, DebugDataErrorKind, DebugDataKind, |
11 }; | 11 }; |
12 pub use find_root::{FindRoot, FindRootError, FindRootErrorKind}; | 12 pub use find_root::{FindRoot, FindRootError, FindRootErrorKind}; |
13 pub use list_tracked_files::{ | 13 pub use list_tracked_files::{ |
14 ListTrackedFiles, ListTrackedFilesError, ListTrackedFilesErrorKind, | 14 ListDirstateTrackedFiles, ListDirstateTrackedFilesError, |
15 ListDirstateTrackedFilesErrorKind, | |
15 }; | 16 }; |
16 | 17 |
17 // TODO add an `Operation` trait when GAT have landed (rust #44265): | 18 // TODO add an `Operation` trait when GAT have landed (rust #44265): |
18 // there is no way to currently define a trait which can both return | 19 // there is no way to currently define a trait which can both return |
19 // references to `self` and to passed data, which is what we would need. | 20 // references to `self` and to passed data, which is what we would need. |