[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Fri Nov 12 12:11:16 MST 2010
The branch, master has been updated
via b5385e7 Provide stub get_previous_revision.
from 83a49ae Fix argument order.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit b5385e7133e3fe38ff01d328a92d0dec02d685f1
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Fri Nov 12 20:12:08 2010 +0100
Provide stub get_previous_revision.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/data.py | 3 +++
import-and-analyse.py | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/data.py b/buildfarm/data.py
index 9f982db..24e05d7 100644
--- a/buildfarm/data.py
+++ b/buildfarm/data.py
@@ -459,6 +459,9 @@ class BuildResultStore(object):
# $st = $dbh->prepare("INSERT INTO build (tree, revision, commit_revision, host, compiler, checksum, age, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?)")
# $st->execute($tree, $rev, $commit, $host, $compiler, $checksum, $stat->ctime, $status_html)
+ def get_previous_revision(self, tree, host, compiler, revision):
+ raise NoSuchBuildError(self):
+
"""
def get_previous_revision(self, tree, host, compiler, revision):
# Look up the database to find the previous status
diff --git a/import-and-analyse.py b/import-and-analyse.py
index f1b90f5..89dae0a 100755
--- a/import-and-analyse.py
+++ b/import-and-analyse.py
@@ -12,7 +12,7 @@ on recent commits.
from buildfarm import (
BuildFarm,
- hostdb,
+ data,
)
from email.mime.text import MIMEText
import logging
@@ -94,7 +94,7 @@ for build in buildfarm.get_new_builds():
try:
prev_rev = buildfarm.builds.get_previous_revision(build.tree, build.host, build.compiler, rev)
- except hostdb.NoSuchBuild:
+ except data.NoSuchBuild:
# Can't send a nastygram until there are 2 builds..
continue
else:
--
build.samba.org
More information about the samba-cvs
mailing list