From 762b13468d914d6074ceda985fb0b95352dc8a56 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 11 Jul 2003 18:24:13 +0200 Subject: [PATCH] - fixed a bug in Bootstrap script: simply searching for the last tagged ChangeSet was not sufficient to get the full ChangeLog between two released versions (when using "--changelog=last") as merging between trees also merges the BK tags. Now we explicitely search for the last tagged ChangeSet that matches our major+minor version number, which should match the last ChangeSet used for the previous release. Build-tools/Bootstrap: - fixed a bug: simply searching for the last tagged ChangeSet was not sufficient to get the full ChangeLog between two released versions (when using "--changelog=last") as merging between trees also merges the BK tags. Now we explicitely search for the last tagged ChangeSet that matches our major+minor version number, which should match the last ChangeSet used for the previous release. --- Build-tools/Bootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Build-tools/Bootstrap b/Build-tools/Bootstrap index 9f5fc37736d..b16218cfc3b 100755 --- a/Build-tools/Bootstrap +++ b/Build-tools/Bootstrap @@ -43,6 +43,7 @@ $opt_test= undef; $opt_skip_check= undef; $opt_skip_manual= undef; $version= "unknown"; +$major=$minor=$release=0; GetOptions( "build-command|b=s", @@ -149,6 +150,7 @@ if (!$opt_dry_run) { m/^AM_INIT_AUTOMAKE\(mysql, ([1-9]\.[0-9]{1,2}\.[0-9]{1,2}.*)\)/; $version= $1; + ($major, $minor, $release) = split(/\./,$version); } &logger("Found version string: $version"); @@ -218,7 +220,7 @@ if (defined $opt_changelog) { if (!$opt_revision) { - $revision= `bk changes -t -d':REV:' -n $REPO | head -1`; + $revision= `bk changes -t -d':REV:::TAG:' -n $REPO | grep mysql-$major-$minor | head -1 | cut -f1 -d ":"`; } else {