svn - How are the subversion hook templates generated for each repository? -
we using subversion edge 5.2 on windows.
whenever create repo, hooks folder within repo pre-populated following templates:
- post-commit.tmpl
- post-lock.tmpl
- post-revprop-change.tmpl
- post-unlock.tmpl
- pre-commit.tmpl
- pre-lock.tmpl
- pre-revprop-change.tmpl
- pre-unlock.tmpl
- start-commit.tmpl
where master copies kept? want override post-commit.tmpl whenever create new repo uses our version, saves manual step of going folder , replacing file manually.
tia
i think misunderstanding: these hooks examples , templates (.tmpl). not runnable if modify them, need make them executable. manual step still necessary.
they defined directly in svn source code: link repos.c (search "/* start-commit hook. */")
so unfortunately cannot change default hook templates(unless want patch svn sourcecode , build yourself..)
Comments
Post a Comment