I need the equivalent of git post-receive
hook in Mercurial so I can notify another service that a push has been done to the repository.
What I need in my hook is simple: changeset revision of the last changeset.
Of course I understand that the difference with git is that the ref
won't be named, and there can be multiple heads pushed to the repository. I might be OK with that.
What I don't want for the moment, is the behavior of my current implementation using hg incoming
hook: I have the revision of every pushed changeset.
Then, to sum up, what is hg
best way to be notified of the last pushed commit to a repository ?
EDIT: The goal is to notify another service to pull from the repository because new code has arrived. But I don't want the service to pull for every changeset in the push