A simple Mercurial changegroup hook script for notifying a room in HipChat. Based on git-hipchat-hook by eirc.
Clone this repository somewhere in your Mercurial repository host server.
hg clone git:https://github.com/vkotovv/hg-hipchat-hook.git
Clone hipchat-cli somewhere in your Mercurial repository host server.
git clone git:https://github.com/hipchat/hipchat-cli.git
Go to the .hg/hgrc
in a repository you want to setup the hooks for and add a changegroup
hook based on hipchat_changegroup.sh
and make sure it is executable:
#!/bin/sh
HIPCHAT_SCRIPT="/path/to/hipchat-cli"
HIPCHAT_ROOM="HipChat room name"
HIPCHAT_TOKEN="1234567890"
HIPCHAT_FROM="HG"
. /path/to/hipchat.sh
And you're done!
For Rhodecode, Redmine, and Trac integrations, edit the following configuration in the hipchat_changegroup.sh
hook file:
RHODECODE="https://rhodecode.example.com"
REDMINE="https://redmine.example.com"
TRAC="https://trac.example.com/project"
Many thanks to the contributors: