[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: Roger Lipscombe <rogerl_at_1e.com>
Date: Tue, 16 Dec 2008 15:01:51 +0000

You can't show a message box, because the hooks run on the server. Who's there to see them?

-----Original Message-----
From: Ilan Yaniv [mailto:Ilan.Yaniv_at_timetoknow.org]
Sent: Tue 16 December 2008 14:21
To: Andy Levy
Cc: users_at_subversion.tigris.org
Subject: RE: perl hooks

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.

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].

DISCLAIMER: This is a PRIVATE AND CONFIDENTIAL message for the ordinary user of this email address. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind 1E Ltd to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.

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

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