[Buildbot-commits] buildbot/buildbot/status/web waterfall.py, 1.10, 1.11
Brian Warner
warner at users.sourceforge.net
Thu Aug 2 00:27:01 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15487/buildbot/status/web
Modified Files:
waterfall.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: waterfall.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/waterfall.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- waterfall.py 1 Aug 2007 22:27:29 -0000 1.10
+++ waterfall.py 2 Aug 2007 00:26:59 -0000 1.11
@@ -400,12 +400,12 @@
def buildGrid(self, request, builders):
debug = False
-
- # XXX: see if we can use a cached copy
+ # TODO: see if we can use a cached copy
showEvents = False
if request.args.get("show_events", ["true"])[0].lower() == "true":
showEvents = True
+ filterBranches = request.args.get("branch", [])
# first step is to walk backwards in time, asking each column
# (commit, all builders) if they have any events there. Build up the
@@ -436,7 +436,7 @@
return event
for s in sources:
- gen = insertGaps(s.eventGenerator(), lastEventTime)
+ gen = insertGaps(s.eventGenerator(filterBranches), lastEventTime)
sourceGenerators.append(gen)
# get the first event
sourceEvents.append(get_event_from(gen))
More information about the Commits
mailing list