]> granicus.if.org Git - apache/commitdiff
update-log-msg-tags: allow to reference intended duplicate tags.
authorYann Ylavic <ylavic@apache.org>
Sun, 20 Oct 2019 15:33:19 +0000 (15:33 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 20 Oct 2019 15:33:19 +0000 (15:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1868655 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/update-log-msg-tags

index 21b740bf86b1c66932290f4885166c89424dbe09..93c1958cabb9048719c1d4f5ed86855cca8a1931 100755 (executable)
@@ -9,6 +9,8 @@ my $serial = read_serial($serial_file);
 my $orig_serial = $serial;
 my %tags;
 
+my %intended_duplicate_tags;
+
 foreach my $file (@ARGV) {
     if ($file !~ /\.c$/) {
         print STDERR "Skipping non-C file $file\n";
@@ -124,7 +126,7 @@ sub note_tag
             $oneline .= $1;
         }
     }
-    if (exists $tags{$tag}) {
+    if (exists $tags{$tag} and not exists $intended_duplicate_tags{$tag}) {
         print STDERR "WARNING: Duplicate tag $tag at $tags{$tag}->{file}:$tags{$tag}->{line} and $file:$lineno\n";
     }
     if ($tag >= $serial) {