subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1471493 - /subversion/trunk/tools/dist/backport.pl
Date Wed, 24 Apr 2013 15:44:37 GMT
Author: danielsh
Date: Wed Apr 24 15:44:37 2013
New Revision: 1471493

URL: http://svn.apache.org/r1471493
Log:
* tools/dist/backport.pl
  ($MAY_COMMIT): Ensure the value is always either "true" or "false".

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=1471493&r1=1471492&r2=1471493&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Wed Apr 24 15:44:37 2013
@@ -30,9 +30,10 @@ my $STATUS = './STATUS';
 my $BRANCHES = '^/subversion/branches';
 
 my $YES = $ENV{YES}; # batch mode: eliminate prompts, add sleeps
-my $MAY_COMMIT = $ENV{MAY_COMMIT} // qw[false true][0];
+my $MAY_COMMIT = qw[false true][0];
 my $DEBUG = qw[false true][0]; # 'set -x', etc
 $DEBUG = 'true' if exists $ENV{DEBUG};
+$MAY_COMMIT = 'true' if ($ENV{MAY_COMMIT} // "false") =~ /^(1|yes|true)$/i;
 
 # derived values
 my $SVNq;



Mime
View raw message