diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-22 17:06:06 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-23 10:24:39 +0200 |
commit | 59292b03024f7e82abf9a04cc3e2ba4142abf579 (patch) | |
tree | f079cafda7dece4ed21ef5c7c423ae43cd302191 /src/other_tools/just_mr/setup.cpp | |
parent | 4a9c4f50cc0ad0bcd4b26a027c4e80d5d43c9f9d (diff) | |
download | justbuild-59292b03024f7e82abf9a04cc3e2ba4142abf579.tar.gz |
just-mr: Pass statistics instance in repos-to-setup map
...instead of using the singleton.
Diffstat (limited to 'src/other_tools/just_mr/setup.cpp')
-rw-r--r-- | src/other_tools/just_mr/setup.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/other_tools/just_mr/setup.cpp b/src/other_tools/just_mr/setup.cpp index a2281ead..dbed15a1 100644 --- a/src/other_tools/just_mr/setup.cpp +++ b/src/other_tools/just_mr/setup.cpp @@ -306,17 +306,19 @@ auto MultiRepoSetup(std::shared_ptr<Configuration> const& config, has_remote_api ? &*apis.remote : nullptr, common_args.jobs); - auto repos_to_setup_map = CreateReposToSetupMap(config, - main, - interactive, - &commit_git_map, - &content_git_map, - &foreign_file_git_map, - &fpath_git_map, - &distdir_git_map, - &tree_id_git_map, - common_args.fetch_absent, - common_args.jobs); + auto repos_to_setup_map = + CreateReposToSetupMap(config, + main, + interactive, + &commit_git_map, + &content_git_map, + &foreign_file_git_map, + &fpath_git_map, + &distdir_git_map, + &tree_id_git_map, + common_args.fetch_absent, + &JustMRStatistics::Instance(), + common_args.jobs); // set up progress observer Logger::Log(LogLevel::Info, |