The branch, master has been updated
       via  4c30514 Implement sql-specific get_old_revs.
      from  73afd26 Actually use sqldb.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 4c305147f34d899cf791c9c8ab103ec7ff3247bb
Author: Jelmer Vernooij <jel...@samba.org>
Date:   Mon Nov 15 01:57:33 2010 +0100

    Implement sql-specific get_old_revs.

-----------------------------------------------------------------------

Summary of changes:
 buildfarm/sqldb.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/sqldb.py b/buildfarm/sqldb.py
index a2c424a..8c5330f 100644
--- a/buildfarm/sqldb.py
+++ b/buildfarm/sqldb.py
@@ -203,6 +203,12 @@ class StormCachingBuildResultStore(BuildResultStore):
         self.store.add(new_build)
         return new_build
 
+    def get_old_revs(self, tree, host, compiler):
+        return self.store.find(StormBuild,
+            StormBuild.tree == tree,
+            StormBuild.host == host,
+            StormBuild.compiler == compiler).order_by(Desc(StormBuild.age))
+
 
 class StormCachingBuildFarm(BuildFarm):
 


-- 
build.samba.org

Reply via email to