* Print what generation we are switching to; honour --dry-run flag.

This commit is contained in:
Eelco Dolstra 2004-02-10 13:42:58 +00:00
parent 0616b7feea
commit 6551b36790
1 changed files with 5 additions and 0 deletions

View File

@ -528,6 +528,11 @@ static void switchGeneration(Globals & globals, int dstGen)
else
throw Error(format("generation %1% does not exist") % dstGen);
printMsg(lvlInfo, format("switching from generation %1% to %2%")
% curGen % dst.number);
if (globals.dryRun) return;
switchLink(globals.profile, dst.path);
}