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

Re: Subversion - .wsf hook scripts on Windows

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-01-05 02:57:52 CET

On 1/4/07, Daniel Rall <dlr@collab.net> wrote:
> On Thu, 04 Jan 2007, Andy Levy wrote:
> > I've been attempting to make use of this functionality, but it's not
> > working for me. I created a very basic pre-commit.wsf, but when I
> > commit (SVN 1.4.0 via Apache 2.0.59, on WinXP SP2), I get the
> > following response sent back:
> >
> > Error: Failed to start 'C:\Repositories/Test/hooks/pre-commit.wsf' hook
> >
> > However, if I write a pre-commit.bat which simply calls this script,
> > it does execute:
> >
> > c:\Windows\system32\cscript.exe //B //Nologo
> > C:\Repositories\Test\hooks\pre-commit.wsf %1 %2 %3 %4 %5
>
> A long-shot here, but could this be related to differences in the path
> separators between the execution of these WSF scripts ("\" vs. "/")?

Thought about that for a second, but when I mixed forward and backward
slashes in the path to the script and ran from the command line, it
executed properly.

>
> > Has this been successfully tested, and I'm just missing something in
> > my environment? Thanks for any insight you can provide.
>
> No Andy, I wasn't setup to test this out at the time Stuart provided
> the patch.
>
> If I provided you with a patch which ran WSF files using cscript.exe,
> would you be able to build Subversion on Windows and test it out in
> your environment?

It may take me a couple days to get a build environment set up at home
(Subversion isn't my primary responsibility at work, so I need to
approach this as more of a personal project). If I can contribute
something useful back to Subversion, it'd be a great feeling.

> In any case, thanks for the report. Would you mind if we include the
> dev@subversion.tigris.org mailing list on further discussion?

Not a problem. I just signed myself up so I don't miss anything. I'll
email you off-list when I get a build environment set up and we'll
give it a shot.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 5 02:58:00 2007

This is an archived mail posted to the Subversion Dev mailing list.