Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVN-Notify CPAN distribution.

Report information
The Basics
Id: 33637
Status: rejected
Priority: 0/
Queue: SVN-Notify

People
Owner: Nobody in particular
Requestors: maxwell [...] parc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #33637] problem with strict refs in SVN Notify
Date: Wed, 27 Feb 2008 13:37:33 -0800
To: bug-SVN-Notify [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Feb 27, 2008, at 12:06, John Maxwell via RT wrote: Show quoted text
> 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.
You likely have an old version of Getopt::Long. SVN::Notify requires 2.34 or later. If you're running an older version, please upgrade. You can see what version you have by running: perl -MGetopt::Long -le 'print Getopt::Long->VERSION' Best, David
CC: maxwell [...] parc.com
Subject: Re: [rt.cpan.org #33637] problem with strict refs in SVN Notify
Date: Wed, 27 Feb 2008 14:55:23 PST
To: bug-SVN-Notify [...] rt.cpan.org
From: John Maxwell <maxwell [...] parc.com>
Thanks! John Maxwell