Subject: | register_attributes not working in Filters |
Consider the following sample filter:
package SVN::Notify::Filter::Test;
use strict;
use warnings;
use SVN::Notify;
SVN::Notify->register_attributes( testattr => 'testattr=s' );
sub recipients {
my ($notify, $to) = @_;
$notify->register_attributes( testattr => 'testattr=s' );
print "attr => " . $notify->testattr . "\n";
return $to;
}
1;
When run from the command line, I get the following:
svnnotify --repos-path /home/ubuntu/svnroot/ --revision 3 --to ubuntu
--handler HTML::ColorDiff --filter Test --testattr blah
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.8.8/SVN/Notify/Filter/Test.pm line 12.
attr =>