buildbot/buildbot — pull request #550 by djmitche (2012-10-14 18:32:37+00:00)
Title: factor findXxxId methods into a base method

This factors out the "find xxx's ID or add a new row if it doesn't exist" code, including handling race conditions.