[SCM] build.samba.org - branch master updated

Jelmer Vernooij jelmer at samba.org
Fri Nov 12 16:19:23 MST 2010


The branch, master has been updated
       via  ba21c21 Use commit_revision rather revision.
      from  ff35138 Some fixes for import-and-analyse.

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


- Log -----------------------------------------------------------------
commit ba21c210a563c33262695a0f73edbb3e30d56f82
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sat Nov 13 00:20:14 2010 +0100

    Use commit_revision rather revision.

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

Summary of changes:
 buildfarm/data.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/data.py b/buildfarm/data.py
index 888aa73..451caa5 100644
--- a/buildfarm/data.py
+++ b/buildfarm/data.py
@@ -503,7 +503,7 @@ class SQLCachingBuildResultStore(BuildResultStore):
         self.db = db
 
     def get_previous_revision(self, tree, host, compiler, revision):
-        cursor = self.db.execute("SELECT revision FROM build WHERE tree = ? AND host = ? AND compiler = ? AND revision < ? ORDER BY id DESC LIMIT 1", (tree, host, compiler, revision))
+        cursor = self.db.execute("SELECT commit_revision FROM build WHERE tree = ? AND host = ? AND compiler = ? AND commit_revision < ? ORDER BY id DESC LIMIT 1", (tree, host, compiler, revision))
         row = cursor.fetchone()
         if row is None:
             raise NoSuchBuildError(tree, host, compiler, revision)


-- 
build.samba.org


More information about the samba-cvs mailing list