문제

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