You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/07/27 16:31:47 UTC
svn commit: r1507654 - /subversion/trunk/tools/dist/backport.pl
Author: danielsh
Date: Sat Jul 27 14:31:47 2013
New Revision: 1507654
URL: http://svn.apache.org/r1507654
Log:
* tools/dist/backport.pl: Simplify some code (no functional change). Fix typos.
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=1507654&r1=1507653&r2=1507654&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Sat Jul 27 14:31:47 2013
@@ -40,7 +40,7 @@ my $PAGER = $ENV{PAGER} // 'less -F' //
# svn-role: YES=1 MAY_COMMIT=1
# conflicts-bot: YES=1 MAY_COMMIT=0
# interactive: YES=0 MAY_COMMIT=0 (default)
-my $YES = ($ENV{YES} // 0) ? 1 : 0; # batch mode: eliminate prompts, add sleeps
+my $YES = exists $ENV{YES}; # batch mode: eliminate prompts, add sleeps
my $MAY_COMMIT = 'false';
$MAY_COMMIT = 'true' if ($ENV{MAY_COMMIT} // "false") =~ /^(1|yes|true)$/i;
@@ -120,7 +120,7 @@ There is also a batch mode: when \$YES a
the environment, this script will iterate the "Approved:" section, and merge
and commit each entry therein. If only \$YES is defined, the script will
merge every nomination (including unapproved and vetoed ones), and complain
-to stderr if it notices any conflicts. These mode are normally used by the
+to stderr if it notices any conflicts. These modes are normally used by the
'svn-role' cron job and/or buildbot, not by human users.
The 'svn' binary defined by the environment variable \$SVN, or otherwise the
@@ -564,7 +564,7 @@ sub handle_entry {
system "$SVN diff -- @conflicts";
} elsif (!@conflicts and $entry{depends}) {
# Not a warning since svn-role may commit the dependency without
- # also committing the dependent in hte same pass.
+ # also committing the dependent in the same pass.
print "No conflicts merging $entry{id}, but conflicts were "
."expected ('Depends:' header set)\n";
} elsif (@conflicts) {