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

RE: perl hooks

From: <Ullrich.Jans_at_elektrobit.com>
Date: Tue, 16 Dec 2008 16:08:40 +0100

Ilan Yaniv wrote:

> I changed the Perl script to be .exe file. YEEPEE it works.
> Now I want a message to be sent to the committer. Most of the
> people here use Tortoise, but even with command line, I want
> a message to be outputted not only to a log file but also to
> the standard output and the Tortoise window.
>
> What I was trying to do is to use Perl\Tk which is the Perl
> GUI library, and to show the user a message box with the
> warning. This only got my client to get stuck and the commit
> to fail, and many other problems, because there was no
> message window to the user.
>
> How do I send messages as output of the hook?

Send the message to STDERR instead of STDOUT and exit with a
non-zero exit status. The client then gets to decide what it
wants to do. Tortoise shows an error window.

(Success windows are out, afaik - no "thank you for your
submission"-window... ;-))

Best regards,

Ulli

----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=985029

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-16 18:30:41 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.