After invoking
mailnotify
, it fails with the following message:
[Wed Jul 18 13:48:43 2007] mailnotify: Undefined subroutine &Algorithm::Diff::traverse_balanced called at /home/twiki/new/MAIN/lib/TWiki/Merge.pm line 205.
I checked and Algorithm::Diff in in the
@INC path.
The following patch fixes the problem, but I don't want to risk integrating it after all the work Crawford did to prevent unwanted compilation (and I'm a noob regarding when to
use
or
require
or how the .pm modules are loaded).
Index: lib/TWiki/Merge.pm
===================================================================
--- lib/TWiki/Merge.pm (revision 14414)
+++ lib/TWiki/Merge.pm (working copy)
@@ -202,6 +202,7 @@
my @b = split( /($sep)/, $ib );
my $out = [];
+ require Algorithm::Diff;
Algorithm::Diff::traverse_balanced( \@a, \@b,
{
MATCH => \&_sAcceptA,
@@ -310,7 +311,7 @@
my @a = split( /(.+?$sep)/, $ia );
my @b = split( /(.+?$sep)/, $ib );
my @c = split( /(.+?$sep)/, $ic );
-
+ require Algorithm::Diff;
my @bdiffs = Algorithm::Diff::sdiff( \@a, \@b );
my @cdiffs = Algorithm::Diff::sdiff( \@a, \@c );
--
TWiki:Main/RafaelAlvarez - 18 Jul 2007
Your patch is exactly right - please go ahead and apply it.
CC
Done
--
TWiki:Main.RafaelAlvarez - 19 Jul 2007
Cleaned "WaitingFor" field.
--
TWiki:Main.GilmarSantosJr - 10 Aug 2008