diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-27 10:42:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-27 10:42:30 +0200 |
commit | eeb020bc2c15d75772b249b5f115b1a7841bc843 (patch) | |
tree | 6d1698bda09fa31d81ffe7ec77d43fc839d1d18a | |
parent | 089246012e45ce55137c59f70986d1953811f52a (diff) |
Improve init/sync diagnostics when fetching in multiple configurations
-rw-r--r-- | bdep/sync.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
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); } |