Adjust git_changelog for new-style release tags.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Oct 2017 04:45:15 +0000 (00:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 4 Oct 2017 04:45:15 +0000 (00:45 -0400)
It wasn't on board with REL_n_n format.

src/tools/git_changelog

index a66b64467f7306fe8f04d3ff6a7d08c78da8bd03..2fc1565a6c309a45e800cce56b3596be4877ec0a 100755 (executable)
@@ -102,8 +102,9 @@ my %rel_tags;
                {
                        my $commit = $1;
                        my $tag    = $2;
-                       if (   $tag =~ /^REL\d+_\d+$/
-                               || $tag =~ /^REL\d+_\d+_\d+$/)
+                       if ($tag =~ /^REL_\d+_\d+$/
+                           || $tag =~ /^REL\d+_\d+$/
+                           || $tag =~ /^REL\d+_\d+_\d+$/)
                        {
                                $rel_tags{$commit} = $tag;
                        }
@@ -198,6 +199,7 @@ for my $branch (@BRANCHES)
                        $last_tag = $sprout_tags{$commit};
 
                        # normalize branch names for making sprout tags
+                       $last_tag =~ s/^(REL_\d+).*/$1_BR/;
                        $last_tag =~ s/^(REL\d+_\d+).*/$1_BR/;
                }
                $c->{'last_tag'} = $last_tag;