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/11 00:01:21 UTC

svn commit: r1502027 - /subversion/trunk/tools/dist/backport.pl

Author: danielsh
Date: Wed Jul 10 22:01:20 2013
New Revision: 1502027

URL: http://svn.apache.org/r1502027
Log:
* tools/dist/backport.pl
  (vote): Generate a correct log message for the 'Edit and approve' case.

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=1502027&r1=1502026&r2=1502027&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Wed Jul 10 22:01:20 2013
@@ -427,13 +427,14 @@ sub vote {
 
   my $logmsg = do {
     my @sentences = map {
+       my $words_vote = ", approving" x $_->{approval};
+       my $words_edit = " and approve" x $_->{approval};
        exists $_->{vote}
        ? (
          ( $_->{vote} eq 'edit'
-           ? "Edit the $_->{entry}->{id} entry"
-           : "Vote $_->{vote} on the $_->{entry}->{header}"
+           ? "Edit$words_edit the $_->{entry}->{id} entry"
+           : "Vote $_->{vote} on the $_->{entry}->{header}$words_vote"
          )
-         . (", approving" x $_->{approval})
          . "."
          )
       : # exists only in $approved