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:

  1. post-commit.tmpl
  2. post-lock.tmpl
  3. post-revprop-change.tmpl
  4. post-unlock.tmpl
  5. pre-commit.tmpl
  6. pre-lock.tmpl
  7. pre-revprop-change.tmpl
  8. pre-unlock.tmpl
  9. 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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -