[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Wed Nov 17 02:30:32 MST 2010
The branch, master has been updated
via d7832c5 Cope with unknown trees.
from 20c6f90 Fix age handling.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit d7832c54a632c0a942719f94f6cc3229a01d4dcc
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Wed Nov 17 10:30:00 2010 +0100
Cope with unknown trees.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/web/__init__.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py
index 7a2bf2a..6daec21 100755
--- a/buildfarm/web/__init__.py
+++ b/buildfarm/web/__init__.py
@@ -29,6 +29,7 @@
# TODO: Allow filtering of the "Recent builds" list to show
# e.g. only broken builds or only builds that you care about.
+from collections import defaultdict
import os
from buildfarm import (
@@ -760,15 +761,9 @@ class ViewHostPage(BuildFarmPage):
class ViewSummaryPage(BuildFarmPage):
def _get_counts(self):
- broken_count = {}
- panic_count = {}
- host_count = {}
-
- # zero broken and panic counters
- for tree in self.buildfarm.trees:
- broken_count[tree] = 0
- panic_count[tree] = 0
- host_count[tree] = 0
+ broken_count = defaultdict(lambda: 0)
+ panic_count = defaultdict(lambda: 0)
+ host_count = defaultdict(lambda: 0)
# set up a variable to store the broken builds table's code, so we can
# output when we want
--
build.samba.org
More information about the samba-cvs
mailing list