post commit template

joseba.ortega's Avatar


11 Sep, 2018 08:04 AM

When I create a new repository, I have to change always post-commit hook because we always add some lines to the file. I would like to know where is the post-comit template for modifiing and so, when we create a new repository,that it has the lines integrated.
Thanks in advance.


  1. Support Staff 1 Posted by develop on 11 Sep, 2018 08:11 AM

    develop's Avatar

    Hi Joseba,

    You can find them here:

    in your installed vcsserver you can find the hook_templates directory.

    Located in ~/.rccontrol/vcsserver-1/profile/...

    Those templates are used for installing, just be aware if you ugprade they will be rewritten to the original state.

  2. 2 Posted by joseba.ortega on 11 Sep, 2018 08:20 AM

    joseba.ortega's Avatar

    Thank you very much.

    I check them.

    Thank you.

  3. 3 Posted by joseba.ortega on 11 Sep, 2018 08:53 AM

    joseba.ortega's Avatar

    Hi again.
    Yes, I can see hook's templates.
    post-commit and pre-commit.
    Where is pre-revprop-change template? or post-lock?
    I would like to modify them too.
    I can't find them.
    Thank you in advance.

  4. Support Staff 4 Posted by develop on 11 Sep, 2018 09:12 AM

    develop's Avatar

    Those come from SVN itself, we don't modify those. Please check SVN documentation for possible options.

    However you could use the eventing system, and use webhook on repository_creation action. This way with a small service that listens for those webhooks you could automate all hooks modification

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


17 Oct, 2018 03:22 PM
15 Oct, 2018 05:20 AM
03 Oct, 2018 01:16 PM
01 Oct, 2018 08:41 AM
28 Sep, 2018 10:12 AM
26 Sep, 2018 04:34 AM