From eeb020bc2c15d75772b249b5f115b1a7841bc843 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 May 2024 10:42:30 +0200 Subject: Improve init/sync diagnostics when fetching in multiple configurations --- bdep/sync.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bdep/sync.cxx b/bdep/sync.cxx index 760b184..6c1d0b0 100644 --- a/bdep/sync.cxx +++ b/bdep/sync.cxx @@ -1631,9 +1631,18 @@ namespace bdep if (cfg.reps.empty ()) continue; + const path& p (cfg.path); + + // If we are deep-fetching multiple configurations, print their names. + // Failed that it will be quite confusing since we may be re-fetching + // the same repositories over and over. + // + if (cfgs.size () != 1 && *fetch) + text << "fetching in configuration " << p.representation (); + run_bpkg (3, co, "fetch", - "-d", cfg.path.get (), + "-d", p, (*fetch ? nullptr : "--shallow"), cfg.reps); } -- cgit v1.1