Files
releases/tools/list_client_library_unreleased_changes.sh
Előd Illés 4bdb755b0e [tool] Fix current branch selector in unreleased scripts
The current listing and sorting method gives 'zed' as result instead of
the real actual development cycle name. This patch replaces this
with using the default cycle name from openstack_releases.

Change-Id: I89e7ac2a0e13f0d2a2450be2554748bb9a7c5f0c
2025-02-17 08:46:11 +01:00

39 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
#
# Convenience wrapper to show the unreleased changes in all
# libraries, so we don't have to remember the incantation.
if [[ $# -gt 1 ]]; then
echo "Usage: $(basename $0) <branch>"
exit 1
fi
BRANCH=${1:-master}
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEDIR=$(dirname $TOOLSDIR)
source $TOOLSDIR/functions
# Set up the virtualenv where the list-deliverables command will be
# found. This is done outside of the invocation below because
# otherwise we get the tox output mixed up in the repo list output and
# try to do things like look at the history of "venv" and
# "installing".
if [[ -z "$VIRTUAL_ENV" ]]; then
if [[ ! -d $BASEDIR/.tox/venv ]]; then
(cd $BASEDIR && tox -e venv --notest)
fi
source $BASEDIR/.tox/venv/bin/activate
fi
if [ "$BRANCH" = "master" ]; then
SERIES=$(python -c 'from openstack_releases import defaults; print(defaults.RELEASE)')
else
SERIES=$(basename $BRANCH)
fi
echo "Finding $SERIES library repositories..."
repos=$(list-deliverables --repos --type client-library --series $SERIES)
$TOOLSDIR/list_unreleased_changes.sh $BRANCH $repos