getObject(); // Do some magic here to figure out if the branch the revision will land // onto is bad. $is_bad = some_magic($revision); $warnings = array(); if ($is_bad) { $warnings[] = pht( 'IMPORTANT! The branch this revision is targeting has a broken '. 'build!'); } return $warnings; } }