add convenience script for finding unreleased stable branch changes

Change-Id: Idb31008f954793f8713440162410743083083db7
This commit is contained in:
Doug Hellmann 2016-01-20 10:49:56 -05:00 committed by Matt Riedemann
parent 183de2e88e
commit c660318bde
2 changed files with 41 additions and 0 deletions

View File

@ -298,6 +298,24 @@ Runs list_unreleased_changes.sh for all libraries managed by any
project.
list_stable_unreleased_changes.sh
---------------------------------
Runs list_unreleased_changes.sh with the given branch for all
repositories tagged with ``stable:follows-policy``.
::
./list_stable_unreleased_changes.sh stable/liberty
is equivalent to:
::
./list_unreleased_changes.sh stable/liberty $(list-repos --tag stable:follows-policy)
make_stable_branch.sh
---------------------

View File

@ -0,0 +1,23 @@
#!/bin/bash
#
# Convenience wrapper to show the unreleased changes in all projects
# claiming to have stable branches, so we don't have to remember the
# incantation.
if [[ $# -ne 1 ]]; then
echo "Usage: $(basename $0) <branch>"
exit 1
fi
if [[ -z "$VIRTUAL_ENV" ]]; then
tox -e venv --notest
source ./.tox/venv/bin/activate
fi
repos="$(list-repos --tag stable:follows-policy)"
# NOTE(tonyb): The purpose of this script is to 'quick check' for unreleased
# changes. Without an email address release-notes will barf so set a fake
# email address if one isn't already present.
export EMAIL=${EMAIL:-noone@nowhere.com}
$(dirname $0)/list_unreleased_changes.sh $1 $repos