[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: Craig McQueen <mcqueen-c_at_edsrd1.yzk.co.jp>
Date: Tue, 09 Sep 2008 10:17:38 +0900

Andy Levy wrote:
> On Mon, Sep 8, 2008 at 10:32, Jan Hendrik <list.jan.hendrik_at_gmail.com> wrote:
>
>> Concerning Re: About pre-revprop-change
>> Andy Levy wrote on 8 Sep 2008, 8:33, at least in part:
>>
>>
>>> Last I knew, WSH scripts (.js, .vbs and .wsf) were not directly
>>> callable from the hooks because they require an interpreter, they
>>> aren't executed directly by the system. At least that was the
>>> conclusion that was reached when I was discussing with a couple of the
>>> devs a year or so ago.
>>>
>>> To use WSH scripts, you have to call them from a batch file.
>>>
>> I can't tell from own experience as I use plain batch here. However,
>> I guess that limitation would apply to other interpreted (= script)
>> languages like Perl or Python as well, wouldn't it?
>>
>
> On Windows, yes. You have to invoke them from a BAT file.
>
I've installed Python 2.5, and the installer associates *.py files with
the Python interpreter. So if you double-click on a *.py file, or type
its name in a command window, the script runs via the Python
interpreter. I haven't tried it, but I thought that would mean I could
write a "pre-revprop-change.py" hook script and it could run directly.
Has anyone done this?

Regards,
Craig McQueen
Received on 2008-09-09 04:31:16 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.