post commit template

joseba.ortega's Avatar

joseba.ortega

11 Sep, 2018 08:04 AM

Hello:
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.

Joseba

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

    develop's Avatar

    Hi Joseba,

    You can find them here: https://code.rhodecode.com/rhodecode-vcsserver/files/c2efa29debcc6e...

    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.
    Bye

  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

Generic

? 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

Recent Discussions

18 Sep, 2018 03:30 PM
17 Sep, 2018 02:08 PM
11 Sep, 2018 09:12 AM
11 Sep, 2018 08:12 AM
06 Sep, 2018 05:38 AM