You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philipp Reisner <ph...@linbit.com> on 2004/08/31 14:05:21 UTC
fix to commit-email.pl
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
Re: fix to commit-email.pl
Posted by "C. Michael Pilato" <cm...@collab.net>.
Philipp Reisner <ph...@linbit.com> writes:
> 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!
That's absolutely correct. As is your patch. Applying it now!
Thanks, Philipp!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org