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

RE: Re: using custom hooks

From: Shawn Talbert <stalbert_at_exploreconsulting.com>
Date: Wed, 16 Jan 2008 11:05:31 -0800

I hate the inefficiency of the
launch-cmd.exe-then-launch-PS.exe-then-your-script.

When I looked into this, I seem to recall it was a limitation of the
portable library svn uses - it does not launch the hook scripts via the
Windows shell, so just adding a file association won't work. At least I
think that was the issue...

In any case, we currently just write our scripts in C# and compile them.
This works pretty well since compilation is trivial and the scripts execute
quickly. Also nice having the full richness of C# at hand (part of that
richness is one reason PowerShell would be attractive over other scripting
technologies)

-----Original Message-----
From: si [mailto:sshnug.si_at_gmail.com]
Sent: Tuesday, January 15, 2008 5:19 PM
To: fvdploeg_at_xs4all.nl
Cc: users_at_subversion.tigris.org
Subject: Re: Re: using custom hooks

Hi,

Just like to add that (on windows) if you're implementing a
post-commit hook, if the hook process has the potential to be
time-consuming and you don't want the client left waiting, verify that
the process is being spawned.

A simple way to test this is placing a delay in your script and then
performing a trivial commit; if the client is left waiting based on
your delay, it's not spawning.

Note that I haven't tested this issue on more recent svn releases, but
it was a problem on windows for svn >= v1.3.1, so I ended up writing a
simple program to resolve this (google hookstart)

cheers
si

-- 
It's a wild world that we live in, you step to the vibe like a new
found religion, take your position, compile your vision, futurism,
algorithm has risen up!                                pfm - the western
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-16 20:05:53 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.