[Buildbot-devel] Multiple branches with HgPoller?

Steve Hoelzer shoelzer at gmail.com
Tue Jun 17 15:56:58 UTC 2014


On Mon, Jun 16, 2014 at 11:06 AM, Georges Racinet <gracinet at anybox.fr> wrote:
> Hi,
>
> On 06/16/2014 05:44 PM, Steve Hoelzer wrote:
>> I'm running BuildBot 0.8.8 on Windows and I use HgPoller to find
>> changes on the default branch in my Mercurial repo. Now I'd like to do
>> the same thing on another branch in the same repo but I can't figure
>> out how to get it working.
>>
>> I know that GitPoller can be configured to watch multiple branches or
>> all branches of a repo, but HgPoller doesn't seem to support that. It
>> always looks at a single branch.
>>
>> I tried having multiple HgPollers, but then I get an error on startup
>> because both HgPollers have the same repo address. The error says:
>>
>>       File "C:\Python27\lib\site-packages\twisted-13.2.0-py2.7-win32.egg\twisted\application\service.py",
>> line 303, in addService
>>         " '%s'" % service.name)
>>     exceptions.RuntimeError: cannot have two services with same name
>> '<my_repo_url>'
>>
>> What else can I try?
> I do have a fix for this issue, also known as
> http://trac.buildbot.net/ticket/2469, still need to make it meet the
> buildbot standards though (it's just making the service name of the
> poller derive also from the branch).

That sounds pretty straight forward. Can you share your code? What
needs to be done to "meet the buildbot standards"?

I think it would be nicer conceptually to have one poller (per repo)
watch all branches of interest. Do you have a feel for the amount of
work to make that happen?

Thanks,
Steve




More information about the devel mailing list