Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So under /svn/repo/hooks I have a post-commit script. Every time we start a new svn repo for another project I need to go to the server and copy the simple master post-commit script.

I noticed under /svn/hooks there's the standard .tpml. Are the hooks in this folder global and apply to all repos? Or is this hooks folder for something else?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I think the tpml files are just templates to copy and modify.. What about creating a script to use in place of "svnadmin create", that would create the new repository AND copy the standard hooks? Or it could just create a symlink to them, so if you need to modify one of them, you don't have to re-copy it inside every repository.

share|improve this answer
    
This is one of the problems of multiple repositories - multiple things to maintain. Not a huge problem, but you do have to consider it. Are you handling backups and authentication properly as well? –  Jim T Sep 17 '09 at 7:55
    
JimT, backups are done as incramental dumps on post-commit. Our repos don't change often, so that works out. The dump is then backed up to our backup server. Authentication is done with standard ApacheAuth –  shaiss Sep 17 '09 at 13:53
    
Joril, I have a script at the moment that does that, minus coping these hooks. I was hooking for a global way to apply them. –  shaiss Sep 17 '09 at 13:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.