def _get_revisions(self, config, head=None):
    head = (head or 'heads')
    scripts_dir = alembic_script.ScriptDirectory.from_config(config)
    revisions = list(scripts_dir.walk_revisions(base='base', head=head))
    revisions = list(reversed(revisions))
    revisions = [rev.revision for rev in revisions]
    return revisions
def _get_revisions(self, config, head=None):
    head = (head or 'heads')
    scripts_dir = alembic_script.ScriptDirectory.from_config(config)
    revisions = list(scripts_dir.walk_revisions(base='base', head=head))
    revisions = list(reversed(revisions))
    revisions = [rev.revision for rev in revisions]
    return revisions