def _migrate_get_earliest_version():
    versions_glob = os.path.join(MIGRATE_REPO, 'versions', '???_*.py')

    versions = []
    for path in glob.iglob(versions_glob):
        filename = os.path.basename(path)
        prefix = filename.split('_', 1)[0]
        try:
            version = int(prefix)
        except __HOLE__:
            pass
        versions.append(version)

    versions.sort()
    return versions[0]


### Git
dataset/ETHPy150Open openstack/ec2-api/tools/db/schema_diff.py/_migrate_get_earliest_version