def handle_versions(repo, **kwargs):
    """:return: repo.versions()"""
    log.info('versions: %s %s' %(repo, kwargs))
    if not hasattr(repo, 'versions'):
        return []
    return [v.serialize() for v in repo.versions(**kwargs)]
:return: repo.versions()