[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: post-commit hook problems with SMTP

From: David Weintraub <qazwart_at_gmail.com>
Date: Fri, 4 Nov 2011 15:32:55 -0400

On Thu, Nov 3, 2011 at 7:27 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> I think MERGE is the DAV command that corresponds to "Commit this
> transaction (i.e., promote it to a revision)".
>
> Anyway: when svn runs the hook, it only looks at its exit code, stderr,
> and stdout.  So, check how these three change with/without the Net::SMTP
> invocation.
>
> You probably know that there's a FAQ entry recommending the proper way
> to test a hook: as the server's user, with an empty environment, etc.

Yup. Followed the procedure and it works from the command line.

I traced the error through Net::SMTP to a call to "$obj->response" at
that line, it never finishes Net::SMTP. The "response" is from
Net::Cmd, so I'll have to trace it in there. I suspect that Net::Cmd
croaks or something, and since the post-commit command never
completes, Subversion gives me the MERGE error.

Someone suggested I try Mail::Sendmail. I chose Net::SMTP because
that's a standard Perl module, but if it doesn't work, I'll switch to
Mail::Sendmail.

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2011-11-04 20:33:28 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.