[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

fix to commit-email.pl

From: Philipp Reisner <philipp.reisner_at_linbit.com>
Date: 2004-08-31 16:05:21 CEST

Yes I know I am not subscribed, please let it through.

To whoever it concerns.

The "-m" switch should _not_ operate on the collapsed dirschanged but
on the not collapes dirschagned array!

-Philipp

--- /usr/lib/subversion/hook-scripts/commit-email.pl 2004-06-10 23:01:05.000000000 +0200
+++ /usr/local/bin/commit-email.pl 2004-08-31 15:58:25.000000000 +0200
@@ -288,6 +288,7 @@
 # there's no point in collapsing the directories, and only if more
 # than one directory was modified.
 my $commondir = '';
+my @dirschanged_orig = @dirschanged;
 if (!$rootchanged and @dirschanged > 1)
   {
     my $firstline = shift @dirschanged;
@@ -367,7 +368,7 @@
   {
     my $match_re = $project->{match_re};
     my $match = 0;
- foreach my $path (@dirschanged, @adds, @dels, @mods)
+ foreach my $path (@dirschanged_orig, @adds, @dels, @mods)
       {
         if ($path =~ $match_re)
           {

-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 31 16:54:14 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.