質問

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.

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top