You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "BRUGGEMAN Jens (JBRG)" <Je...@seco-m.be> on 2004/10/19 13:36:38 UTC

svnperms python

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