From d59d5b8fc36b79c973bd525c182dbf0ba8b99251 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 19 Jan 2024 18:27:49 +0100 Subject: just-mr 'git tree' repository: Absent roots sync with serve endpoint To take advantage of absent roots, we need to ensure that a given serve endpoint can build against the tree of this generated root. To this end, for a 'git tree' repository we only set the root as absent only if the given serve endpoint has this root, or the tree is known locally and can be provided via the remote CAS. While generating an absent root the fetch command will never be called. Generating an absent root without being provided a serve endpoint is still allowed, but results in a warning. --- src/other_tools/just_mr/setup.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/other_tools/just_mr/setup.cpp') diff --git a/src/other_tools/just_mr/setup.cpp b/src/other_tools/just_mr/setup.cpp index e5078592..f1a65157 100644 --- a/src/other_tools/just_mr/setup.cpp +++ b/src/other_tools/just_mr/setup.cpp @@ -195,7 +195,14 @@ auto MultiRepoSetup(std::shared_ptr const& config, common_args.jobs); auto tree_id_git_map = CreateTreeIdGitMap( - &git_tree_fetch_map, common_args.fetch_absent, common_args.jobs); + &git_tree_fetch_map, + &critical_git_op_map, + &import_to_git_map, + common_args.fetch_absent, + serve_api_exists, + &(*local_api), + remote_api ? std::make_optional(&(*remote_api)) : std::nullopt, + common_args.jobs); auto repos_to_setup_map = CreateReposToSetupMap(config, main, -- cgit v1.2.3