subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1567557 - /subversion/trunk/tools/dist/backport.pl
Date Wed, 12 Feb 2014 08:20:14 GMT
Author: danielsh
Date: Wed Feb 12 08:20:13 2014
New Revision: 1567557

URL: http://svn.apache.org/r1567557
Log:
backport.pl: Relax parsing.

* tools/dist/backport.pl
  (parse_entry): Ignore trailing whitespace.  This matters, for example, for
    entry headers such as " * 1.8.x-r42 branch ".

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=1567557&r1=1567556&r2=1567557&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Wed Feb 12 08:20:13 2014
@@ -353,6 +353,10 @@ sub parse_entry {
   my $indentation = ' ' x (length($1) + 2);
   s/^$indentation// for @_;
 
+  # Ignore trailing spaces: it is not significant on any field, and makes the
+  # regexes simpler.
+  s/\s*$// for @_;
+
   # revisions
   $branch = sanitize_branch $1
     and shift



Mime
View raw message