[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: Jan Hendrik <list.jan.hendrik_at_gmail.com>
Date: Tue, 9 Sep 2008 12:49:22 +0200

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.

Jan Hendrik
---------------------------------------
Freedom quote:

     Our lives begin to end the day we become silent about things that matter.
               -- Martin Luther King Jr.

---------------------------------------------------------------------
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 12:47:34 CEST

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