[users at bb.net] Help with Mercurial repo change hook

Alvaro Erickson alvaro.erickson at gmail.com
Thu Apr 6 16:14:45 UTC 2017


Hi All,

Sorry, I forgot to mention that I am using Buildbot version 0.9.1. Also,
another question, has anyone had luck setting up and/or enabling the base
change hook?

Regards,

Alvaro

I forgot to mention that
On Wed, Apr 5, 2017 at 3:29 PM Alvaro Erickson <alvaro.erickson at gmail.com>
wrote:

> Greetings all,
>
> Has anyone had any luck setting up a change hook for a Mercurial repo? I
> followed what is in the Buildbot manual change hooks
> <http://docs.buildbot.net/current/manual/cfg-wwwhooks.html#change-hooks>
> and the hgbuildbot.py script documentation by doing the following:
>
> 1. Enabling the base dialect in Buildbot's master.cfg by adding the
> following code:
>
> c['www'] = dict(change_hook_dialects={'base': True})
>
> 2. Copied the hgbuildbot.py from the Buildbot ./master/contrib/ repo to
> the .hg folder of the repo I want notify Buildbot
> 3. Add the following to the repo's hgrc:
>
> [hooks]
> changegroup.buildbot = python:.hg/hgbuildbot.py:hook
>
> [hgbuildbot]
> venv = /home/buildbotuser/master/lib/python2.7/site-packages
> master = http://1.2.3.4:8010/change_hook/base
>
> 4. Tested the change hook setup by using the Buildbot repo's
> ./master/contrib/hgbuildbot.py
>
> 5. And I keep the getting following error in the twisted.log, no matter
> what I tried (like changing the ip address to localhost):
>
> [_GenericHTTPChannelProtocol,0,10.10.1.249] The dialect specified,
> 'base', wasn't whitelisted in change_hook
>
> [_GenericHTTPChannelProtocol,0,10.10.1.249] Note: if dialect is 'base'
> then it's possible your URL is malformed and we didn't regex it properly
>
>
> Regards,
>
> Alvaro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170406/76963d81/attachment.html>


More information about the users mailing list