Hi
Looking for (working)Hook Script to restrict Folder deletion/update.
If we have some documentation to to the required setup, it would be really helpful
Last updated
Last updated
jatin;123069Thaks for providing patch details but not sure how to use it.[/QUOTE] Google the patch command. You can also do it by hand in a text editor. It doesn't look that intricate. [QUOTE=jatin;123069]Attching the updated bat file below. Pls suggest if you see any problem with that script set REPOS=%1 set TXN=%2 set HOOKS_DIR=C:\csvn\data\repositories\Test\hooks set SVNLK="C:\csvn\bin\svnlook.exe" C:\csvn\data\repositories\Test\hooks\svnperms.py -r "%REPOS%" -t "%TXN%" -f C:\csvn\data\repositories\Test\conf\svnperms.conf exit 1 exit 0Try this: "C:\program files\python25\python.exe" C:\csvn\data\repositories\Test\hooks\svnperms.py -r "%REPOS%" -t "%TXN%" -f C:\csvn\data\repositories\Test\conf\svnperms.conf || exit 1 exit 0 Change the bolded part to the correct path to the Python you installed. You did install Python, yes? I'm beginning to wonder if you did.
GPinzone;123072Google the patch command. You can also do it by hand in a text editor. It doesn't look that intricate. Jatin --> I tried to search but no luck Try this: "C:\program files\python25\python.exe" C:\csvn\data\repositories\Test\hooks\svnperms.py -r "%REPOS%" -t "%TXN%" -f C:\csvn\data\repositories\Test\conf\svnperms.conf || exit 1 exit 0 Change the bolded part to the correct path to the Python you installed. You did install Python, yes? I'm beginning to wonder if you did.Jatin ---> Yes Python is already installed. I am getting error during commit. I modified the bat file as below: set REPOS=%1 set TXN=%2 set HOOKS_DIR=C:\csvn\data\repositories\Test\hooks set SVNLOOK="C:\csvn\bin\svnlook.exe" "C:\csvn\Python25\python.exe" C:\csvn\data\repositories\Test\hooks\svnperms.py -r "%REPOS%" -t "%TXN%" -f C:\csvn\data\repositories\Test\conf\svnperms.conf -A "user1"|| exit 1 exit 0 I [ATTACH]266[/ATTACH][ATTACH]267[/ATTACH]
GPinzone;123079You didn't use a patched svnperms.py. Try the one I'm attaching. I had to zip it to upload it: [ATTACH]268[/ATTACH] I can't test it. Hopefully this will fix it.Thank You !!!! this worked
1-15 of 15
You cannot edit posts or make replies: You should be logged in before you can post.