[Buildbot-commits] buildbot/buildbot/changes changes.py,1.33,1.34

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


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

Modified Files:
	changes.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: changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/changes.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- changes.py	2 Aug 2007 00:07:18 -0000	1.33
+++ changes.py	2 Aug 2007 00:26:59 -0000	1.34
@@ -219,10 +219,11 @@
     def pruneChanges(self):
         self.changes = self.changes[-100:] # or something
 
-    def eventGenerator(self):
+    def eventGenerator(self, branches=[]):
         for i in range(len(self.changes)-1, -1, -1):
             c = self.changes[i]
-            yield c
+            if not branches or c.branch in branches:
+                yield c
 
     def getChangeNumbered(self, num):
         if not self.changes:





More information about the Commits mailing list