Change "Scheduler" to "SingleBranchScheduler" per 0.8.4
authorDan Scott <dan@coffeecode.net>
Wed, 6 Jul 2011 14:49:04 +0000 (10:49 -0400)
committerDan Scott <dan@coffeecode.net>
Wed, 6 Jul 2011 14:49:04 +0000 (10:49 -0400)
In buildbot 0.8.4, the Scheduler becomes a SingleBranchScheduler to make
way for other kinds of Schedulers: see
http://buildbot.net/buildbot/docs/current/SingleBranchScheduler.html

Signed-off-by: Dan Scott <dscott@laurentian.ca>
examples/buildbot.cfg

index c2a980c..4361a32 100644 (file)
@@ -82,24 +82,24 @@ eg_master_filter = ChangeFilter(project='Evergreen', branch="master")
 # Configure the Schedulers, which decide how to react to incoming changes.  In this
 # case, just kick off a 'runtests' build
 
-from buildbot.scheduler import Scheduler
+from buildbot.scheduler import SingleBranchScheduler
 c['schedulers'] = []
-c['schedulers'].append(Scheduler(name="osrf-master-full",
+c['schedulers'].append(SingleBranchScheduler(name="osrf-master-full",
             treeStableTimer=300,
             change_filter=master_filter,
             builderNames=["osrf-master-ubuntu-10.04-x86_64"]))
 
-c['schedulers'].append(Scheduler(name="osrf-rel_1_6",
+c['schedulers'].append(SingleBranchScheduler(name="osrf-rel_1_6",
             treeStableTimer=300,
             change_filter=rel_1_6_filter,
             builderNames=["osrf-rel_1_6-ubuntu-10.04-x86_64"]))
 
-c['schedulers'].append(Scheduler(name="osrf-rel_2_0",
+c['schedulers'].append(SingleBranchScheduler(name="osrf-rel_2_0",
             treeStableTimer=300,
             change_filter=rel_2_0_filter,
             builderNames=["osrf-rel_2_0-ubuntu-10.04-x86_64"]))
 
-c['schedulers'].append(Scheduler(name="evergreen-rel_1_6_1",
+c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_1_6_1",
             treeStableTimer=300,
             change_filter=eg_rel_1_6_1_filter,
             builderNames=[
@@ -108,7 +108,7 @@ c['schedulers'].append(Scheduler(name="evergreen-rel_1_6_1",
                 "evergreen-rel_1_6_1-ubuntu-10.04-x86"
             ]))
 
-c['schedulers'].append(Scheduler(name="evergreen-rel_2_0",
+c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_2_0",
             treeStableTimer=300,
             change_filter=eg_rel_2_0_filter,
             builderNames=[
@@ -117,7 +117,7 @@ c['schedulers'].append(Scheduler(name="evergreen-rel_2_0",
                 "evergreen-rel_2_0-ubuntu-10.04-x86"
             ]))
 
-c['schedulers'].append(Scheduler(name="evergreen-rel_2_1",
+c['schedulers'].append(SingleBranchScheduler(name="evergreen-rel_2_1",
             treeStableTimer=300,
             change_filter=eg_rel_2_1_filter,
             builderNames=[
@@ -126,7 +126,7 @@ c['schedulers'].append(Scheduler(name="evergreen-rel_2_1",
                 "evergreen-rel_2_1-ubuntu-10.04-x86"
             ]))
 
-c['schedulers'].append(Scheduler(name="evergreen-master",
+c['schedulers'].append(SingleBranchScheduler(name="evergreen-master",
             treeStableTimer=300,
             change_filter=eg_master_filter,
             builderNames=[