def _set_version_locations(config):
 split_branches = False
 version_paths = [_get_version_branch_path(config)]
 for release in RELEASES:
  for branch in MIGRATION_BRANCHES:
   version_path = _get_version_branch_path(config, release, branch)
   if (split_branches or os.path.exists(version_path)):
    split_branches = True
    version_paths.append(version_path)
 config.set_main_option('version_locations', ' '.join(version_paths))

def _set_version_locations ( config ) : split_branches = False version_paths = [ _get_version_branch_path ( config ) ] for release in RELEASES : for branch in MIGRATION_BRANCHES : version_path = _get_version_branch_path ( config , release , branch ) if ( split_branches or os . path . exists ( version_path ) ) : split_branches = True version_paths . append ( version_path ) config . set_main_option ( 'version_locations' , ' ' . join ( version_paths ) )
make alembic see all revisions in all migration branches .