Issue #385 invalid

SCM Manager hooks for Mercurial

p_b
created an issue

This is more of a question as I couldn't find any documentation. Perhaps a proposal to add this in the documentation. So I have the following under the .hg\hgrc

[web] push_ssl = false allow_read = * allow_push = *

[hooks] changegroup.scm = python:scmhooks.callback pretxnchangegroup.scm = python:scmhooks.callback

In order to add automatic synchronization after a commit (to update the remote repository), the mercurial documentation indicates to add

[hooks] changegroup = hg update

to the remote repository. What do I need to add to the hooks section for the update to work in SCM Manager and not break the python callback routine?

Comments (2)

  1. Sebastian Sdorra repo owner

    Just append the update to the hooks section e.g.:

    [hooks]
    changegroup.scm = python:scmhooks.callback
    pretxnchangegroup.scm = python:scmhooks.callback
    changegroup = hg update
    

    Next time please use the mailing list for questions like these.

  2. p_b reporter

    Thanks for you prompt reply, I will be sure to use the mailing lists from now on for questions.

    On Wed, Apr 24, 2013 at 3:32 AM, Sebastian Sdorra <

  3. Log in to comment