Question

I want mercurial server to ssh-send some revision to some production server (customer's side) on specific tag name set by any user. Something very similar to Continuous Integration platform that pushes updates to agents at certain criterion.

Was it helpful?

Solution

First, you can't centrally do anything if someone sets a tag. Mercurial is decentralized, so unless all your developers install a hook for this on their machines, you can't initiate anything from their local actions.

On the other hand, what you could is install a hook on a server they push to, that pushes a revision to some other client or server iff the .hgtags file has changed in the latest revision (and you could inspect exactly how it has changed from the hook code).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top