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

svnperms python

From: BRUGGEMAN Jens (JBRG) <Jens.Bruggeman_at_seco-m.be>
Date: 2004-10-19 15:36:38 CEST

Hi,
 
I have installed python on a Windows server where SVN runs aswell.
I have installed svnperms.py in the /hook directory.
Alsoo a .bat file which contains the following:
pre-commit.bat:
set REPOS=%1
set TXN=%2
python C:\repositories\MyRepository\hooks\svnperms.py -r "%REPOS%" -t
"%TXN%" || exit 1
 
The svnperms.py searches the .config file which is in the /repository/config
directory.
python is added in my PATH environment variable.
 
I get an error when i want to use this script:
svnlook changed C:\repositories\MyRepository -t 9-1
'{' is not recognized as an internal or external command, operable program
or batch file.
error: command failed: svnlook changed C:\repositories\MyRepository -t 9-1
'{' is not recognized as an internal or external command, operable program
or batch file.
 
I have added some extra sys.stderr operations so i know the problem is when
'command utility'.
commands.getstatusoutput(string) returns an error here
 
 
Am i correct this tool can only be used on Unix platforms and not on
Windows? How can I run svnperms correctly then?
 
Best regards,
Jens
Received on Tue Oct 19 15:41:13 2004

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.