views:

46

answers:

1

I want to keep Mercurial servers at four different locations, and want them to be identical at any given time. Meaning, any change to any of them must be propagated to all other servers. How to do that?

+5  A: 

You can add an action on the server with an incoming hook.

Hooks allow you to automate tasks when events happen on the repository. Whenever you get a push into the repository, you can push to your mirrors as well.

More on hooks: http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html

leo grrr
You're better off using the 'changegroup' hook instead of the 'incoming' hook. That will push all the csets at once instead of run the hook one for each cset.
Ry4an