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

Re: post-commit script on windows 2000

From: <Rafael.EgidoArteaga_at_telefonica.es>
Date: 2006-01-05 14:02:31 CET

05/01/2006 09:46

        Para: users@subversion.tigris.org
        Asunto: post-commit script on windows 2000

Iīm trying tu use the post-commit script on windows 2000 and y canīt make
it to execute.
I have tryed with post-commit.bat and post-commit.exe.

The post-commit only does the following thing:
net send <ip> <message>

I donīt use any path or argument in de post-commit

The post commit is in the hooks dir of my repository.

Any idea of why I canīt execute the post-commit?

Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.es

Hi again.
Now I have a problem when trying to run a python script.
The script is the trac-post-commit-hook.py that can be downloaded in the
Subversion web site

I get Syntax Error in two lines.

The lines are:
ticketPattern = re.compile(r'#([0-9]*)')


commandPattern = re.compile(leftEnv
+r'(?P<action>[A-Za-z]*).?(?P<ticket>#[0-9]+(?:(?:[,&]*|[ ]?and[
]?)#[0-9]+)*)' + rghtEnv)

The errors are:

File "C:\Python23\Scripts\trac-post-commit-hook.py",
line 101
    ticketPattern = re.compile(r'#([0-9]*)')
SyntaxError: invalid syntax


File "C:\Python23\Scripts\trac-post-commit-hook.py",
line 102
    commandPattern = re.compile(leftEnv
+r'(?P<action>[A-Za-z]*).?(?P<ticket>#[0-9]+(?:(?:[, &]*|[ ]?and[
]?)#[0-9]+)*)' + rghtEnv)
SyntaxError: invalid syntax

I hope somebody could help me.
Received on Thu Jan 5 14:26:05 2006

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.