Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/commands/files.rs @ 52064:7c105b953ca4
rust-files: separate the listing of files from a revset and a revision
We won't need to parse a revset all the time, and an upcoming patch will make
use of this new util.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 30 Sep 2024 19:15:19 +0200 |
parents | b7d99348ea36 |
children | 393ad2685fb4 |
line wrap: on
line diff
--- a/rust/rhg/src/commands/files.rs Mon Sep 30 19:12:42 2024 +0200 +++ b/rust/rhg/src/commands/files.rs Mon Sep 30 19:15:19 2024 +0200 @@ -7,7 +7,7 @@ use hg::filepatterns::parse_pattern_args; use hg::matchers::IntersectionMatcher; use hg::narrow; -use hg::operations::list_rev_tracked_files; +use hg::operations::list_revset_tracked_files; use hg::repo::Repo; use hg::utils::files::get_bytes_from_os_str; use hg::utils::filter_map_results; @@ -88,7 +88,7 @@ }; if let Some(rev) = rev { - let files = list_rev_tracked_files(repo, rev, matcher) + let files = list_revset_tracked_files(repo, rev, matcher) .map_err(|e| (e, rev.as_ref()))?; display_files( invocation.ui,