The branch, master has been updated via 5bb0d4c Only print builds: line when there are builds. from 565a91e Avoid visiting nodes more than once.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 5bb0d4c01af9c808356897dc0ffdf83515e96fd7 Author: Jelmer Vernooij <jel...@samba.org> Date: Tue Nov 23 01:24:21 2010 +0100 Only print builds: line when there are builds. ----------------------------------------------------------------------- Summary of changes: buildfarm/web/__init__.py | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) Changeset truncated at 500 lines: diff --git a/buildfarm/web/__init__.py b/buildfarm/web/__init__.py index 77bc1db..3db8830 100755 --- a/buildfarm/web/__init__.py +++ b/buildfarm/web/__init__.py @@ -790,13 +790,14 @@ class HistoryPage(BuildFarmPage): yield web_paths(tree, removed) yield "</div>\n" - yield "<div class=\"builds\">\n" - yield "<span class=\"label\">Builds: </span>\n" - builds = self.buildfarm.get_revision_builds(tree.name, entry.revision) - for build in builds: - yield "%s(%s) " % (build_link(myself, build), host_link(myself, build.host)) - yield "</div>\n" - yield "</div>\n" + builds = list(self.buildfarm.get_revision_builds(tree.name, entry.revision)) + if builds: + yield "<div class=\"builds\">\n" + yield "<span class=\"label\">Builds: </span>\n" + for build in builds: + yield "%s(%s) " % (build_link(myself, build), host_link(myself, build.host)) + yield "</div>\n" + yield "</div>\n" class DiffPage(HistoryPage): -- build.samba.org