[Buildbot-commits] buildbot/buildbot interfaces.py,1.57,1.58

Brian Warner warner at users.sourceforge.net
Thu Aug 2 00:27:01 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15487/buildbot

Modified Files:
	interfaces.py 
Log Message:
[project @ waterfall: add branch= query-arg, to filter display by branch]

Original author: warner at lothar.com
Date: 2007-08-02 00:17:30+00:00

Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- interfaces.py	2 Aug 2007 00:07:17 -0000	1.57
+++ interfaces.py	2 Aug 2007 00:26:59 -0000	1.58
@@ -323,12 +323,18 @@
         delivered."""
 
 class IEventSource(Interface):
-    def eventGenerator():
+    def eventGenerator(branches=[]):
         """This function creates a generator which will yield all of this
         object's status events, starting with the most recent and progressing
         backwards in time. These events provide the IStatusEvent interface.
         At the moment they are all instances of buildbot.status.builder.Event
-        or buildbot.status.builder.BuildStepStatus ."""
+        or buildbot.status.builder.BuildStepStatus .
+
+        @param branches: a list of branch names. The generator should only
+        return events that are associated with these branches. If the list is
+        empty, events for all branches should be returned (i.e. an empty list
+        means 'accept all' rather than 'accept none').
+        """
 
 class IBuildStatus(Interface):
     """I represent the status of a single Build/BuildRequest. It could be





More information about the Commits mailing list