CC: | maxwell [...] parc.com |
Subject: | problem with strict refs in SVN Notify |
Date: | Wed, 27 Feb 2008 12:03:15 PST |
To: | bug-SVN-Notify [...] rt.cpan.org |
From: | John Maxwell <maxwell [...] parc.com> |
Hi,
When I use the following call in the post-commit hook:
/project/subversion/bin/svnnotify --repos-path "$REPOS" \
--revision "$REV" \
--to-regex-map aquaint-cvs@parc.com="^aquaint/" \
--to-regex-map maxwell@parc.com="^mt/" \
--to-regex-map mforst@parc.com="^mt/" \
--to-regex-map fang@parc.com="^mt/" \
--with-diff \
--subject-cx \
--svnlook $SVNLOOK_DIR/svnlook \
--handler HTML::ColorDiff
I get the error message:
Warning: 'post-commit' hook failed with error output:
Can't use string ("^mt/") as a HASH ref while "strict refs" in use at
/project/svn/lib/perl/SVN/Notify.pm line 940.
I don't know any Perl, but a friend of mine thought that this might be the
problem:
http://www.troubleshooters.com/codecorn/littperl/perlfuncorder.htm
Is this easy to fix? Is there another way that I can use svnnotify to send
emails to different people based on what gets checked in?
I am using version 2.67 of SVN::Notify.
Thanks for any help!
Cheers,
John Maxwell