

def mark_ok_new_review(self, revision_id):
    "Mark this version of the review branch as 'ok in review'."
    assert (self.review_id_or_none() is None)

    def action():
        if (not self.is_new()):
            self._push_delete_tracking_branch()
        self._push_new(abdt_naming.WB_STATUS_OK, revision_id)
    self._tryloop(action, abdt_errident.MARK_OK_NEW_REVIEW)

dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_branch.py Branch.mark_ok_new_review/original