I am looking for some solution where a push made to a branch in production server is redirected to some other mercurial server. I can then trigger a hook, run some basic tests and send the changes back to the production server only if my tests pass.
How do I redirect incoming changes to another mercurial server? How do I merge them back to the production server?
So far I have looked into pretxnchangegroup.HOOK_NAME, pre-HOOK_NAME, incoming-HOOK_NAME, but I haven't got far using them.