[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 07:12:17 -0400

On Tue, Sep 9, 2008 at 06:49, Jan Hendrik <list.jan.hendrik_at_gmail.com> wrote:
> Concerning Re: About pre-revprop-change
> Ryan Schmidt wrote on 9 Sep 2008, 1:13, at least in part:
>
>>
>> On Sep 8, 2008, at 20:17, Craig McQueen wrote:
>
>> > 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?
>>
>> No, as it says above, Subversion will not attempt to run a *.py hook
>> script on Windows. It will only look for the standard Windows
>> executable extensions, such as .exe, .bat, etc. If you want to write
>> your hooks in Python, that's great, but you will still need to write
>> wrapper hooks in e.g. batch which pass the parameters on to the
>> Python hook script and propagate any exit code from the Python script.
>>
>
> 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.

---------------------------------------------------------------------
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 13:12:38 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.