Parameters of log-police.py
Hi All, Am using svnserve 1.7.6 on my windows machine... now am trying to use log-police.py to modify the svn:log in pre-commit hook. while calling log-police.py with -t %txn% %Repos% as argument in pre-commit.bat... its not showing any error python just crashing pls can anyone help me to make this script workable. Thanks.
Unless %txn% and %repos% have values explicitly set in your BAT file, you're passing empty parameters to the script. Assign values to them using the parameters passed into the BAT file (%1, %2, etc.) or just pass %1 & %2 in directly. See pre-commit.tmpl for documentation on what order the parameters come in.
ya i have assigned value before passing it, My pre-commit.bat @echo off SET REPOS=%1 SET TXN=%2 echo %TXN% %REPOS% > C:\Users\venkateshkumarg\Desktop\Txn.txt C:\Python27\python.exe C:\Hooks\pre-commit\log_police.py %s -t %TXN% %REPOS% but its crashing Thanks,
1-3 of 3
Reply to this discussion
You cannot edit posts or make replies: You should be logged in before you can post.