[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: Simon Lucy <simon.lucy_at_objective2k.com>
Date: Tue, 16 Dec 2008 16:22:43 +0000

Ilan Yaniv wrote:
> Fine, the reason to all those messages is that I got no answer for the
> whole day long, and this is the reason I opened so many questions, sorry
> for the trouble.
>
> Next,
> 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.
>
You really want a client side hook then and there are security issues
with those. If your users have Tortoise then you can have client side
hooks in that which could open a dialog box but it wouldn't work for the
command line.

S

> 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?
>
> Ilan Yaniv
>
> -----Original Message-----
> From: Andy Levy [mailto:andy.levy_at_gmail.com]
> Sent: Tuesday, December 16, 2008 4:15 PM
> To: Ilan Yaniv
> Cc: users_at_subversion.tigris.org
> Subject: Re: perl hooks
>
> On Tue, Dec 16, 2008 at 06:47, Ilan Yaniv <Ilan.Yaniv_at_timetoknow.org>
> wrote:
>
>> So here is the thing.
>>
>> I have a perl script. It is running OK from command line
>>
>> But when I execute the script from hook (I run in command line svn
>> commit...) nothing happens.
>>
>> Why ?????
>>
>
> Because on a Windows server, your pre-commit script must be
> pre-commit.bat, pre-commit.exe or pre-commit.cmd. IOW, it must be an
> executable, or a Windows batch file/CMD script which then calls your
> Perl script.
>
> BTW, you seem to have posted a large number of messages on this one
> topic today. Please consider carefully before posting, and post your
> complete message all at once. If you must "continue" a topic, please
> reply to your original post, such that it all appears in one
> discussion thread.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=985019
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

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

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