Skip to content

Commit

Permalink
re-add AnyBranchScheduler consructor arg 'branches"
Browse files Browse the repository at this point in the history
This was (accidentally?) removed in the schedulerdb merge (fixes buildbot#764)
  • Loading branch information
Dustin J. Mitchell committed Mar 29, 2010
1 parent ebfe1b6 commit 9515337
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions buildbot/schedulers/basic.py
Expand Up @@ -165,7 +165,7 @@ class AnyBranchScheduler(Scheduler):
'fileIsImportant', 'properties', 'change_filter')
def __init__(self, name, treeStableTimer, builderNames,
fileIsImportant=None, properties={}, categories=None,
change_filter=None):
branches=None, change_filter=None):
"""
@param name: the name of this Scheduler
@param treeStableTimer: the duration, in seconds, for which the tree
Expand All @@ -190,11 +190,12 @@ def __init__(self, name, treeStableTimer, builderNames,
@param change_filter: a buildbot.schedulers.filter.ChangeFilter instance
used to filter changes for this scheduler
@param categories: A list of categories of changes to accept
@param branches: (deprecated)
@param categories: (deprecated)
"""

base.BaseScheduler.__init__(self, name, builderNames, properties)
self.make_filter(change_filter=change_filter, categories=categories)
self.make_filter(change_filter=change_filter, branch=branches, categories=categories)
self.treeStableTimer = treeStableTimer
if fileIsImportant:
assert callable(fileIsImportant)
Expand Down

0 comments on commit 9515337

Please sign in to comment.