<div dir="ltr"><div>Hi All,<br><br></div><div>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?<br><br></div><div>Regards,<br><br></div><div>Alvaro<br></div><div><br></div><div>I forgot to mention that <br><div class="gmail_quote"><div>On Wed, Apr 5, 2017 at 3:29 PM Alvaro Erickson <<a href="mailto:alvaro.erickson@gmail.com" target="_blank">alvaro.erickson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-6024090342547287174gmail_msg"><div class="m_-6024090342547287174gmail_msg"><div class="m_-6024090342547287174gmail_msg">Greetings all,<br class="m_-6024090342547287174gmail_msg"></div><div class="m_-6024090342547287174gmail_msg"><br class="m_-6024090342547287174gmail_msg"></div>Has anyone had any luck setting up a change hook for a Mercurial repo? I followed what is in the <a href="http://docs.buildbot.net/current/manual/cfg-wwwhooks.html#change-hooks" class="m_-6024090342547287174gmail_msg" target="_blank">Buildbot manual change hooks</a> and the hgbuildbot.py script documentation by doing the following:<br class="m_-6024090342547287174gmail_msg"><br class="m_-6024090342547287174gmail_msg"></div><div class="m_-6024090342547287174gmail_msg"><div style="margin-left:40px" class="m_-6024090342547287174gmail_msg">1. Enabling the base dialect in Buildbot's master.cfg by adding the following code:<br class="m_-6024090342547287174gmail_msg"><br class="m_-6024090342547287174gmail_msg"></div><div style="margin-left:80px" class="m_-6024090342547287174gmail_msg">c['www'] = dict(change_hook_dialects={'<wbr>base': True})<br class="m_-6024090342547287174gmail_msg"></div><br class="m_-6024090342547287174gmail_msg"><div style="margin-left:40px" class="m_-6024090342547287174gmail_msg">2. Copied the hgbuildbot.py from the Buildbot ./master/contrib/ repo to the .hg folder of the repo I want notify Buildbot</div><div style="margin-left:40px" class="m_-6024090342547287174gmail_msg">3. Add the following to the repo's hgrc:</div><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg">[hooks]<br class="m_-6024090342547287174gmail_msg">changegroup.buildbot = python:.hg/hgbuildbot.py:hook<br class="m_-6024090342547287174gmail_msg"><br class="m_-6024090342547287174gmail_msg">[hgbuildbot]<br class="m_-6024090342547287174gmail_msg">venv = /home/buildbotuser/master/lib/<wbr>python2.7/site-packages<br class="m_-6024090342547287174gmail_msg">master = <a href="http://1.2.3.4:8010/change_hook/base" class="m_-6024090342547287174gmail_msg" target="_blank">http://1.2.3.4:8010/change_<wbr>hook/base</a></p><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg">4. Tested the change hook setup by using the Buildbot repo's ./master/contrib/hgbuildbot.py</p><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg">5. And I keep the getting following error in the twisted.log, no matter what I tried (like changing the ip address to localhost):</p><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg">[_GenericHTTPChannelProtocol,<wbr>0,10.10.1.249] The dialect specified, 'base', wasn't whitelisted in change_hook</p><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg">[_GenericHTTPChannelProtocol,<wbr>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</p><p style="margin-left:40px" class="m_-6024090342547287174gmail_msg"><br class="m_-6024090342547287174gmail_msg"></p><p class="m_-6024090342547287174gmail_msg">Regards,</p><p class="m_-6024090342547287174gmail_msg">Alvaro<br class="m_-6024090342547287174gmail_msg"></p></div></div>
</blockquote></div></div></div>