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

Re: About pre-revprop-change

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 9 Sep 2008 08:33:59 -0400

On Tue, Sep 9, 2008 at 07:34, John Peacock
<john.peacock_at_havurah-software.org> wrote:
> Andy Levy wrote:
>>
>> On Tue, Sep 9, 2008 at 06:49, Jan Hendrik <list.jan.hendrik_at_gmail.com>
>> wrote:
>>>
>>> So this is a Subversion limition, is it? For running helloworld.py
>>> from the CMD prompt just like that works quite fine, no need to call
>>> python.exe in front.
>>
>> I'll have to try again when I get to work; I've never been able to get
>> a Perl script to run without calling perl.exe.
>
> No, it is really a *Windows* limitation. The file association magic in
> Windows is a feature of the CMD shell and Windows Explorer; it causes an
> interpreter to be called to handle the associated file types.
>
> The Subversion hook process is not executing in a shell and can only exec
> the list of files that Windows itself (i.e. without an interpreter) can
> handle:
>
>
> subversion/libsvn_repos/hooks.c:
> ...
> #ifdef WIN32
> /* For WIN32, we need to check with file name extension(s) added.
>
> As Windows Scripting Host (.wsf) files can accomodate (at least)
> JavaScript (.js) and VB Script (.vbs) code, extensions for the
> corresponding file types need not be enumerated explicitly. */
> ".exe", ".cmd", ".bat", ".wsf", /* ### Any other extensions? */
> ...
>
> If you want to write hooks for Windows, you have to wrap them in a .cmd,
> .bat, or .wsf file. NOTE: If you are using ActiveState's Perl, they include
> a small utility <runperl.bat> which will call your Perl script from a batch
> file automatically:

I thought when I'd been working with the devs a while back that we
concluded that WSF didn't work. I know I do have to run cscript.exe
<filename>.wsf on the command line.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-09 14:34:18 CEST

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.