import list_library_unreleased_changes.sh

Change-Id: I8fd0895ff830a5a0d7e7076ba167d19abf46d194
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-02-08 15:25:19 -05:00
parent 2db25fc9e8
commit ecde878e31
2 changed files with 38 additions and 0 deletions

View File

@ -526,3 +526,9 @@ master branch.
Print the list of changes in the ``stable/kilo`` branch of all Oslo
libraries.
tools/list_library_unreleased_changes.sh
----------------------------------------
Runs list_unreleased_changes.sh for all libraries managed by any
project.

View File

@ -0,0 +1,32 @@
#!/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
SERIES=${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
echo "Finding $SERIES library repositories..."
repos=$(list-deliverables --repos --type library --series $SERIES)
$TOOLSDIR/list_unreleased_changes.sh $SERIES $repos