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

RE: RE: Re: using custom hooks

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: Thu, 17 Jan 2008 08:48:28 -0500

> -----Original Message-----
> From: Shawn Talbert [mailto:stalbert_at_exploreconsulting.com]
>
> 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)
------8<------------

I totally agree. When evaluating Subversion, I wrote a C# command-line
app to act as a pre-commit hook, and it worked like a charm. In my
case, it called the svn dos commands. I believe there is an API
available (did you use it, and if so, where can I get it?) that takes
out the shell overhead. With just a little extra work, I can make this
one executable configuratble to the extreme.

--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
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-17 14:48:51 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.