aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-22 15:13:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-22 15:13:08 +0200
commit66df96d564dbe383c81a797d9e84ad3b5bf24a84 (patch)
tree06f0eb8ddb5d2ef8c3d149cda1521586b6914ff7
parent7cc7c74bcff6e4e433ced3902f0b019e9c080b64 (diff)
Add info diagnostics to run bdep-sync after bdep-config-move
-rw-r--r--bdep/config.cxx14
-rw-r--r--tests/config.testscript3
2 files changed, 11 insertions, 6 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx
index db282c4..8d33155 100644
--- a/bdep/config.cxx
+++ b/bdep/config.cxx
@@ -512,10 +512,14 @@ namespace bdep
//
path.swap (c->path);
- diag_record dr (text);
- dr << "moved configuration ";
- print_configuration (dr, c, false /* flags */);
- dr << " to " << path;
+ {
+ diag_record dr (text);
+ dr << "moved configuration ";
+ print_configuration (dr, c, false /* flags */);
+ dr << " to " << path;
+ }
+
+ info << "explicit sync command is required for changes to take effect";
}
return 0;
@@ -742,7 +746,7 @@ namespace bdep
print_configuration (dr, c);
}
- info << "explicit bdep-sync is required for changes to take effect";
+ info << "explicit sync command is required for changes to take effect";
}
return 0;
diff --git a/tests/config.testscript b/tests/config.testscript
index 3af7621..db02947 100644
--- a/tests/config.testscript
+++ b/tests/config.testscript
@@ -214,6 +214,7 @@ deinit += -d prj
$* move @cfg prj-cfg2 2>>/"EOE";
moved configuration @cfg $~/prj-cfg/ 1 to $~/prj-cfg2/
+ info: explicit sync command is required for changes to take effect
EOE
$update --all 2>>~%EOE%;
@@ -300,7 +301,7 @@ deinit += -d prj
$* set @cfg2 --default --forward --no-auto-sync 2>>/"EOE";
updated configuration @cfg2 $~/prj-cfg2/ 2 default,forwarded
- info: explicit bdep-sync is required for changes to take effect
+ info: explicit sync command is required for changes to take effect
EOE
$* list >>/"EOO";