diff --git a/master.cfg b/master.cfg index deb5bd2..f383fd2 100644 --- a/master.cfg +++ b/master.cfg @@ -790,11 +790,13 @@ class ComputeTryBuildCount (steps.BuildStep): count = 0 else: builder = self.getProperty ('buildername') + rev = self.getProperty ('got_revision') + branch = self.getProperty ('branch') db_file = os.path.join (get_web_base (), builder, builder + '.db') con = sqlite3.connect (db_file) c = con.cursor () - c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (sourcestamp.revision, branch)) + c.execute ('SELECT COUNT(*) FROM logs WHERE commitid = "%s" AND branch = "%s" AND trysched = 1' % (rev, branch)) count = c.fetchone ()[0] con.close ()