You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ja...@apache.org on 2022/03/27 20:19:24 UTC
svn commit: r1899263 - /subversion/trunk/tools/dist/backport.pl
Author: jamessan
Date: Sun Mar 27 20:19:24 2022
New Revision: 1899263
URL: http://svn.apache.org/viewvc?rev=1899263&view=rev
Log:
* tools/dist/backport.pl
(parse_entry): Reverse "$var =~ m/../ or defined $var" checks so undefined
values aren't matched against
Modified:
subversion/trunk/tools/dist/backport.pl
Modified: subversion/trunk/tools/dist/backport.pl
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport.pl?rev=1899263&r1=1899262&r2=1899263&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Sun Mar 27 20:19:24 2022
@@ -591,10 +591,10 @@ sub parse_entry {
# summary
do {
push @logsummary, shift
- } until $_[0] =~ /^\s*[A-Z][][\w]*:/ or not defined $_[0];
+ } until not defined $_[0] or $_[0] =~ /^\s*[A-Z][][\w]*:/;
# votes
- unshift @votes, pop until $_[-1] =~ /^\s*Votes:/ or not defined $_[-1];
+ unshift @votes, pop until not defined $_[-1] or $_[-1] =~ /^\s*Votes:/;
pop;
# depends, branch, notes