[Buildbot-devel] Filtering on Revision

A.T.Hofkamp a.t.hofkamp at tue.nl
Thu Nov 20 07:54:38 UTC 2008


David A. Greene wrote:
> I want to set up a BuildBot that builds every N SVN revision.  For example,
> if N is 200, I'd llike to build at revisions 200, 400, 800, etc. when they 
> occur.
> 
> I tried setting up a Scheduler Scheduler like this:
> 
> # Ignore changes that are not revision mod 200
> def change_interval(change):
>   if (change.revision == None)
>     return False
>   if (change.revision % 200 == 0)
>     return True
>   else
>     return False

At the line before each indented block, you should use a colon, thus also at 
the end of the 'if' and 'else' lines.

That should solve your syntax errors.

 > Is this the right way to go about things?  How should this kind of thing be
 > done?

Sorry, don't know, never investigated Schedulers. Maybe some one else can help 
you.


Sincerely,
Albert





More information about the devel mailing list