def reject_changes(session, changes, tag):
    session.rollback()

    print "REJECT: {source} because {tag}".format(
        tag=tag, source=changes.get_package_name())

    emit('reject', 'source', {
        "tag": tag,
        "source": changes.get_package_name(),
    })

    for fp in [changes.get_changes_file()] + changes.get_files():
        os.unlink(fp)
    # Note this in the log.
dataset/ETHPy150Open Debian/debile/debile/master/incoming_changes.py/reject_changes/original