Skip to content

Commit

Permalink
Allow c['mergeRequests'] = True
Browse files Browse the repository at this point in the history
This is the default, and therefore unnecessary, but it shouldn't be
explicitly disallowed.  Refs #2008.
  • Loading branch information
djmitche committed Jun 25, 2011
1 parent 977eb41 commit 8893166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ def do_load(_):
isinstance(logMaxTailSize, int):
raise ValueError("logMaxTailSize needs to be None or int")
mergeRequests = config.get('mergeRequests')
if mergeRequests not in (None, False) and not callable(mergeRequests):
if (mergeRequests not in (None, True, False)
and not callable(mergeRequests)):
raise ValueError("mergeRequests must be a callable or False")
prioritizeBuilders = config.get('prioritizeBuilders')
if prioritizeBuilders is not None and not callable(prioritizeBuilders):
Expand Down

0 comments on commit 8893166

Please sign in to comment.