def get_revision_ids_for_credential(credential):
    """
    For the given credential, return a list of archive credential IDs.
    """
    _range = range(1, credential.revision + 1)
    ids = []
    for i in _range:
        ids.append("{0}-{1}".format(credential.id, i))
    return ids