# HG changeset patch # User osimons # Date 1246798033 0 # Node ID 1e9ec4fa31efe4c2c91ef09282437397a43f8914 # Parent 1caaefd7637594a4415f8ad2a0dcc5aeb85763d5 0.6dev: Order builds by revision time as primary criteria to allow a fair distribution among configurations to be build. Closes #241, and thanks to jeberger for report with patch. diff --git a/bitten/model.py b/bitten/model.py --- a/bitten/model.py +++ b/bitten/model.py @@ -514,7 +514,7 @@ cursor = db.cursor() cursor.execute("SELECT id FROM bitten_build %s " - "ORDER BY config,rev_time DESC,slave" + "ORDER BY rev_time,config DESC,slave" % where, [wc[1] for wc in where_clauses]) for (id,) in cursor: yield Build.fetch(env, id)