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/14 21:00:32 UTC
svn commit: r1503027 - /subversion/trunk/tools/dist/backport.pl
Author: danielsh
Date: Sun Jul 14 19:00:32 2013
New Revision: 1503027
URL: http://svn.apache.org/r1503027
Log:
* tools/dist/backport.pl
(handle_entry): Avoid falling off the end of the PROMPT loop; instead, make
every place that falls off the end do so explicitly by calling last().
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=1503027&r1=1503026&r2=1503027&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Sun Jul 14 19:00:32 2013
@@ -626,6 +626,7 @@ sub handle_entry {
when (/^([+-][01])\s*$/i) {
$votes->{$key} = [$1, \%entry];
say "Your '$1' vote has been recorded." if $VERBOSE;
+ last PROMPT;
}
when (/^e/i) {
my $original = $entry{raw};
@@ -633,9 +634,11 @@ sub handle_entry {
trailing_eol => 2;
$votes->{$key} = ['edit', \%entry] # marker for the 2nd pass
if $original ne $entry{raw};
+ last PROMPT;
}
when (/^N/i) {
$state->{$entry{digest}}++;
+ last PROMPT;
}
when (/^\x20/) {
last PROMPT; # Fall off the end of the given/when block.