Need a little help with svn post-commit
batch script. Here what I have:
post-commit.bat:
1. @ECHO OFF
2. cd D:\Subversion\...\hooks
3. SET OUTPUT = default
4. FOR /F "tokens=*" %%a in ('revision.bat') do ( SET OUTPUT=%%a )
5. findstr /m "Autobuild" D:\Subversion\...\db\revprops\0\%OUTPUT%
6. if %errorlevel%==0 (
7. call website.bat
8. )
website.bat:
D:\Subversion\...\hooks\wget http://website.com/service-trigger
revision.bat:
svnlook youngest D:\Subversion\...
So, what is happening here is that
After commit to repository, the script extracts the last
revision
numberUses that number to find a file in revision logs
Try to find a particular string in that log
If the particular string exists, fire some URL
My problem is that this script is executed when calling directly from cmd, but when SVN calls it, seems that something weird happens in line #5, because i do not get any error, but line #7 is never called.
I suspect that maybe i should run script as Administrator, but since I had never seriously programmed for Windows, I am not sure and I need some help